Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

DefectFill: Realistic Defect Generation with Inpainting Diffusion Model for Visual Inspection

About

Developing effective visual inspection models remains challenging due to the scarcity of defect data. While image generation models have been used to synthesize defect images, producing highly realistic defects remains difficult. We propose DefectFill, a novel method for realistic defect generation that requires only a few reference defect images. It leverages a fine-tuned inpainting diffusion model, optimized with our custom loss functions incorporating defect, object, and attention terms. It enables precise capture of detailed, localized defect features and their seamless integration into defect-free objects. Additionally, our Low-Fidelity Selection method further enhances the defect sample quality. Experiments show that DefectFill generates high-quality defect images, enabling visual inspection models to achieve state-of-the-art performance on the MVTec AD dataset.

Jaewoo Song, Daemin Park, Kanghyun Baek, Sangyub Lee, Jooyoung Choi, Eunji Kim, Sungroh Yoon• 2025

Related benchmarks

TaskDatasetResultRank
Anomaly LocalizationMVTec-AD (test)
Pixel AUROC100
181
Anomaly ClassificationMVTec-AD (test)--
50
Image-level Anomaly DetectionMVTec AD pill--
10
Defect GenerationMVTec AD bottle v1 (test)
KID30.99
4
Defect GenerationMVTec AD capsule v1 (test)
KID5.6
4
Defect GenerationMVTec AD hazelnut v1 (test)
KID1.13
4
Defect GenerationMVTec AD leather v1 (test)
KID74.66
4
Defect GenerationMVTec AD pill v1 (test)
KID8.76
4
Defect GenerationMVTec AD tile v1 (test)
KID45.14
4
Defect GenerationMVTec AD toothbrush v1 (test)
KID3.19
4
Showing 10 of 22 rows

Other info

Follow for update