Code Repository for the CVPR 2026 Paper "Unleashing Stealthy Backdoor Pandemic by Infecting a Single Diffusion Model" paper
Create the conda environment from the provided file:
conda env create -f environment.yml
conda activate eidolonRun all commands below from the repository root:
cd EidolonFor a quick check, download the provided pretrained UNet and text encoder checkpoints and place them as:
models/unet/cifar10/checkpoint-600/unet/
models/text_encoder/cifar10/
Then generate trojan images:
bash shells/generate_trojan_images.shTrain the downstream classifier:
bash shells/train_downstream.shRun the scripts in this order:
bash shells/generate_clean_images.sh
bash shells/optimize_trigger.sh
bash shells/unet_train.sh
bash shells/text_encoder_train.sh
bash shells/generate_trojan_images.sh
bash shells/train_downstream.sh