TF-IDG: Training-Free Industrial Defect Generation with Diffusion Models (ICCV 2025)

October 1, 2025 ยท View on GitHub

Environment

Python=3.8.5 , torch==2.0.0

Install with pip:

pip install -r requirements.txt

Download Checkpoints

Download AnyDoor checkpoint:

Create a checkpoint folder and put the checkpoints of dinov2 and anydoor into it.

./checkpoint/dinov2_vitg14_pretrain.pth
./checkpoint/epoch=1-step=8687.ckpt

Inference

python run_inference.py