-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_identification_experiments.sh
More file actions
executable file
·76 lines (67 loc) · 2.54 KB
/
Copy pathrun_identification_experiments.sh
File metadata and controls
executable file
·76 lines (67 loc) · 2.54 KB
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
75
76
#!/bin/bash
# Run multiple face identification attack experiments for paper
echo "=========================================================================="
echo "Face Identification Attack - Multi-Configuration Experiments"
echo "=========================================================================="
echo ""
echo "This script will run 3 experiments with different bit flip configurations:"
echo " 1. 5 bit flips (conservative attack)"
echo " 2. 10 bit flips (moderate attack)"
echo " 3. 15 bit flips (aggressive attack)"
echo ""
echo "Expected total runtime: 3-4 hours"
echo ""
read -p "Press Enter to start experiments..."
# Create logs directory
mkdir -p logs
# Experiment 1: 5 bits
echo ""
echo "=========================================================================="
echo "EXPERIMENT 1/3: 5 Bit Flips"
echo "=========================================================================="
python lfw_face_identification_attack.py \
--max_bit_flips 5 \
--num_candidates 500 \
--population_size 30 \
--generations 10 \
2>&1 | tee "logs/exp_5bits_$(date +%Y%m%d_%H%M%S).log"
echo "✓ Experiment 1 complete!"
sleep 2
# Experiment 2: 10 bits
echo ""
echo "=========================================================================="
echo "EXPERIMENT 2/3: 10 Bit Flips"
echo "=========================================================================="
python lfw_face_identification_attack.py \
--max_bit_flips 10 \
--num_candidates 500 \
--population_size 30 \
--generations 10 \
2>&1 | tee "logs/exp_10bits_$(date +%Y%m%d_%H%M%S).log"
echo "✓ Experiment 2 complete!"
sleep 2
# Experiment 3: 15 bits
echo ""
echo "=========================================================================="
echo "EXPERIMENT 3/3: 15 Bit Flips"
echo "=========================================================================="
python lfw_face_identification_attack.py \
--max_bit_flips 15 \
--num_candidates 500 \
--population_size 30 \
--generations 10 \
2>&1 | tee "logs/exp_15bits_$(date +%Y%m%d_%H%M%S).log"
echo "✓ Experiment 3 complete!"
echo ""
echo "=========================================================================="
echo "ALL EXPERIMENTS COMPLETE!"
echo "=========================================================================="
echo ""
echo "Results saved to: results/face_identification_attack_*/"
echo "Logs saved to: logs/exp_*bits_*.log"
echo ""
echo "Next steps:"
echo " 1. Run: python aggregate_results.py"
echo " 2. Check: results/ for plots and LaTeX tables"
echo " 3. Use results in your paper!"
echo ""