Quick start
To assess implemented watermarking algorithms and attacks on watermarks, follow the step-by-step procedure below.
B. Configure the environment
In python>=3.10 environment run
source prepare.sh
See setup for more detailed setup
C. HuggingFace
Set the HF_TOKEN environment variable with your HuggingFace token (see HuggingFace Authentication Setup for details), then authenticate:
(.venv) python huggingface_login.py
D. All set!
Specify the path to your configuration file as a required parameter:
(.venv) wibench --config configs/trustmark_demo.yml
You can find some predefined configurations in the configs directory.
E. Results
Upon completion of computations, you can view watermarked images and explore interactive charts for different combinations of watermarking algorithms, attacks, and computed performance metrics.
To explore interactive wind rose chart with average TPR@0.1%FPR for all algorithms and attacks evaluated so far, run the following command:
(.venv) python make_plots.py --results_dir test_results/trustmark
HuggingFace Authentication Setup
The huggingface_hub requires a token generated on the page with the following setup:
- Token Configuration:
Enable “Read access to contents of all public gated repos you can access” (Required for accessing restricted model repositories)
- Repository Access:
Visit FLUX.1-dev repository and request access to it
Click “Agree and access repository” (Grants legal approval for model usage)