EditShield: Protecting Unauthorized Image Editing by Instruction-guided Diffusion Models. Project Page | Paper
conda env create -f environment.yaml
conda activate Editshield
bash scripts/download_checkpoints.sh
Step 2. Create a perturbation using the EditShield with Expectation Over Transformation (EOT), we use center cropping as an example:
python EOT_Center.py
We also provide codes for Gaussian kernel smoothing and Image rotation.
python Cap_EOT_C.py
python --number 5 --method EOT-C Caption_Metrics.py
@article{chen2023editshield,
title={EditShield: Protecting Unauthorized Image Editing by Instruction-guided Diffusion Models},
author={Chen, Ruoxi and Jin, Haibo and Chen, Jinyin and Sun, Lichao},
journal={arXiv preprint arXiv:2311.12066},
year={2023}
}