Welcome to the official repository for the method presented in DiffProtect: Generate Adversarial Examples with Diffusion Models for Facial Privacy Protection by Jiang Liu*, Chun Pong Lau*, and Rama Chellappa.
Aug 1th, 2023 Preview code release.
pip install -r requirements.txt
- Download DiffAE checkpoint ffhq256_autoenc to
./checkpoints
- Download the weights for victim models from here and extract to
./assets
python demo.py
Please cite our paper if you find this codebase helpful :)
@article{liu2023diffprotect,
title={DiffProtect: Generate Adversarial Examples with Diffusion Models for Facial Privacy Protection},
author={Liu, Jiang and Lau, Chun Pong and Chellappa, Rama},
journal={arXiv preprint arXiv:2305.13625},
year={2023}
}