See and try our example jupyter notebook in Colab or try the mimimal example of removing watermark localy using the steps below.
-
Install PyTorch and other requirements.
-
Clone the repository.
git clone https://github.com/facebookresearch/videoseal.git cd videoseal/wmforger/ -
Download the pretrained model weights.
wget https://dl.fbaipublicfiles.com/wmforger/convnext_pref_model.pth
-
Extract watermark.
python optimize_image.py --ckpt_path convnext_pref_model.pth --image assets/tahiti_watermarked.png
-
Download SA-1b dataset.
-
Update path to the dataset in
configs/datasets/sa-1b-full.yaml -
Train. We trained using 8 GPUs.
sbatch train-slurm.sh
Please see the LICENSE file in the root of the main repository.
If you find this repository useful, please consider giving a star ⭐ and please cite as:
@inproceedings{soucek2025transferable,
title={Transferable Black-Box One-Shot Forging of Watermarks via Image Preference Models},
author={Sou\v{c}ek, Tom\'{a}\v{s} and Rebuffi, Sylvestre-Alvise and Fernandez, Pierre and Jovanovi\'{c}, Nikola and Elsahar, Hady and Lacatusu, Valeriu and Tran, Tuan and Mourachko, Alexandre},
booktitle={Advances in Neural Information Processing Systems},
year={2025}
}