Spaces:
Build error
Build error
fix: PCB use pcb3/bad009 (Wrong Position), candle prompt with numbered labels and total count
Browse files- app.py +4 -4
- examples/pcb_defect.jpg +0 -0
- 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 —
|
| 266 |
[
|
| 267 |
-
"examples/
|
| 268 |
-
"examples/
|
| 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\": \"
|
| 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
|
|