Spaces:
Running on Zero
Running on Zero
fix: verified examples - leather cut (precise bbox) + candle counting (4 perfect bboxes)
Browse files- app.py +6 -6
- examples/leather_cut.jpg +0 -0
- 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 —
|
| 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 |
],
|
| 272 |
-
# 5. Object Counting
|
| 273 |
[
|
| 274 |
None,
|
| 275 |
-
"examples/
|
| 276 |
-
"
|
| 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
|