jiang-cc commited on
Commit
f9d38f4
·
verified ·
1 Parent(s): e487e3d

feat: diverse examples showcasing 5 capabilities + real images

Browse files
.gitattributes CHANGED
@@ -38,3 +38,9 @@ examples/bottle_broken_small.png filter=lfs diff=lfs merge=lfs -text
38
  examples/bottle_contamination.png filter=lfs diff=lfs merge=lfs -text
39
  examples/bottle_good.png filter=lfs diff=lfs merge=lfs -text
40
  examples/bottle_test_good.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
38
  examples/bottle_contamination.png filter=lfs diff=lfs merge=lfs -text
39
  examples/bottle_good.png filter=lfs diff=lfs merge=lfs -text
40
  examples/bottle_test_good.png filter=lfs diff=lfs merge=lfs -text
41
+ examples/cable_cut.png filter=lfs diff=lfs merge=lfs -text
42
+ examples/cable_good.png filter=lfs diff=lfs merge=lfs -text
43
+ examples/capsule_crack.png filter=lfs diff=lfs merge=lfs -text
44
+ examples/capsule_good.png filter=lfs diff=lfs merge=lfs -text
45
+ examples/metal_nut_good.png filter=lfs diff=lfs merge=lfs -text
46
+ examples/metal_nut_scratch.png filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -102,34 +102,39 @@ Upload a **reference (good) image** and a **test image**, then ask the model to
102
  """
103
 
104
  EXAMPLES = [
 
105
  [
106
  "examples/bottle_good.png",
107
  "examples/bottle_contamination.png",
108
- "The first image is good. Is there any anomaly in the second image? A.yes, B.no. Please answer the letter only.",
109
  128,
110
  ],
 
111
  [
112
- "examples/bottle_good.png",
113
- "examples/bottle_broken_large.png",
114
- "The first image is good. Is there any anomaly in the second image? A.yes, B.no. Please answer the letter only.",
115
  128,
116
  ],
 
117
  [
118
- "examples/bottle_good.png",
119
- "examples/bottle_test_good.png",
120
- "The first image is good. Is there any anomaly in the second image? A.yes, B.no. Please answer the letter only.",
121
- 128,
122
  ],
 
123
  [
124
- "examples/bottle_good.png",
125
- "examples/bottle_contamination.png",
126
- "The first image is a good sample. Compared with the first image, please describe the anomaly in the second image in detail.",
127
  256,
128
  ],
 
129
  [
130
  "examples/bottle_good.png",
131
- "examples/bottle_broken_small.png",
132
- "The first image is a good sample. Compared with the first image, please describe the anomaly in the second image in detail.",
133
  256,
134
  ],
135
  ]
 
102
  """
103
 
104
  EXAMPLES = [
105
+ # 1. Anomaly Discrimination (yes/no) — bottle
106
  [
107
  "examples/bottle_good.png",
108
  "examples/bottle_contamination.png",
109
+ "The first image is a normal sample. Is there any anomaly in the second image? A. Yes B. No. Please answer the letter only.",
110
  128,
111
  ],
112
+ # 2. Defect Classification — metal nut
113
  [
114
+ "examples/metal_nut_good.png",
115
+ "examples/metal_nut_scratch.png",
116
+ "The first image is a normal sample. What is the type of defect in the second image? A. Bent B. Scratch C. Color D. No defect. Please answer the letter only.",
117
  128,
118
  ],
119
+ # 3. Defect Description — cable
120
  [
121
+ "examples/cable_good.png",
122
+ "examples/cable_cut.png",
123
+ "The first image is a normal sample. Compared with the first image, please describe the anomaly in the second image in detail.",
124
+ 256,
125
  ],
126
+ # 4. Defect Localization — capsule
127
  [
128
+ "examples/capsule_good.png",
129
+ "examples/capsule_crack.png",
130
+ "The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
131
  256,
132
  ],
133
+ # 5. Object Analysis — bottle (good vs good)
134
  [
135
  "examples/bottle_good.png",
136
+ "examples/bottle_test_good.png",
137
+ "The first image is a normal sample. Please describe the object in the second image and analyze whether it has any quality issues.",
138
  256,
139
  ],
140
  ]
examples/cable_cut.png ADDED

Git LFS Details

  • SHA256: d733dea95e98ac6d1a500cfb569e2b5f76f4375030817b0aba200e26aa46572f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
examples/cable_good.png ADDED

Git LFS Details

  • SHA256: 89132397ea130312c961d447deb33216f14ec133c4ef62793b4ba817696e48cb
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
examples/capsule_crack.png ADDED

Git LFS Details

  • SHA256: 6462a533da731a19e4df05fc1815719b94603aee341a2ac620add75ec2334ef4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.16 MB
examples/capsule_good.png ADDED

Git LFS Details

  • SHA256: 86366d544a0182b04fdeacb62c9b23af8c72af24d35eaafeb8c210f603174728
  • Pointer size: 132 Bytes
  • Size of remote file: 1.16 MB
examples/metal_nut_good.png ADDED

Git LFS Details

  • SHA256: d7ca543f04733fb91ac02e18d0fbf06dcff554a1b1ad754173c42d10bb026bb6
  • Pointer size: 131 Bytes
  • Size of remote file: 508 kB
examples/metal_nut_scratch.png ADDED

Git LFS Details

  • SHA256: 1e5637c3409d05709eae62c7254f38900afa296902b1626e5902a5a2a4095f3d
  • Pointer size: 131 Bytes
  • Size of remote file: 500 kB