jiang-cc commited on
Commit
8f56f5d
Β·
verified Β·
1 Parent(s): dbd07aa

perf: compress example images from 12MB to 542KB (512px JPEG)

Browse files
app.py CHANGED
@@ -210,43 +210,43 @@ achieving state-of-the-art results on industrial anomaly detection benchmarks.
210
  EXAMPLES = [
211
  # 1. Anomaly Discrimination (yes/no) β€” bottle contamination
212
  [
213
- "examples/bottle_good.png",
214
- "examples/bottle_contamination.png",
215
  "The first image is a normal sample. Is there any anomaly in the second image? A. Yes B. No. Please answer the letter only.",
216
  128,
217
  ],
218
  # 2. Defect Description β€” cable cut
219
  [
220
- "examples/cable_good.png",
221
- "examples/cable_cut.png",
222
  "The first image is a normal sample. Compared with the first image, please describe the anomaly in the second image in detail.",
223
  256,
224
  ],
225
  # 3. Fine-grained Defect Localization β€” bottle contamination
226
  [
227
- "examples/bottle_good.png",
228
- "examples/bottle_contamination.png",
229
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
230
  256,
231
  ],
232
  # 4. Defect Localization β€” metal nut scratch
233
  [
234
- "examples/metal_nut_good.png",
235
- "examples/metal_nut_scratch.png",
236
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
237
  256,
238
  ],
239
  # 5. Defect Localization β€” cable cut
240
  [
241
- "examples/cable_good.png",
242
- "examples/cable_cut.png",
243
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
244
  256,
245
  ],
246
  # 6. Object Counting (single image) β€” capsules
247
  [
248
  None,
249
- "examples/capsules_count.png",
250
  "Please locate all capsules in this image with bounding boxes in JSON format, and count the total number of capsules.",
251
  512,
252
  ],
 
210
  EXAMPLES = [
211
  # 1. Anomaly Discrimination (yes/no) β€” bottle contamination
212
  [
213
+ "examples/bottle_good.jpg",
214
+ "examples/bottle_contamination.jpg",
215
  "The first image is a normal sample. Is there any anomaly in the second image? A. Yes B. No. Please answer the letter only.",
216
  128,
217
  ],
218
  # 2. Defect Description β€” cable cut
219
  [
220
+ "examples/cable_good.jpg",
221
+ "examples/cable_cut.jpg",
222
  "The first image is a normal sample. Compared with the first image, please describe the anomaly in the second image in detail.",
223
  256,
224
  ],
225
  # 3. Fine-grained Defect Localization β€” bottle contamination
226
  [
227
+ "examples/bottle_good.jpg",
228
+ "examples/bottle_contamination.jpg",
229
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
230
  256,
231
  ],
232
  # 4. Defect Localization β€” metal nut scratch
233
  [
234
+ "examples/metal_nut_good.jpg",
235
+ "examples/metal_nut_scratch.jpg",
236
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
237
  256,
238
  ],
239
  # 5. Defect Localization β€” cable cut
240
  [
241
+ "examples/cable_good.jpg",
242
+ "examples/cable_cut.jpg",
243
  "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
244
  256,
245
  ],
246
  # 6. Object Counting (single image) β€” capsules
247
  [
248
  None,
249
+ "examples/capsules_count.jpg",
250
  "Please locate all capsules in this image with bounding boxes in JSON format, and count the total number of capsules.",
251
  512,
252
  ],
examples/bottle_broken_large.jpg ADDED
examples/bottle_broken_small.jpg ADDED
examples/bottle_contamination.jpg ADDED
examples/bottle_good.jpg ADDED
examples/bottle_test_good.jpg ADDED
examples/cable_cut.jpg ADDED
examples/cable_good.jpg ADDED
examples/capsule_crack.jpg ADDED
examples/capsule_good.jpg ADDED
examples/capsules_count.jpg ADDED
examples/drink_bottle_ocr.jpg CHANGED

Git LFS Details

  • SHA256: 30787db3c59893644b3f551fba1399aff30f1b18add63e0a39df5f50ed5aafad
  • Pointer size: 132 Bytes
  • Size of remote file: 2.04 MB

Git LFS Details

  • SHA256: 93a755aaa96d60250d5bc47858ca13317dc0840148fa90a638bdaef603424bc2
  • Pointer size: 130 Bytes
  • Size of remote file: 34.5 kB
examples/metal_nut_good.jpg ADDED
examples/metal_nut_scratch.jpg ADDED
examples/pcb_defect.jpg ADDED
examples/pcb_good.jpg ADDED