jiang-cc commited on
Commit
5e61a2b
·
verified ·
1 Parent(s): e5cdeb5

fix: verified examples - leather cut (precise bbox) + candle counting (4 perfect bboxes)

Browse files
Files changed (3) hide show
  1. app.py +6 -6
  2. examples/leather_cut.jpg +0 -0
  3. examples/leather_good.jpg +0 -0
app.py CHANGED
@@ -262,18 +262,18 @@ EXAMPLES = [
262
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
263
  256,
264
  ],
265
- # 4. Defect Localization — PCB missing part
266
  [
267
- "examples/pcb_good.jpg",
268
- "examples/pcb_defect.jpg",
269
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
270
  256,
271
  ],
272
- # 5. Object Counting + Detection (single image) — screw bag
273
  [
274
  None,
275
- "examples/screw_bag_count.jpg",
276
- "Please locate every screw and nut in this image with separate bounding boxes. Output as JSON list.",
277
  512,
278
  ],
279
  # 7. Industrial OCR (single image) — drink bottle
 
262
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
263
  256,
264
  ],
265
+ # 4. Defect Localization — leather cut
266
  [
267
+ "examples/leather_good.jpg",
268
+ "examples/leather_cut.jpg",
269
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
270
  256,
271
  ],
272
+ # 5. Object Counting (single image) — candle
273
  [
274
  None,
275
+ "examples/candle_count.jpg",
276
+ "How many candles are in this image? For each candle, give its bounding box as {\"bbox_2d\": [x1,y1,x2,y2], \"label\": \"candle_N\"}.",
277
  512,
278
  ],
279
  # 7. Industrial OCR (single image) — drink bottle
examples/leather_cut.jpg ADDED
examples/leather_good.jpg ADDED