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:
- ModelScope or
- HuggingFace
Download DINOv2 checkpoint and revise
/configs/anydoor.yamlfor the path (line 83) - URL: https://github.com/facebookresearch/dinov2?tab=readme-ov-file
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