-
Notifications
You must be signed in to change notification settings - Fork 2
/
evaluate_attack.sh
executable file
·39 lines (36 loc) · 1.27 KB
/
evaluate_attack.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
#!/bin/bash
echo "Mount poisoning attacks"
for attack in dirty_label clean_label;
do
echo "Attack: $attack"
for encoder in xception resnet50 inceptionv3 mobilenetv2 vgg16;
do
for dataset in mnist cifar10;
do
echo "Dataset $dataset"
for (( i=0; i<10; i++ ));
do
echo "Target class: $i"
python poisoning_attack.py --target_class $i --dataset $dataset --encoder $encoder --seed_amount 1000 --attack_type $attack --check_mia True
done
done
for dataset in stl10;
do
echo "Dataset $dataset"
for (( i=0; i<10; i++ ));
do
echo "Target class: $i"
python poisoning_attack.py --target_class $i --dataset $dataset --encoder $encoder --seed_amount 400 --attack_type $attack --check_mia True
done
done
for dataset in celeba patchcamelyon;
do
echo "Dataset $dataset"
for (( i=0; i<2; i++ ));
do
echo "Target class: $i"
python poisoning_attack.py --target_class $i --dataset $dataset --encoder $encoder --seed_amount 5000 --attack_type $attack --check_mia True
done
done
done
done