SAE / scripts /attacks-CIFAR100.sh
Ttius's picture
Upload 192 files
998bb30 verified
#!/bin/bash
# PodNet
for i in {0..9}
do
python ./attack.py --config 'exps/podnet.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/podnet.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/podnet.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/podnet.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/podnet.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/podnet.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/podnet.json' --attack_method 'CGNC' --batch_size 128
# WA
for i in {0..9}
do
python ./attack.py --config 'exps/wa.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/wa.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/wa.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/wa.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/wa.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/wa.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/wa.json' --attack_method 'CGNC' --batch_size 128
# iCaRL
for i in {0..9}
do
python ./attack.py --config 'exps/icarl.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/icarl.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/icarl.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/icarl.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/icarl.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/icarl.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/icarl.json' --attack_method 'CGNC' --batch_size 128
# Replay
for i in {0..9}
do
python ./attack.py --config 'exps/replay.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/replay.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/replay.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/replay.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/replay.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/replay.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/replay.json' --attack_method 'CGNC' --batch_size 128
# MEMO
for i in {0..9}
do
python ./attack.py --config 'exps/memo.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/memo.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/memo.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/memo.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/memo.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/memo.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/memo.json' --attack_method 'CGNC' --batch_size 128
# DER
for i in {0..9}
do
python ./attack.py --config 'exps/der.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/der.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/der.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/der.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/der.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/der.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/der.json' --attack_method 'CGNC' --batch_size 128
# BiC
for i in {0..9}
do
python ./attack.py --config 'exps/bic.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/bic.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/bic.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/bic.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/bic.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/bic.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/bic.json' --attack_method 'CGNC' --batch_size 128
# Foster
for i in {0..9}
do
python ./attack.py --config 'exps/foster.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/foster.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/foster.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/foster.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/foster.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/foster.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/foster.json' --attack_method 'CGNC' --batch_size 128
# Finetune
for i in {0..9}
do
python ./attack.py --config 'exps/finetune.json' --attack_method 'AIM' --target_class $i --batch_size 128
python ./attack.py --config 'exps/finetune.json' --attack_method 'CleanSheet' --target_class $i --batch_size 128
python ./attack.py --config 'exps/finetune.json' --attack_method 'Gaker' --target_class $i --batch_size 128
python ./attack.py --config 'exps/finetune.json' --attack_method 'SAE' --target_class $i --batch_size 128
python ./attack.py --config 'exps/finetune.json' --attack_method 'UnivIntruder' --target_class $i --batch_size 128
python ./attack.py --config 'exps/finetune.json' --attack_method 'MIFGSM' --target_class $i --batch_size 128
done
python ./attack.py --config 'exps/finetune.json' --attack_method 'CGNC' --batch_size 128