-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript_action_recog_ablation_sub.sh
159 lines (133 loc) · 6.71 KB
/
script_action_recog_ablation_sub.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/bin/bash
chkpt_5p44=FL_5p44_FS_0_Sd11_Dv_c.pt
chkpt_5p48=FL_5p48_FS_0_Sd19_Dv_cu2.pt
chkpt_5p51=FL_5p51_FS_2_Sd0_Dv_c.pt
# chkpt_5p51_ex=FL_5p51_FS_0_Sd11_Dv_cu1.pt
# chkpt_5p55=FL_5p55_FS_2_Sd0_Dv_cu1.pt
# chkpt_5p60=FL_5p60_FS_0_Sd11_Dv_cu2.pt
chkpt_5p62=FL_5p62_FS_0_Sd8_Dv_cu2.pt
chkpt_5p82=FL_5p82_FS_0_Sd1_Dv_c.pt
# chkpt_5p82_ex=FL_5p82_FS_0_Sd1_Dv_cu1.pt
# chkpt_6p22=FL_6p22_FS_0_Sd19_Dv_cu1.pt
# chkpt_6p22_ex=FL_6p22_FS_0_Sd19_Dv_c.pt
chkpt_6p32=FL_6p32_FS_0_Sd8_Dv_c.pt
# chkpt_6p32_ex=FL_6p32_FS_0_Sd8_Dv_cu1.pt
# chkpt_6p41=FL_6p41_FS_0_Sd1_Dv_cu2.pt
chkpt_10p52=FL_10p52_FS_0_Sd0_Dv_cu2.pt
############
# Usage
############
# bash script_action_recog.sh
############
# Action Recognition model
############
############
# Action Recognition scripts for 4 seed versions of NAPE
############
code=~/codes/DHCS_implement/run_algo_improved.py
# GPU
# checkpoint_seed0=checkpoint_multistream_view60_seed0_PE.pt
# checkpoint_seed8=checkpoint_multistream_view60_seed8_PE.pt
# checkpoint_seed11=checkpoint_multistream_view60_seed11_PE.pt
# checkpoint_seed19=checkpoint_multistream_view60_seed19_PE.pt
checkpoint_infodata=checkpoint_multistream_view60_infodata.pt
# CPU
checkpoint_seed0=checkpoint_multistream_view60_seed0_PE_CPU_new_preprocess_ls02.pt
checkpoint_seed8=checkpoint_multistream_view60_seed8_PE_CPU_new_preprocess_ls02.pt
checkpoint_seed11=checkpoint_multistream_view60_seed11_PE_CPU_new_preprocess_ls02.pt
checkpoint_seed19=checkpoint_multistream_view60_seed19_PE_CPU_new_preprocess_ls02.pt
checkpoint_pos_encode_seed0=checkpoint_pos_encode_seed0.pt
checkpoint_pos_encode_seed8=checkpoint_pos_encode_seed8.pt
checkpoint_pos_encode_seed11=checkpoint_pos_encode_seed11.pt
checkpoint_pos_encode_seed19=checkpoint_pos_encode_seed19.pt
code=/dcs/pg20/u2034358/codes/DHCS_implement/run_algo_improved.py
learning_rate=0.001
batch_size=384
seed0=0
seed8=8
seed11=11
seed19=19
cv60=CV
sub60=CS
set120=CSet
sub120=CSub
tmux new -s multistream_seeds_sub -d
tmux send-keys -t multistream_seeds_sub "cd codes" C-m
tmux send-keys -t multistream_seeds_sub "conda activate yinka_env" C-m
#cross-view 60 classes
tmux send-keys -t multistream_seeds_sub "
CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed0_no_PE.pt \
--seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --no-PE &
CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed0_zeros.pt \
--seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --zeros &
CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed0_no_interact.pt \
--seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --no-interact
wait" C-m
# # compute average of the seeds
# tmux send-keys -t multistream_seeds_p "
# python3 $code --datacase=$cv60 --num_class 60 --avg_best_acc --no-PE
# wait" C-m
#
# #cross-subject 60 classes
# tmux send-keys -t multistream_seeds_p "
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed0_no_PE.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed8_no_PE.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed11_no_PE.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed19_no_PE.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 --epochs 140 --no-PE
# wait" C-m
#
# # compute average of the seeds
# tmux send-keys -t multistream_seeds_p "
# python3 $code --datacase=$sub60 --num_class 60 --avg_best_acc --no-PE
# wait" C-m
#
#
# #cross-setup 120 classes
# tmux send-keys -t multistream_seeds_p "
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed0_no_PE.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed8_no_PE.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed11_no_PE.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed19_no_PE.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 --epochs 140 --no-PE
# wait" C-m
#
# compute average of the seeds
# tmux send-keys -t multistream_seeds_p "
# python3 $code --datacase=$set120 --num_class 120 --avg_best_acc --no-PE
# wait" C-m
#
#
# #cross-subject 120 classes
# tmux send-keys -t multistream_seeds_p "
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed0_no_PE.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed8_no_PE.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed11_no_PE.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 --epochs 140 --no-PE &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed19_no_PE.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 --epochs 140 --no-PE
# wait" C-m
#
# # compute average of the seeds
# tmux send-keys -t multistream_seeds_p "
# python3 $code --datacase=$sub120 --num_class 120 --avg_best_acc --no-PE
# wait" C-m
# tmux send-keys "
# tmux kill-session -t multistream_seeds" C-m