-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcomm.sh
34 lines (21 loc) · 2.1 KB
/
comm.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
# Train
nohup python ./train.py --dataset CUB --model Conv4 --method relationnet --n_shot 1 --train_aug --gpu 0 > conv4_relati_cub_1shot.out 2>&1 &
nohup python ./train.py --dataset CUB --model Conv4 --method CosineBatch --n_shot 1 --train_aug --gpu 0 > conv4_cosine_cub_1shot.out 2>&1 &
nohup python ./train.py --dataset CUB --model Conv4 --method OurNet --n_shot 1 --train_aug --gpu 0 > conv4_ournet_cub_1shot.out 2>&1 &
nohup python ./train.py --dataset CUB --model Conv4 --method relationnet --n_shot 5 --train_aug --gpu 0 > conv4_relati_cub_5shot.out 2>&1 &
nohup python ./train.py --dataset CUB --model Conv4 --method CosineBatch --n_shot 5 --train_aug --gpu 0 > conv4_cosine_cub_5shot.out 2>&1 &
nohup python ./train.py --dataset CUB --model Conv4 --method OurNet --n_shot 5 --train_aug --gpu 0 > conv4_ournet_cub_5shot.out 2>&1 &
# save features
python ./save_features.py --dataset CUB --model Conv4 --method relationnet --n_shot 1 --train_aug --gpu 0
python ./save_features.py --dataset CUB --model Conv4 --method CosineBatch --n_shot 1 --train_aug --gpu 0
python ./save_features.py --dataset CUB --model Conv4 --method OurNet --n_shot 1 --train_aug --gpu 0
python ./save_features.py --dataset CUB --model Conv4 --method relationnet --n_shot 5 --train_aug --gpu 0
python ./save_features.py --dataset CUB --model Conv4 --method CosineBatch --n_shot 5 --train_aug --gpu 0
python ./save_features.py --dataset CUB --model Conv4 --method OurNet --n_shot 5 --train_aug --gpu 0
# Test
python ./test.py --dataset CUB --model Conv4 --method relationnet --n_shot 1 --train_aug --gpu 0
python ./test.py --dataset CUB --model Conv4 --method CosineBatch --n_shot 1 --train_aug --gpu 0
python ./test.py --dataset CUB --model Conv4 --method OurNet --n_shot 1 --train_aug --gpu 0
python ./test.py --dataset CUB --model Conv4 --method relationnet --n_shot 5 --train_aug --gpu 0
python ./test.py --dataset CUB --model Conv4 --method CosineBatch --n_shot 5 --train_aug --gpu 0
python ./test.py --dataset CUB --model Conv4 --method OurNet --n_shot 5 --train_aug --gpu 0