Downloads · 30 days
40
2% of all-time downloads
imatag/stable-signature-bzh-sdxl-vae-medium
stable-signature-bzh-sdxl-vae-medium is a machine learning model from imatag. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as mit.
You can use this watermarked VAE for your existing SDXL image generation pipelines to make sure generated images are watermarked.
Downloads · 30 days
40
2% of all-time downloads
All-time downloads
1.7K
Public
Parameters
83.7M
167 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors167 MB · 100%
From the Hugging Face model README
You can use this watermarked VAE for your existing SDXL image generation pipelines to make sure generated images are watermarked.
from diffusers.models import AutoencoderKL
from diffusers import StableDiffusionXLPipeline
model = "stabilityai/sdxl-turbo"
vae = AutoencoderKL.from_pretrained("imatag/stable-signature-bzh-sdxl-vae-medium")
pipe = StableDiffusionXLPipeline.from_pretrained(model, vae=vae)
For more information, please have a look at the official demo
This model was finetuned from the original StableDiffusion-XL autoencoder with the additional objective of including a medium invisible watermark, following the procedure of StableSignature. This watermark is detectable by IMATAG's demo BZH decoder, available via API.
Compared to other watermarking solutions such as invisible-watermark:
For security reasons we cannot release the weights of the detector. Instead, you may check for the presence of a watermark with the detect_api.py script like this:
python detect_api.py test.png
Visualization of watermark impact on 512x512 images from the COCO2017 validation dataset prompts with SDXL-turbo.
<p align="center"> <br> <b> 512x512: original (left), watermarked (middle), difference (right)</b> </p> <p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/0001.png /> </p> <p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/0003.png /> </p> <p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/0004.png /> </p> <p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/0005.png /> </p> <p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/0006.png /> </p>The watermark is robust to most editorial changes to an image, such as cropping, changing brightness or contrast, resizing or JPEG compression:
<p align="center"> <br> <b> from left to right: original, watermarked, difference, 'crop 50% + brigthen 50% + jpeg 80%' attack, 'downscale 2x + crop 50% + brigthen 50% + jpeg 50%' attack</b> </p> <p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/0000.png /> </p>The Receiver Operating Characteristic curve shows its performance under no modification and when modified by the two scenarios illustrated above:
<p align="center"> <img src=https://huggingface.co/spaces/imatag/stable-signature-bzh/resolve/main/eval/medium/roc.png /> </p>More details available in our announcement and our lab's blog post. For watermarked models with a different key, support for payload, other perceptual compromises, robustness to other attacks, or faster detection, please contact IMATAG.