Skip to content
Projetos

Sobre

[AAAI 2026] GenPTW: Latent Image Watermarking for Provenance Tracing and Tamper Localization

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+46
em 7 dias
+68
em 15 dias
-25
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

GenPTW: Latent Image Watermarking for Provenance Tracing and Tamper Localization

Zhenliang Gan1 · Chunya Liu2 · Yichao Tang1 · Binghao Wang2 · Shiwen Cui2 · Weiqiang Wang2 · Xinpeng Zhang1*

1 College of Computer Science and Artificial Intelligence, Fudan University, China
2 Ant Group, China

📧 Contact: [email protected] · {liuchunya.lcy, weiqiang.wwq, binghao.wbh, donn.csw}@antgroup.com · {yichao_tang, zhangxinpeng}@fudan.edu.cn

* Corresponding author

arXiv Home Page Camera-ready


🎬 Overview

We propose GenPTW, a General watermarking framework that unifies Provenance tracing and Tamper localization in latent space.


🖼️ Results


🚀 Training

accelerate launch genptw_train.py

Required Components

Component Description Path
📂 Dataset COCO2017 train COCO2017: Train images, annotations
VAE Stable Diffusion 2 Base --pretrained_vae
Localizer ConvNeXt backbone --pretrained_ConvNeXt
Inpainting Model SD2 Inpainting --pretrained_pipe_sd
Inpainting Model LaMA os.environ["LAMA_MODEL"] = "big-lama.pt"

⚙️ Training Configuration

The main hyper-parameters used in genptw_train.py are listed below:

Category Parameter Description Default
Data resolution Input image resolution 512
Data train_batch_size Batch size 2
Watermark phi_dimension Watermark bit length 64
Optimization learning_rate Learning rate 1e-5
Optimization num_train_epochs Training epochs 20
Optimization gradient_accumulation_steps Gradient accumulation 8

🧪 Testing

Step 1. Download Checkpoint

Download the pretrained 📦checkpoint, and organize it as:

Checkpoint/
 ├── msg_decoder.pth
 ├── localizer.pth
 └── diffusion_pytorch_model.safetensors

Then update the corresponding paths in Test.py.


Step 2. Prepare Dataset

Download the COCO2017 validation set.

Ensure that the image resolution, watermark bit length, and other hyper-parameters in Test.py are consistent with the training configuration.


Run testing:

python Test.py \
  --test_img_dir /path/to/val2017 \
  --test_ann_file /path/to/instances_val2017.json \
  --pretrained_ckpt ./Checkpoint

🧪 Inference (infer.py)

Set the required parameters in infer.py, then run inference for text-to-image generation with watermark embedding.

python infer.py

📰 News

  • 🎉🎉🎉🎉 Our work has been featured by multiple official media platforms:

    • College of Computer Science and Artificial Intelligence, Fudan University (Official WeChat): Link

    • Ant Group (AntTech Official WeChat): Link

    • Netinfo Security Official WeChat: Link

    • Additional coverage: Link

  • 🎉🎉🎉 Our code has been released and the project is continuously being updated.

  • 🎉🎉🎉 Congratulations to GenPTW being accepted by AAAI 2026!

📣 GenPTW: Poster Presentation at AAAI 2026

📜 BibTeX

@inproceedings{gan2026genptw,
  title={GenPTW: Latent Image Watermarking for Provenance Tracing and Tamper Localization},
  author={Gan, Zhenliang and Liu, Chunya and Tang, Yichao and Wang, Binghao and Cui, Shiwen and Wang, Weiqiang and Zhang, Xinpeng},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={40},
  number={5},
  pages={4085--4093},
  year={2026}
}

Explore projetos relacionados

Carregando…