-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript_action_recog.sh
147 lines (127 loc) · 6.13 KB
/
script_action_recog.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
#!/bin/bash
############
# Usage
############
# bash codes/DHCS_implement/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_p -d
tmux send-keys -t multistream_seeds_p "cd codes" C-m
tmux send-keys -t multistream_seeds_p "conda activate yinka_env" C-m
tmux send-keys -t multistream_seeds_p "
CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint chkpt_testing.pt \
--lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$cv60 --num_class 60" C-m
#cross-view 60 classes
# tmux send-keys -t multistream_seeds_p "
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_view60_infodata_seed0.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$cv60 --num_class 60 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_view60_infodata_seed8.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$cv60 --num_class 60 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_view60_infodata_seed11.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$cv60 --num_class 60 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_view60_infodata_seed19.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$cv60 --num_class 60
# 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
# 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.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed8.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed11.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub60_infodata_seed19.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub60 --num_class 60
# 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
# 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.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed8.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed11.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_setup120_infodata_seed19.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$set120 --num_class 120
# 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
# wait" C-m
#
#
# #cross-ssubject 120 classes
# tmux send-keys -t multistream_seeds_p "
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed0.pt \
# --seed=$seed0 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed8.pt \
# --seed=$seed8 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed11.pt \
# --seed=$seed11 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120 &
#
# CUDA_VISIBLE_DEVICES=0,1,2 python3 $code --checkpoint checkpoint_multistream_sub120_infodata_seed19.pt \
# --seed=$seed19 --lr=$learning_rate --bs=$batch_size --many-gpu --info_data --datacase=$sub120 --num_class 120
# 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
# wait" C-m
# tmux send-keys "
# tmux kill-session -t multistream_seeds" C-m