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

fix: PCB use pcb3/bad009 (Wrong Position), candle prompt with numbered labels and total count

Browse files
Files changed (3) hide show
  1. app.py +4 -4
  2. examples/pcb_defect.jpg +0 -0
  3. examples/pcb_good.jpg +0 -0
app.py CHANGED
@@ -262,10 +262,10 @@ 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 — 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
  ],
@@ -273,7 +273,7 @@ EXAMPLES = [
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
 
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 wrong position
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
  ],
 
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_1\"}, numbering them 1, 2, 3, etc. State the total count at the end.",
277
  512,
278
  ],
279
  # 7. Industrial OCR (single image) — drink bottle
examples/pcb_defect.jpg CHANGED
examples/pcb_good.jpg CHANGED