From 28b6fffa4a164c6591c2902d6bfec044d916e10c Mon Sep 17 00:00:00 2001 From: Alphonsce Date: Sun, 21 Apr 2024 18:44:18 +0300 Subject: [PATCH] got rid of all submodules --- .gitmodules | 6 ------ README.md | 4 +++- attacks/WatermarkAttacker | 1 - attacks/scripts/diff/big_diff_att_test.sh | 12 ------------ attacks/scripts/diff/diff_attacks.sh | 16 ---------------- attacks/scripts/diff/fid_big_diff_gen.sh | 15 --------------- attacks/scripts/diff/fid_big_diff_gt.sh | 14 -------------- attacks/scripts/diff/fid_diff_att.sh | 22 ---------------------- attacks/scripts/diff/metr/1.sh | 20 -------------------- attacks/scripts/diff/metr/2.sh | 20 -------------------- attacks/scripts/diff/metr/3.sh | 20 -------------------- attacks/scripts/install.sh | 7 ------- attacks/scripts/test.sh | 1 - attacks/scripts/vae2018/fid_2018_att.sh | 22 ---------------------- attacks/scripts/vae2018/metr/1.sh | 18 ------------------ attacks/scripts/vae2018/vae2018attacks.sh | 9 --------- attacks/scripts/vae2020/fid_2020_att.sh | 22 ---------------------- attacks/scripts/vae2020/vae2020attacks.sh | 9 --------- tree-ring-watermark | 1 - 19 files changed, 3 insertions(+), 236 deletions(-) delete mode 100644 .gitmodules delete mode 160000 attacks/WatermarkAttacker delete mode 100644 attacks/scripts/diff/big_diff_att_test.sh delete mode 100644 attacks/scripts/diff/diff_attacks.sh delete mode 100644 attacks/scripts/diff/fid_big_diff_gen.sh delete mode 100644 attacks/scripts/diff/fid_big_diff_gt.sh delete mode 100644 attacks/scripts/diff/fid_diff_att.sh delete mode 100644 attacks/scripts/diff/metr/1.sh delete mode 100644 attacks/scripts/diff/metr/2.sh delete mode 100644 attacks/scripts/diff/metr/3.sh delete mode 100644 attacks/scripts/install.sh delete mode 100644 attacks/scripts/test.sh delete mode 100644 attacks/scripts/vae2018/fid_2018_att.sh delete mode 100644 attacks/scripts/vae2018/metr/1.sh delete mode 100644 attacks/scripts/vae2018/vae2018attacks.sh delete mode 100644 attacks/scripts/vae2020/fid_2020_att.sh delete mode 100644 attacks/scripts/vae2020/vae2020attacks.sh delete mode 160000 tree-ring-watermark diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 3555580..0000000 --- a/.gitmodules +++ /dev/null @@ -1,6 +0,0 @@ -[submodule "tree-ring-watermark"] - path = tree-ring-watermark - url = https://github.com/Alphonsce/tree-ring-watermark.git -[submodule "attacks/WatermarkAttacker"] - path = attacks/WatermarkAttacker - url = https://github.com/Alphonsce/WatermarkAttacker.git diff --git a/README.md b/README.md index e25f210..1a097d2 100644 --- a/README.md +++ b/README.md @@ -147,4 +147,6 @@ bash .sh ```bash -``` \ No newline at end of file +``` + +# References: diff --git a/attacks/WatermarkAttacker b/attacks/WatermarkAttacker deleted file mode 160000 index 40e5d7a..0000000 --- a/attacks/WatermarkAttacker +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 40e5d7a91c21c7484863d07db34f6eb865591695 diff --git a/attacks/scripts/diff/big_diff_att_test.sh b/attacks/scripts/diff/big_diff_att_test.sh deleted file mode 100644 index d7818b9..0000000 --- a/attacks/scripts/diff/big_diff_att_test.sh +++ /dev/null @@ -1,12 +0,0 @@ -START=10 -END=500 -STEP_SIZE=20 - -for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_attack \ - --project_name new_big_diff_attacks \ - --run_name s_$STEPS --w_channel 3 --w_pattern ring --start 0 --end 200 --reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS -done \ No newline at end of file diff --git a/attacks/scripts/diff/diff_attacks.sh b/attacks/scripts/diff/diff_attacks.sh deleted file mode 100644 index e471541..0000000 --- a/attacks/scripts/diff/diff_attacks.sh +++ /dev/null @@ -1,16 +0,0 @@ -for STEPS in 10 30 60 100 150 200 300; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_attack \ - --project_name diff_attacks \ - --run_name diff_$STEPS --w_channel 3 --w_pattern ring --start 0 --end 1000 --reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS - - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_attack \ - --project_name diff_attacks \ - --run_name diff_prompt_$STEPS --w_channel 3 --w_pattern ring --start 0 --end 1000 --reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS --use_attack_prompt - -done \ No newline at end of file diff --git a/attacks/scripts/diff/fid_big_diff_gen.sh b/attacks/scripts/diff/fid_big_diff_gen.sh deleted file mode 100644 index 5f84c0b..0000000 --- a/attacks/scripts/diff/fid_big_diff_gen.sh +++ /dev/null @@ -1,15 +0,0 @@ -START=280 -END=500 -STEP_SIZE=10 - -for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name big_diff_metrics_gen \ - --run_name s_$STEPS --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS \ - --run_no_w \ - --additional_metrics \ - --target_clean_generated -done \ No newline at end of file diff --git a/attacks/scripts/diff/fid_big_diff_gt.sh b/attacks/scripts/diff/fid_big_diff_gt.sh deleted file mode 100644 index a807757..0000000 --- a/attacks/scripts/diff/fid_big_diff_gt.sh +++ /dev/null @@ -1,14 +0,0 @@ -START=290 -END=500 -STEP_SIZE=10 - -for ((STEPS=START; STEPS<=END; STEPS+=STEP_SIZE)); do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name big_diff_metrics_gt \ - --run_name s_$STEPS --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS \ - --run_no_w \ - --additional_metrics -done \ No newline at end of file diff --git a/attacks/scripts/diff/fid_diff_att.sh b/attacks/scripts/diff/fid_diff_att.sh deleted file mode 100644 index 4508328..0000000 --- a/attacks/scripts/diff/fid_diff_att.sh +++ /dev/null @@ -1,22 +0,0 @@ -for STEPS in 10 30 60 100 150 200 300; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name diff_metrics_gt \ - --run_name s_$STEPS --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS \ - --run_no_w \ - --additional_metrics -done - -for STEPS in 10 30 60 100 150 200 300; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name diff_metrics_gen \ - --run_name s_$STEPS --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type diff \ - --diff_attack_steps $STEPS \ - --run_no_w \ - --additional_metrics \ - --target_clean_generated -done \ No newline at end of file diff --git a/attacks/scripts/diff/metr/1.sh b/attacks/scripts/diff/metr/1.sh deleted file mode 100644 index 7c3a71e..0000000 --- a/attacks/scripts/diff/metr/1.sh +++ /dev/null @@ -1,20 +0,0 @@ -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 \ No newline at end of file diff --git a/attacks/scripts/diff/metr/2.sh b/attacks/scripts/diff/metr/2.sh deleted file mode 100644 index a4051ba..0000000 --- a/attacks/scripts/diff/metr/2.sh +++ /dev/null @@ -1,20 +0,0 @@ -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 \ No newline at end of file diff --git a/attacks/scripts/diff/metr/3.sh b/attacks/scripts/diff/metr/3.sh deleted file mode 100644 index 9c86458..0000000 --- a/attacks/scripts/diff/metr/3.sh +++ /dev/null @@ -1,20 +0,0 @@ -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 \ No newline at end of file diff --git a/attacks/scripts/install.sh b/attacks/scripts/install.sh deleted file mode 100644 index 51c37a3..0000000 --- a/attacks/scripts/install.sh +++ /dev/null @@ -1,7 +0,0 @@ -# you will need gdown and svn - -# git clone https://github.com/Alphonsce/WatermarkAttacker.git /data/varlamov_a_data/dima/attacks/WatermarkAttacker - -export PATH_TO_OPEN_CLIP=/data/varlamov_a_data/miniconda3/envs/new_attack/lib/python3.10/site-packages/tree_ring_watermark/open_clip - -svn export --force https://github.com/Alphonsce/tree-ring-watermark/trunk/src/tree_ring_watermark/open_clip $PATH_TO_OPEN_CLIP \ No newline at end of file diff --git a/attacks/scripts/test.sh b/attacks/scripts/test.sh deleted file mode 100644 index 3c9d663..0000000 --- a/attacks/scripts/test.sh +++ /dev/null @@ -1 +0,0 @@ -python -m tree_ring_watermark.run_tree_ring_watermark --run_name image_generation --w_channel 3 --w_pattern ring --start 0 --end 10 --reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ No newline at end of file diff --git a/attacks/scripts/vae2018/fid_2018_att.sh b/attacks/scripts/vae2018/fid_2018_att.sh deleted file mode 100644 index 76a55b1..0000000 --- a/attacks/scripts/vae2018/fid_2018_att.sh +++ /dev/null @@ -1,22 +0,0 @@ -for QUALITY in 1 2 3 4 5 6 7 8; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name vae2018_metrics_gt \ - --run_name q_$QUALITY --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type vae --vae_attack_name bmshj2018-factorized \ - --vae_attack_quality $QUALITY \ - --run_no_w \ - --additional_metrics -done - -for QUALITY in 1 2 3 4 5 6 7 8; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name vae2018_metrics_gen \ - --run_name q_$QUALITY --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type vae --vae_attack_name bmshj2018-factorized \ - --vae_attack_quality $QUALITY \ - --run_no_w \ - --additional_metrics \ - --target_clean_generated -done \ No newline at end of file diff --git a/attacks/scripts/vae2018/metr/1.sh b/attacks/scripts/vae2018/metr/1.sh deleted file mode 100644 index 4f760b6..0000000 --- a/attacks/scripts/vae2018/metr/1.sh +++ /dev/null @@ -1,18 +0,0 @@ -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 \ No newline at end of file diff --git a/attacks/scripts/vae2018/vae2018attacks.sh b/attacks/scripts/vae2018/vae2018attacks.sh deleted file mode 100644 index 3680f4f..0000000 --- a/attacks/scripts/vae2018/vae2018attacks.sh +++ /dev/null @@ -1,9 +0,0 @@ -for QUALITY in 1 2 3 4 5 6 7 8; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_attack \ - --project_name new_vae_2018_attacks \ - --run_name q_$QUALITY --w_channel 3 --w_pattern ring --start 0 --end 500 --reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ - --with_tracking \ - --use_attack --attack_type vae --vae_attack_name bmshj2018-factorized \ - --vae_attack_quality $QUALITY - -done \ No newline at end of file diff --git a/attacks/scripts/vae2020/fid_2020_att.sh b/attacks/scripts/vae2020/fid_2020_att.sh deleted file mode 100644 index 10201c2..0000000 --- a/attacks/scripts/vae2020/fid_2020_att.sh +++ /dev/null @@ -1,22 +0,0 @@ -for QUALITY in 1 2 3 4 5 6; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name vae2020_metrics_gt \ - --run_name q_$QUALITY --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type vae --vae_attack_name cheng2020-anchor \ - --vae_attack_quality $QUALITY \ - --run_no_w \ - --additional_metrics -done - -for QUALITY in 1 2 3 4 5 6; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_fid \ - --project_name vae2020_metrics_gen \ - --run_name q_$QUALITY --w_channel 3 --w_pattern ring \ - --with_tracking \ - --use_attack --attack_type vae --vae_attack_name cheng2020-anchor \ - --vae_attack_quality $QUALITY \ - --run_no_w \ - --additional_metrics \ - --target_clean_generated -done \ No newline at end of file diff --git a/attacks/scripts/vae2020/vae2020attacks.sh b/attacks/scripts/vae2020/vae2020attacks.sh deleted file mode 100644 index b03abbe..0000000 --- a/attacks/scripts/vae2020/vae2020attacks.sh +++ /dev/null @@ -1,9 +0,0 @@ -for QUALITY in 1 2 3 4 5 6; do - accelerate launch -m tree_ring_watermark.run_tree_ring_watermark_attack \ - --project_name new_vae_2020_attacks \ - --run_name q_$QUALITY --w_channel 3 --w_pattern ring --start 0 --end 500 --reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ - --with_tracking \ - --use_attack --attack_type vae --vae_attack_name cheng2020-anchor \ - --vae_attack_quality $QUALITY - -done \ No newline at end of file diff --git a/tree-ring-watermark b/tree-ring-watermark deleted file mode 160000 index a330f00..0000000 --- a/tree-ring-watermark +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a330f00a203a4b566edda7f1de44adec22aa9557