-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
99 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,7 @@ eval_st_sig_logs | |
|
||
requirements.test.txt | ||
|
||
*.egg-info | ||
*.egg-info | ||
|
||
test.sh | ||
/tests |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,5 @@ | ||
-e . | ||
-e ./WatermarkAttacker | ||
|
||
torch==2.1.2 | ||
torchvision==0.16.2 | ||
transformers==4.31.0 | ||
diffusers==0.14.0 | ||
accelerate==0.26.1 | ||
xformers==0.0.23.post1 | ||
|
||
# Stable-Signature dependencies: | ||
einops==0.3.0 | ||
open_clip_torch==2.0.2 | ||
torchmetrics==1.3.0.post0 | ||
augly==1.0.0 | ||
pytorch-fid==0.3.0 | ||
pytorch-lightning==2.1.3 | ||
|
||
# WM-Attacker dependencies: | ||
wandb | ||
datasets | ||
ftfy | ||
omegaconf | ||
opencv-python | ||
scikit-image | ||
bm3d | ||
compressai | ||
torch_fidelity | ||
onnxruntime | ||
|
||
# Development: | ||
black | ||
isort | ||
invisible-watermark | ||
invisible-watermark | ||
jupyter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
while getopts "r:s:" opt; do | ||
case $opt in | ||
r) r="$OPTARG" | ||
;; | ||
s) s="$OPTARG" | ||
;; | ||
\?) echo "Invalid option -$OPTARG" >&2 | ||
;; | ||
esac | ||
done | ||
|
||
accelerate launch -m metr.run_metr \ | ||
--project_name metr-detect-no-att \ | ||
--run_name s=$s-r=$r --w_channel 3 --w_pattern ring \ | ||
--start 0 --end 1000 \ | ||
--reference_model ViT-g-14 --reference_model_pretrain laion2b_s12b_b42k \ | ||
--with_tracking \ | ||
--w_radius $r \ | ||
--msg_type binary \ | ||
--use_random_msgs \ | ||
--msg_scaler $s \ | ||
--no_stable_sig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters