--- title: DefectGen emoji: 🔍 colorFrom: yellow colorTo: green sdk: static app_file: index.html pinned: false license: agpl-3.0 short_description: GenAI synthetic defects for low-data defect detection --- # DefectGen demo Fine-tuned diffusion inpainting (LoRA) paints synthetic defects onto clean leather; a defect segmentation model trained with them is compared with one trained on real images only. - **Detect:** two detectors side by side on any leather image, running in your browser (ONNX Runtime Web; nothing is uploaded). - **GenAI gallery:** clean image, generated defect and refined label. - **Results:** the 39-run experiment, mean ± std over 3 seeds, real test images only. Code, method and leakage rules: https://github.com/Adarshpandey108/defectgen Images: MVTec AD leather (Bergmann et al., CVPR 2019), CC BY-NC-SA 4.0, non-commercial. Generated images and models derived from it are shared under the same licence. App code: AGPL-3.0 (Ultralytics); source of this page: `index.html`, `main.js`, `detect.js`.