Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T2SMark: Balancing Robustness and Diversity in Noise-as-Watermark for Diffusion Models

Dependencies

The code requires Python 3.10.13 and the packages listed in requirements.txt. Install them with:

pip install -r requirements.txt

Note: To run T2SMark on Stable Diffusion v3.5 Medium, upgrade diffusers from 0.21.4 to 0.32.0. Otherwise, StableDiffusion3Pipeline will not be supported.

Usage

Stable Diffusion v2.1

python run.py --name test

Stable Diffusion v3.5 Medium

python run_sd35.py --name test_sd35

The --name argument is required. For additional options, see option.py.

Evaluation

Our code includes built-in evaluation of TPR, bit accuracy, and CLIP score. For LPIPS and FID metrics, we recommend using the following repositories:

Note: The COCO prompts and ground-truth images used in our experiments are available here, sourced from the Tree-Ring Watermark repository.

Baselines

The code for all baseline methods is provided below:

Related Project

T2SMark focuses on watermark design, while FARI focuses on fast and robust watermark recovery. If you are interested in inversion-based verification for diffusion watermarking, check out FARI: Robust One-Step Inversion for Watermarking in Diffusion Models.

Acknowledgements

We borrow the code from Tree-Ring Watermark and Gaussian Shading. We appreciate the authors for sharing their code.

Citation

If our work assists your research, feel free to give us a star ⭐ or cite us using:

@inproceedings{yang2025t2smark,
  author = {Yang, Jindong and Fang, Han and Zhang, Weiming and Yu, Nenghai and Chen, Kejiang},
  booktitle = {Advances in Neural Information Processing Systems},
  title = {T2SMark: Balancing Robustness and Diversity in Noise-as-Watermark for Diffusion Models},
  pages = {118642--118668},
  volume = {38},
  year = {2025}
}

About

[NeurIPS 2025] The official implementation of "T2SMark: Balancing Robustness and Diversity in Noise-as-Watermark for Diffusion Models"

Resources

Stars

51 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages