-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_demo_cifar.sh
36 lines (25 loc) · 1.26 KB
/
run_demo_cifar.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
#!/usr/bin/env bash
DATASET=cifar100
GPU=2
NET=resnet32
LR=1e-5
EPOCH=51
SAVE=50
LOSS=triplet #triplet
TASK=10 #6
BASE=10 #17
SEED=1993
for Method in LwF #Finetuning LwF EWC MAS
do
for Tradeoff in 1e6 # 0 1 1e7 1e6
do
NAME=${Method}_${Tradeoff}_${DATASET}_${LOSS}_${NET}_${LR}_${EPOCH}epochs_task${TASK}_base${BASE}_seed${SEED}
#python train.py -base ${BASE} -seed ${SEED} -task ${TASK} -data ${DATASET} -tradeoff ${Tradeoff} -exp ${Tradeoff} -net ${NET} -method ${Method} \
#-lr ${LR} -dim 512 -num_instances 8 -BatchSize 32 -loss ${LOSS} -epochs ${EPOCH} -log_dir ${DATASET}_seed${SEED}_final_11.5/${NAME} \
#-save_step ${SAVE} -gpu ${GPU}
#python test.py -seed ${SEED} -base ${BASE} -task ${TASK} -epochs ${EPOCH} -data ${DATASET} -gpu ${GPU} -log_dir ${DATASET}_seed${SEED}_final_11.5/${NAME}
#python test_SDC.py -seed ${SEED} -base ${BASE} -task ${TASK} -epochs ${EPOCH} -data ${DATASET} -gpu ${GPU} -log_dir ${DATASET}_seed${SEED}_final_11.5/${NAME}
python test_new.py -seed ${SEED} -base ${BASE} -task ${TASK} -epochs ${EPOCH} -data ${DATASET} -gpu ${GPU} -log_dir ${DATASET}_seed${SEED}_final/${NAME}
#python test_cvpr.py -seed ${SEED} -base ${BASE} -task ${TASK} -epochs ${EPOCH} -data ${DATASET} -gpu ${GPU} -log_dir ${DATASET}_seed${SEED}_final/${NAME}
done
done