-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_resnet.sh
executable file
·55 lines (50 loc) · 1.85 KB
/
run_resnet.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
#!/bin/bash
python ./main.py --folder=./data \
--dataset=cifar_fs \
--model=resnet \
--blocks-type=a \
--device=cuda:0 \
--num-ways=5 \
--num-shots=5 \
--extractor-step-size=0.3 \
--classifier-step-size=0.3 \
--meta-lr=6e-4 \
--download \
--save-name=5shot_resnet_block_a_MAML
python ./main.py --folder=./data \
--dataset=cifar_fs \
--model=resnet \
--blocks-type=a \
--device=cuda:0 \
--num-ways=5 \
--num-shots=5 \
--extractor-step-size=0.3 \
--classifier-step-size=0.0 \
--meta-lr=6e-4 \
--download \
--save-name=5shot_resnet_block_a_BOIL
python ./main.py --folder=./data \
--dataset=cifar_fs \
--model=resnet \
--blocks-type=b \
--device=cuda:0 \
--num-ways=5 \
--num-shots=5 \
--extractor-step-size=0.3 \
--classifier-step-size=0.3 \
--meta-lr=6e-4 \
--download \
--save-name=5shot_resnet_block_b_MAML
python ./main.py --folder=./data \
--dataset=cifar_fs \
--model=resnet \
--blocks-type=b \
--device=cuda:0 \
--num-ways=5 \
--num-shots=5 \
--extractor-step-size=0.3 \
--classifier-step-size=0.0 \
--meta-lr=6e-4 \
--download \
--save-name=5shot_resnet_block_b_BOIL
echo "finished"