forked from cleverhans-lab/dataset-inference
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lazy_cat_dog_feature_01.sh
executable file
·74 lines (66 loc) · 1.79 KB
/
lazy_cat_dog_feature_01.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/sh
# export CUDA_VISIBLE_DEVICES=1,2
# echo $CUDA_VISIBLE_DEVICES
echo "# CIFAR-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset CIFAR10-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized
echo "# STL10-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset STL10-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized
echo "# Kaggle-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset Kaggle-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized
echo "# CIFAR10-STL10-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset CIFAR10-STL10-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized
echo "# CIFAR10-Kaggle-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset CIFAR10-Kaggle-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized
echo "# STL10-Kaggle-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset STL10-Kaggle-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized
echo "# CIFAR10-STL10-Kaggle-Cat-Dog"
python ./src/generate_features.py \
--feature_type rand \
--dataset CIFAR10-STL10-Kaggle-Cat-Dog \
--victim_dataset CIFAR10-Cat-Dog \
--batch_size 256 \
--mode teacher \
--normalize 1 \
--model_id teacher_normalized