forked from henrikmarklund/arm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_test.sh
More file actions
48 lines (35 loc) · 1.43 KB
/
run_test.sh
File metadata and controls
48 lines (35 loc) · 1.43 KB
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
#!/bin/bash
#SBATCH --job-name=run_test
#SBATCH --nodes=1
#SBATCH --gres=gpu:1
#SBATCH --mem=16000MB
#SBATCH --cpus-per-task=16
#SBATCH --output=./slurm_log/femnist/S-%x.%j.out
#SBATCH --time=0-12:00:00
eval "$(conda shell.bash hook)"
conda activate maicon
YOUR_MODELS = "model1 model2 model3"
DATASET = "mnist" # femnist
DATA_DIR = "./data/"
# Online (Clean)
srun python run_test.py --eval_on test --norm_type layer \
--data_dir ${DATA_DIR} --dataset ${DATASET} --ckpt_folders ${YOUR_MODELS} \
--auto 0 --test 1 --train 0 --online 1 --T 3 \
--noisy 0 --support_size 50 --seeds 0 1 2 \
# Online (Cycle)
srun python run_test.py --eval_on test --norm_type layer \
--data_dir ${DATA_DIR} --dataset ${DATASET} --ckpt_folders ${YOUR_MODELS} \
--auto 0 --test 1 --train 0 --online 1 --T 3 \
--noisy 1 --support_size 50 --seeds 0 1 2 \
--noise_level 0.10 --noise_type sp --normal_iter 10
# Online (Always)
srun python run_test.py --eval_on test --norm_type layer \
--data_dir ${DATA_DIR} --dataset ${DATASET} --ckpt_folders ${YOUR_MODELS} \
--auto 0 --test 1 --train 0 --online 1 --T 3 \
--noisy 1 --support_size 50 --seeds 0 1 2 \
--noise_level 0.10 --noise_type sp --normal_iter 0
# Offline (but 'Ours' is still online)
python run.py --eval_on test --norm_type layer \
--data_dir ${DATA_DIR} --dataset ${DATASET} --ckpt_folders ${YOUR_MODELS} \
--auto 0 --test 1 --train 0 --online 0 --normalize 0 --T 3 \
--noisy 0 --support_size 50 --seeds 0 1 2 \