{
"k": "5",
"n_synthetic": 100,
"models": {
"real_only": {
"run_id": "leather-real-k5-cp0-syn0-s0",
"seed": "0",
"val_mask_map50": "0.76267",
"test_mask_map50": "0.62173"
},
"genai": {
"run_id": "leather-synthetic-k5-cp0-syn100-s0",
"seed": "0",
"val_mask_map50": "0.66089",
"test_mask_map50": "0.83717"
}
},
"detect": {
"conf": 0.25,
"iou": 0.5,
"imgsz": 512
},
"links": {
"github": "https://github.com/Adarshpandey108/defectgen",
"lora": "https://huggingface.co/adarsh108/defectgen-leather-lora"
},
"classes": [
"color",
"cut",
"fold",
"glue",
"poke"
],
"headline": "With 5 real defect images per class, adding 100 GenAI synthetic defects per class raised mask mAP50 from 0.653 ± 0.066 to 0.786 ± 0.053 (mean ± std of 3 seeds, real-only test set), on par with copy-paste (0.765 ± 0.015) within seed noise. With 3 real images: 0.600 ± 0.025 → 0.623 ± 0.057, within seed noise; with all real images: 0.742 ± 0.051 → 0.809 ± 0.040, a gain beyond seed noise. Copy-paste stays ahead of GenAI with 3 real and all real images.",
"tables": {
"main": "
| Real images per type (K) | Real only | + Copy-paste | + GenAI synthetic (best on val) | + Both |
|---|
| 3 | 0.600 ± 0.025 | 0.743 ± 0.035 | 0.623 ± 0.057 (50/type) | 0.743 ± 0.040 (50/type) |
| 5 | 0.653 ± 0.066 | 0.765 ± 0.015 | 0.786 ± 0.053 (100/type) | not run |
| All (8–10) | 0.742 ± 0.051 | 0.923 ± 0.018 | 0.809 ± 0.040 (100/type) | not run |
",
"grid": "| K | 0/type val · test | 50/type val · test | 100/type val · test | 200/type val · test |
|---|
| 3 | 0.508 · 0.600 ± 0.025 | 0.583 · 0.623 ± 0.057 | 0.532 · 0.631 ± 0.063 | 0.471 · 0.700 ± 0.044 |
| 5 | 0.655 · 0.653 ± 0.066 | 0.571 · 0.718 ± 0.072 | 0.626 · 0.786 ± 0.053 | 0.615 · 0.668 ± 0.092 |
| All (8–10) | 0.711 · 0.742 ± 0.051 | 0.686 · 0.771 ± 0.044 | 0.729 · 0.809 ± 0.040 | 0.622 · 0.837 ± 0.061 |
",
"per_class": "| K | Method | color | cut | fold | glue | poke |
|---|
| 3 | Real only | 0.62 | 0.64 | 0.42 | 0.96 | 0.36 |
| 3 | + Copy-paste | 0.84 | 0.97 | 0.32 | 0.98 | 0.61 |
| 3 | + GenAI | 0.81 | 0.59 | 0.34 | 0.97 | 0.40 |
| 5 | Real only | 0.70 | 0.69 | 0.40 | 0.97 | 0.50 |
| 5 | + Copy-paste | 0.93 | 0.75 | 0.75 | 1.00 | 0.39 |
| 5 | + GenAI | 0.90 | 0.89 | 0.75 | 0.97 | 0.41 |
| All (8–10) | Real only | 0.87 | 0.65 | 0.70 | 1.00 | 0.49 |
| All (8–10) | + Copy-paste | 0.98 | 1.00 | 0.96 | 1.00 | 0.68 |
| All (8–10) | + GenAI | 0.98 | 0.86 | 0.74 | 1.00 | 0.46 |
",
"generation": "| K | Defect | Accepted / attempted | KID GenAI · copy-paste | Real-vs-fake acc. GenAI · copy-paste |
|---|
| 3 | color | 200 / 200 (100%) | 0.075 · 0.024 | 0.98 · 0.86 |
| 3 | cut | 200 / 201 (100%) | 0.059 · 0.037 | 0.84 · 0.79 |
| 3 | fold | 200 / 582 (34%) | 0.086 · 0.047 | 0.93 · 0.90 |
| 3 | glue | 200 / 200 (100%) | 0.050 · 0.031 | 0.94 · 0.80 |
| 3 | poke | 200 / 201 (100%) | 0.069 · 0.049 | 0.96 · 0.91 |
| 5 | color | 200 / 214 (93%) | 0.043 · 0.024 | 0.96 · 0.89 |
| 5 | cut | 200 / 201 (100%) | 0.071 · 0.040 | 0.86 · 0.75 |
| 5 | fold | 200 / 371 (54%) | 0.074 · 0.047 | 0.94 · 0.87 |
| 5 | glue | 200 / 200 (100%) | 0.045 · 0.034 | 0.92 · 0.76 |
| 5 | poke | 200 / 200 (100%) | 0.080 · 0.045 | 0.96 · 0.92 |
| All (8–10) | color | 200 / 200 (100%) | 0.052 · 0.021 | 0.96 · 0.84 |
| All (8–10) | cut | 200 / 201 (100%) | 0.052 · 0.031 | 0.79 · 0.69 |
| All (8–10) | fold | 200 / 214 (93%) | 0.088 · 0.034 | 0.97 · 0.86 |
| All (8–10) | glue | 200 / 232 (86%) | 0.044 · 0.019 | 0.84 · 0.70 |
| All (8–10) | poke | 200 / 216 (93%) | 0.063 · 0.035 | 0.94 · 0.92 |
"
},
"examples": [
"examples/color_004.jpg",
"examples/cut_004.jpg",
"examples/fold_000.jpg",
"examples/glue_011.jpg",
"examples/poke_001.jpg",
"examples/good_000.jpg"
],
"gallery": [
{
"file": "gallery/k3_syn_color_0000.jpg",
"caption": "color · trained on 3 real color defects",
"defect": "color",
"k": "3"
},
{
"file": "gallery/k3_syn_color_0001.jpg",
"caption": "color · trained on 3 real color defects",
"defect": "color",
"k": "3"
},
{
"file": "gallery/k3_syn_color_0002.jpg",
"caption": "color · trained on 3 real color defects",
"defect": "color",
"k": "3"
},
{
"file": "gallery/k3_syn_cut_0000.jpg",
"caption": "cut · trained on 3 real cut defects",
"defect": "cut",
"k": "3"
},
{
"file": "gallery/k3_syn_cut_0001.jpg",
"caption": "cut · trained on 3 real cut defects",
"defect": "cut",
"k": "3"
},
{
"file": "gallery/k3_syn_cut_0002.jpg",
"caption": "cut · trained on 3 real cut defects",
"defect": "cut",
"k": "3"
},
{
"file": "gallery/k3_syn_fold_0000.jpg",
"caption": "fold · trained on 3 real fold defects",
"defect": "fold",
"k": "3"
},
{
"file": "gallery/k3_syn_fold_0001.jpg",
"caption": "fold · trained on 3 real fold defects",
"defect": "fold",
"k": "3"
},
{
"file": "gallery/k3_syn_fold_0002.jpg",
"caption": "fold · trained on 3 real fold defects",
"defect": "fold",
"k": "3"
},
{
"file": "gallery/k3_syn_glue_0000.jpg",
"caption": "glue · trained on 3 real glue defects",
"defect": "glue",
"k": "3"
},
{
"file": "gallery/k3_syn_glue_0001.jpg",
"caption": "glue · trained on 3 real glue defects",
"defect": "glue",
"k": "3"
},
{
"file": "gallery/k3_syn_glue_0002.jpg",
"caption": "glue · trained on 3 real glue defects",
"defect": "glue",
"k": "3"
},
{
"file": "gallery/k3_syn_poke_0000.jpg",
"caption": "poke · trained on 3 real poke defects",
"defect": "poke",
"k": "3"
},
{
"file": "gallery/k3_syn_poke_0001.jpg",
"caption": "poke · trained on 3 real poke defects",
"defect": "poke",
"k": "3"
},
{
"file": "gallery/k3_syn_poke_0002.jpg",
"caption": "poke · trained on 3 real poke defects",
"defect": "poke",
"k": "3"
},
{
"file": "gallery/kall_syn_color_0000.jpg",
"caption": "color · trained on all real color defects",
"defect": "color",
"k": "all"
},
{
"file": "gallery/kall_syn_color_0001.jpg",
"caption": "color · trained on all real color defects",
"defect": "color",
"k": "all"
},
{
"file": "gallery/kall_syn_color_0002.jpg",
"caption": "color · trained on all real color defects",
"defect": "color",
"k": "all"
},
{
"file": "gallery/kall_syn_cut_0000.jpg",
"caption": "cut · trained on all real cut defects",
"defect": "cut",
"k": "all"
},
{
"file": "gallery/kall_syn_cut_0001.jpg",
"caption": "cut · trained on all real cut defects",
"defect": "cut",
"k": "all"
},
{
"file": "gallery/kall_syn_cut_0002.jpg",
"caption": "cut · trained on all real cut defects",
"defect": "cut",
"k": "all"
},
{
"file": "gallery/kall_syn_fold_0000.jpg",
"caption": "fold · trained on all real fold defects",
"defect": "fold",
"k": "all"
},
{
"file": "gallery/kall_syn_fold_0001.jpg",
"caption": "fold · trained on all real fold defects",
"defect": "fold",
"k": "all"
},
{
"file": "gallery/kall_syn_fold_0002.jpg",
"caption": "fold · trained on all real fold defects",
"defect": "fold",
"k": "all"
},
{
"file": "gallery/kall_syn_glue_0000.jpg",
"caption": "glue · trained on all real glue defects",
"defect": "glue",
"k": "all"
},
{
"file": "gallery/kall_syn_glue_0001.jpg",
"caption": "glue · trained on all real glue defects",
"defect": "glue",
"k": "all"
},
{
"file": "gallery/kall_syn_glue_0002.jpg",
"caption": "glue · trained on all real glue defects",
"defect": "glue",
"k": "all"
},
{
"file": "gallery/kall_syn_poke_0000.jpg",
"caption": "poke · trained on all real poke defects",
"defect": "poke",
"k": "all"
},
{
"file": "gallery/kall_syn_poke_0001.jpg",
"caption": "poke · trained on all real poke defects",
"defect": "poke",
"k": "all"
},
{
"file": "gallery/kall_syn_poke_0002.jpg",
"caption": "poke · trained on all real poke defects",
"defect": "poke",
"k": "all"
}
],
"plots": [
"results/plots/map_vs_synthetic.png",
"results/plots/per_class_ap.png"
],
"grids": [
"results/grids/k3_color.jpg",
"results/grids/k3_cut.jpg",
"results/grids/k3_fold.jpg",
"results/grids/k3_glue.jpg",
"results/grids/k3_poke.jpg",
"results/grids/k5_color.jpg",
"results/grids/k5_cut.jpg",
"results/grids/k5_fold.jpg",
"results/grids/k5_glue.jpg",
"results/grids/k5_poke.jpg",
"results/grids/kall_color.jpg",
"results/grids/kall_cut.jpg",
"results/grids/kall_fold.jpg",
"results/grids/kall_glue.jpg",
"results/grids/kall_poke.jpg"
]
}