-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.sh
95 lines (78 loc) · 5.61 KB
/
all.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
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=3 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_base.yaml 2>&1 | tee log/fsod_finetune_coco_R50_train_log_base.txt
CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
--config-file configs/fsod/finetune_R_50_C4_1x.yaml \
--eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x_stone/model_final.pth 2>&1 | tee log/fsod_finetune_stone_R50_test_log.txt
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x/model_final.pth 2>&1 | tee log/fsod_finetune_coco_R50_test_log.txt
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x/model_0002399.pth 2>&1 | tee log/fsod_finetune_coco_R50_test_log.txt
#base
#train
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=1,2 python3 fsod_train_net.py --num-gpus 2 \
# --config-file configs/fsod/R_18_C4_1x.yaml 2>&1 | tee log/fsod_train_R_18_log.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=2 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/R_34_C4_1x.yaml 2>&1 | tee log/fsod_train_R_34_change3_log.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=1,2 python3 fsod_train_net.py --num-gpus 2 \
# --config-file configs/fsod/R_50_C4_1x.yaml 2>&1 | tee log/fsod_train_R_50_log.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/mobilenet_small_1x.yaml 2>&1 | tee log/fsod_train_mobile_small_log.txt
#val
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/R_34_C4_1x.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/R_34_C4_1x/model_final.pth 2>&1 | tee log/fsod_stone_r34_base_test_log.txt
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/mobilenet_small_1x.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/mobilenet_small_1x/model_final.pth 2>&1 | tee log/fsod_stone_mobilenet_small_base_test_log.txt
###############################################################################
#fine-tune
#coco
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_coco_R_34_C4_1x.yaml 2>&1 | tee log/fsod_finetune_train_coco_log.txt
#train
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_18_C4_1x.yaml 2>&1 | tee log/fsod_finetune_stone_R18_train_log.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_34_C4_1x.yaml 2>&1 | tee log/fsod_finetune_stone_R34_train_log.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_5shot.yaml 2>&1 | tee log/fsod_finetune_coco_R50_5shot_train_log.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_5shot.yaml 2>&1 | tee log/fsod_finetune_coco_R50_5shot_train_log_attentionrpn.txt
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_3shot.yaml 2>&1 | tee log/fsod_finetune_coco_R50_3shot_train_log.txt
#val
# rm support_dir/support_feature.pkl
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x/model_final.pth 2>&1 | tee log/fsod_finetune_coco_R50_10shot_test_log.txt
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_5shot.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x_5shot/model_final.pth 2>&1 | tee log/fsod_finetune_coco_R50_5shot_test_log.txt
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_5shot.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x_5shot/model_final.pth 2>&1 | tee log/fsod_finetune_coco_R50_5shot_test_log_attentionrpn.txt
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_3shot.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x_3shot/model_final.pth 2>&1 | tee log/fsod_finetune_coco_R50_3shot_test_log.txt
# CUDA_VISIBLE_DEVICES=0 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_R_50_C4_1x_coco_3shot.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x_3shot_attentionrpn/model_final.pth 2>&1 | tee log/fsod_finetune_coco_R50_3shot_test_log_attentionrpn.txt
#CUDA_VISIBLE_DEVICES=0,1,2,3 python3 fsod_train_net.py --num-gpus 4 \
# --config-file configs/fsod/finetune_R_50_C4_1x.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/R_50_C4_1x/model_final.pth 2>&1 | tee log/fsod_finetune_test_log.txt
# CUDA_VISIBLE_DEVICES=1 python3 fsod_train_net.py --num-gpus 1 \
# --config-file configs/fsod/finetune_mobilenet_small_1x.yaml \
# --eval-only MODEL.WEIGHTS ./output/fsod/finetune_dir/mobilenet_small_1x/model_final.pth 2>&1 | tee log/fsod_finetune_mobilenet_small_test_log.txt