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