-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner_attacker.sh
39 lines (33 loc) · 1.63 KB
/
runner_attacker.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
#######################
# output space attack #
#######################
# run the attack
python run_attack.py --loss_dist_type chamfer --loss_adv_type chamfer --dist_weight_list 1.0 --num_pc_for_attack 25 \
--output_folder_name output_space_attack \
--ae_folder log/autoencoder_victim --attack_pc_idx log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy
wait
# prepare additional data for evaluation
python get_dists_per_point.py --output_folder_name output_space_attack \
--ae_folder log/autoencoder_victim --attack_pc_idx log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy
wait
# evaluate the attack
python evaluate_attack.py --output_folder_name output_space_attack \
--ae_folder log/autoencoder_victim --attack_pc_idx log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy
wait
#######################
# latent space attack #
#######################
# run the attack
python run_attack.py --loss_dist_type chamfer --loss_adv_type latent --dist_weight_list 150.0 --num_pc_for_attack 25 \
--output_folder_name latent_space_attack \
--ae_folder log/autoencoder_victim --attack_pc_idx log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy
wait
# prepare additional data for evaluation
python get_dists_per_point.py --output_folder_name latent_space_attack \
--ae_folder log/autoencoder_victim --attack_pc_idx log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy
wait
# evaluate the attack
python evaluate_attack.py --output_folder_name latent_space_attack \
--ae_folder log/autoencoder_victim --attack_pc_idx log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy
wait