Skip to content

Commit

Permalink
scripts for final tests of attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphonsce committed Mar 29, 2024
1 parent 2246d9f commit ad71ccc
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
START=10
END=500
STEP_SIZE=10
STEP_SIZE=20

for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do
accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_attack \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions attacks/scripts/diff/metr/1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
START=10
END=200
STEP_SIZE=10

for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do
accelerate launch -m tree_ring_watermark.run_stable_tree \
--project_name diff_attacks_metr \
--run_name $STEPS --w_channel 3 --w_pattern ring \
--start 0 --end 200 \
--reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \
--with_tracking \
--w_radius 10 \
--msg_type binary \
--use_random_msgs \
--msg_scaler 100 \
--use_attack \
--attack_type diff \
--diff_attack_steps $STEPS \
--no_stable_sig
done
20 changes: 20 additions & 0 deletions attacks/scripts/diff/metr/2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
START=210
END=350
STEP_SIZE=10

for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do
accelerate launch -m tree_ring_watermark.run_stable_tree \
--project_name diff_attacks_metr \
--run_name $STEPS --w_channel 3 --w_pattern ring \
--start 0 --end 200 \
--reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \
--with_tracking \
--w_radius 10 \
--msg_type binary \
--use_random_msgs \
--msg_scaler 100 \
--use_attack \
--attack_type diff \
--diff_attack_steps $STEPS \
--no_stable_sig
done
20 changes: 20 additions & 0 deletions attacks/scripts/diff/metr/3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
START=360
END=500
STEP_SIZE=10

for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do
accelerate launch -m tree_ring_watermark.run_stable_tree \
--project_name diff_attacks_metr \
--run_name $STEPS --w_channel 3 --w_pattern ring \
--start 0 --end 200 \
--reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \
--with_tracking \
--w_radius 10 \
--msg_type binary \
--use_random_msgs \
--msg_scaler 100 \
--use_attack \
--attack_type diff \
--diff_attack_steps $STEPS \
--no_stable_sig
done
File renamed without changes.
18 changes: 18 additions & 0 deletions attacks/scripts/vae2018/metr/1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
for QUALITY in 1 2 3 4 5 6 7 8; do
accelerate launch -m tree_ring_watermark.run_stable_tree \
--project_name vae_attacks_metr \
--run_name $QUALITY --w_channel 3 --w_pattern ring \
--start 0 --end 200 \
--reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \
--with_tracking \
--w_radius 10 \
--msg_type binary \
--use_random_msgs \
--msg_scaler 100 \
--use_attack \
--attack_type vae \
--vae_attack_name bmshj2018-factorized \
--vae_attack_quality $QUALITY \
--no_stable_sig

done
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ad71ccc

Please sign in to comment.