Datasets:
image imagewidth (px) 480 4.32k | width int64 480 4.32k | height int64 640 5.31k | objects dict |
|---|---|---|---|
3,024 | 3,024 | {
"bbox": [
[
208,
537,
214,
277
],
[
1268,
1923,
97,
286
],
[
1135,
2074,
126,
92
],
[
1045,
2085,
77,
173
],
[
976,
2036,
64,
141
],
[
863,
... | |
1,920 | 2,560 | {
"bbox": [
[
516,
1237,
100,
130
],
[
516,
1375,
105,
117
],
[
623,
1228,
118,
242
],
[
744,
1208,
106,
125
],
[
746,
1335,
101,
113
],
[
853,
... | |
2,448 | 3,264 | {
"bbox": [
[
1434,
1264,
97,
255
],
[
898,
1270,
106,
222
],
[
1342,
1242,
74,
283
],
[
1221,
1270,
101,
221
],
[
1117,
1267,
97,
218
],
[
1040,
... | |
2,448 | 3,264 | {
"bbox": [
[
198,
992,
135,
231
],
[
330,
990,
155,
237
],
[
638,
999,
139,
220
],
[
779,
990,
135,
229
],
[
915,
990,
139,
216
],
[
761,
928... | |
2,448 | 3,264 | {
"bbox": [
[
541,
2265,
172,
140
],
[
563,
1601,
52,
256
],
[
497,
1619,
61,
244
],
[
101,
1658,
60,
522
],
[
0,
1720,
90,
500
],
[
1043,
111... | |
1,920 | 2,560 | {
"bbox": [
[
300,
873,
85,
165
],
[
179,
884,
64,
165
],
[
88,
881,
81,
170
],
[
54,
569,
96,
193
],
[
169,
570,
88,
195
],
[
465,
591,
... | |
1,920 | 2,560 | {
"bbox": [
[
654,
489,
85,
65
],
[
861,
497,
85,
60
],
[
995,
353,
79,
62
],
[
967,
513,
76,
45
],
[
759,
493,
85,
60
],
[
1061,
501,
8... | |
2,340 | 4,160 | {
"bbox": [
[
434,
2155,
162,
104
],
[
618,
1625,
145,
355
],
[
209,
2101,
152,
403
],
[
15,
2085,
176,
413
],
[
4,
1607,
91,
363
],
[
91,
158... | |
2,336 | 4,160 | {
"bbox": [
[
813,
1970,
108,
308
],
[
2112,
1976,
116,
307
],
[
1970,
2041,
125,
257
],
[
1813,
2029,
115,
263
],
[
1710,
1991,
65,
287
],
[
1607,
... | |
2,592 | 4,608 | {
"bbox": [
[
1862,
1823,
77,
274
],
[
1950,
1818,
97,
276
],
[
2055,
1823,
93,
271
],
[
2254,
1812,
85,
275
],
[
1763,
1823,
87,
282
],
[
1448,
... | |
3,120 | 4,160 | {
"bbox": [
[
1592,
1258,
150,
97
],
[
1750,
1267,
148,
97
],
[
1903,
1277,
142,
97
],
[
2371,
1301,
123,
94
],
[
2213,
1282,
133,
99
],
[
2765,
... | |
2,448 | 3,264 | {
"bbox": [
[
34,
1400,
91,
312
],
[
0,
1969,
65,
75
],
[
30,
1898,
79,
33
],
[
138,
1797,
80,
161
],
[
921,
1434,
61,
296
],
[
236,
1800,
... | |
2,448 | 3,264 | {
"bbox": [
[
1190,
2514,
93,
96
],
[
336,
2678,
51,
105
],
[
39,
2613,
75,
92
],
[
129,
2610,
63,
72
],
[
470,
2367,
224,
87
],
[
476,
2458,
... | |
2,448 | 3,264 | {
"bbox": [
[
1243,
391,
66,
203
],
[
1165,
398,
66,
204
],
[
993,
375,
64,
215
],
[
1069,
383,
84,
217
],
[
1178,
1654,
63,
231
],
[
1711,
73... | |
2,448 | 3,264 | {
"bbox": [
[
466,
1645,
97,
239
],
[
374,
1638,
86,
229
],
[
197,
1557,
154,
320
],
[
2366,
1087,
82,
218
],
[
250,
2220,
181,
255
],
[
2220,
... | |
1,920 | 2,560 | {
"bbox": [
[
6,
1047,
72,
292
],
[
191,
1351,
88,
308
],
[
326,
1325,
78,
333
],
[
410,
1363,
57,
292
],
[
476,
1357,
63,
294
],
[
548,
1363,... | |
2,448 | 3,264 | {
"bbox": [
[
2083,
1479,
108,
217
],
[
1448,
1949,
67,
263
],
[
1514,
1870,
74,
344
],
[
1592,
1859,
60,
325
],
[
1654,
1886,
67,
286
],
[
1318,
... | |
1,920 | 2,560 | {
"bbox": [
[
1460,
989,
99,
260
],
[
1339,
1290,
70,
229
],
[
1253,
1284,
72,
233
],
[
1178,
1287,
71,
255
],
[
1096,
1296,
72,
245
],
[
1014,
... | |
2,448 | 3,264 | {
"bbox": [
[
1123,
2531,
86,
164
],
[
1218,
2485,
70,
108
],
[
764,
1887,
111,
161
],
[
629,
1931,
140,
186
],
[
479,
1986,
154,
182
],
[
304,
... | |
3,120 | 4,208 | {
"bbox": [
[
547,
3686,
318,
83
],
[
0,
1800,
169,
359
],
[
2413,
1660,
467,
97
],
[
2374,
1549,
462,
98
],
[
2389,
1428,
453,
110
],
[
1496,
... | |
3,024 | 3,024 | {
"bbox": [
[
2215,
2012,
218,
183
],
[
2208,
1798,
224,
212
],
[
2060,
2012,
137,
198
],
[
1817,
2012,
243,
218
],
[
1588,
2038,
223,
187
],
[
98,
... | |
2,448 | 3,264 | {
"bbox": [
[
103,
1955,
82,
280
],
[
202,
1979,
95,
256
],
[
1261,
1653,
122,
260
],
[
2268,
447,
118,
317
],
[
2137,
443,
127,
332
],
[
2018,
... | |
2,448 | 3,264 | {
"bbox": [
[
680,
720,
60,
361
],
[
747,
719,
53,
362
],
[
810,
697,
116,
392
],
[
967,
720,
59,
385
],
[
1030,
675,
97,
462
],
[
1140,
655,
... | |
2,448 | 3,264 | {
"bbox": [
[
1128,
2402,
175,
126
],
[
946,
2419,
172,
119
],
[
938,
2293,
188,
117
],
[
364,
2443,
197,
112
],
[
752,
2289,
185,
125
],
[
554,
... | |
2,340 | 4,160 | {
"bbox": [
[
578,
1162,
67,
193
],
[
493,
1191,
53,
177
],
[
1156,
2007,
182,
187
],
[
414,
1180,
73,
184
],
[
833,
1989,
91,
231
],
[
949,
2... | |
2,336 | 4,160 | {
"bbox": [
[
1197,
3000,
60,
212
],
[
2100,
798,
122,
205
],
[
182,
3026,
37,
146
],
[
1077,
2978,
113,
223
],
[
1417,
3139,
30,
58
],
[
1347,
... | |
1,920 | 2,560 | {
"bbox": [
[
1770,
1187,
114,
225
],
[
1305,
591,
96,
312
],
[
839,
2017,
77,
237
],
[
770,
2022,
67,
232
],
[
699,
2023,
69,
227
],
[
628,
2... | |
1,920 | 2,560 | {
"bbox": [
[
337,
1981,
103,
199
],
[
759,
1972,
101,
200
],
[
646,
1981,
105,
186
],
[
556,
1985,
86,
195
],
[
446,
1981,
97,
202
],
[
223,
... | |
2,448 | 3,264 | {
"bbox": [
[
893,
1118,
113,
142
],
[
770,
1078,
119,
179
],
[
642,
1507,
109,
82
],
[
623,
1064,
138,
212
],
[
510,
1061,
110,
207
],
[
650,
... | |
1,920 | 2,560 | {
"bbox": [
[
777,
528,
142,
236
],
[
209,
1480,
126,
161
],
[
663,
2121,
51,
249
],
[
715,
2105,
51,
268
],
[
792,
2133,
155,
234
],
[
964,
2... | |
2,560 | 1,920 | {
"bbox": [
[
134,
1131,
144,
175
],
[
187,
1310,
89,
265
],
[
278,
1301,
96,
272
],
[
1945,
118,
63,
266
],
[
2489,
1243,
71,
240
],
[
2425,
... | |
2,448 | 3,264 | {
"bbox": [
[
1390,
1458,
85,
73
],
[
1795,
1348,
142,
93
],
[
1653,
1348,
138,
89
],
[
1490,
1369,
147,
76
],
[
1211,
1373,
50,
133
],
[
1395,
... | |
1,920 | 2,560 | {
"bbox": [
[
1519,
737,
162,
35
],
[
471,
1011,
173,
79
],
[
1685,
775,
154,
63
],
[
1842,
782,
71,
56
],
[
1524,
985,
160,
68
],
[
1701,
971... | |
1,920 | 2,560 | {
"bbox": [
[
475,
975,
72,
149
],
[
9,
1569,
89,
45
],
[
22,
1713,
125,
55
],
[
25,
1772,
136,
57
],
[
164,
1745,
88,
120
],
[
259,
1754,
... | |
2,448 | 3,264 | {
"bbox": [
[
948,
866,
139,
250
],
[
753,
2406,
145,
97
],
[
1932,
2537,
99,
192
],
[
2037,
2569,
148,
320
],
[
2190,
2569,
150,
316
],
[
2337,
... | |
1,920 | 2,560 | {
"bbox": [
[
936,
1609,
66,
183
],
[
63,
1714,
81,
171
],
[
184,
1816,
67,
178
],
[
258,
1831,
62,
165
],
[
963,
1875,
70,
183
],
[
380,
1853... | |
2,448 | 3,264 | {
"bbox": [
[
378,
1344,
114,
321
],
[
489,
2394,
98,
215
],
[
1265,
2696,
158,
118
],
[
1111,
2700,
149,
105
],
[
1268,
2824,
158,
182
],
[
1116,
... | |
2,448 | 3,264 | {
"bbox": [
[
603,
1929,
51,
47
],
[
655,
1928,
51,
52
],
[
940,
1931,
72,
98
],
[
764,
1931,
43,
42
],
[
868,
1931,
70,
100
],
[
1018,
1931,
... | |
2,448 | 3,264 | {
"bbox": [
[
254,
1425,
103,
333
],
[
1417,
732,
460,
100
],
[
513,
1018,
80,
328
],
[
1875,
1295,
454,
110
],
[
1421,
614,
445,
106
],
[
415,
... | |
3,264 | 2,448 | {
"bbox": [
[
2188,
1581,
124,
155
],
[
2318,
1592,
124,
155
],
[
2450,
1596,
235,
156
],
[
1943,
1586,
124,
155
],
[
1571,
1907,
164,
163
],
[
1924... | |
2,448 | 3,264 | {
"bbox": [
[
100,
1800,
142,
178
],
[
2401,
1491,
47,
173
],
[
2324,
1442,
70,
227
],
[
775,
1804,
114,
204
],
[
416,
1977,
109,
34
],
[
532,
... | |
2,560 | 1,920 | {
"bbox": [
[
2318,
224,
97,
205
],
[
1140,
645,
75,
249
],
[
1237,
631,
55,
290
],
[
1314,
636,
50,
266
],
[
1386,
634,
91,
268
],
[
1494,
64... | |
1,920 | 2,560 | {
"bbox": [
[
332,
479,
68,
288
],
[
257,
476,
73,
292
],
[
197,
454,
54,
317
],
[
135,
457,
55,
315
],
[
66,
442,
55,
326
],
[
9,
451,
... | |
1,920 | 2,560 | {
"bbox": [
[
1550,
467,
172,
183
],
[
1367,
490,
175,
156
],
[
1207,
493,
159,
157
],
[
983,
767,
152,
178
],
[
1139,
701,
137,
246
],
[
1282,
... |
FineSKU110k — SKU-110K in the unified detection format
Source: official SKU110K_fixed.tar.gz from the authors' S3 bucket. Repo: https://github.com/eg4000/SKU110K_CVPR19
Converted by the finedet project into a unified, AutoTrain-compatible layout:
image / width / height / objects{bbox, category} with COCO-format
[x, y, w, h] boxes in absolute pixels. Boxes are clipped to the image and
empty boxes dropped; category ids are densified per the category tables
below.
Box format
objects.bbox follows the COCO convention: [x, y, w, h] in absolute pixels,
origin at the image's top-left corner.
License
Original dataset: SKU-110K (Goldman et al., CVPR 2019), non-commercial license (CC BY-NC). Redistributed non-commercially with attribution.
Example images
Boxes are colored by category: near-transparent fill, opaque outline.
![]() | ![]() |
![]() | ![]() |
Conversion notes
Single category 'object'. Source boxes are xyxy and converted to COCO xywh. Undecodable images (known corrupt JPEGs in the archive) are skipped and counted.
Splits
- test: 2936 images
- train: 8219 images
- validation: 588 images
Categories
| id | name |
|---|---|
| 0 | object |
Training with transformers
The boxes are already in the absolute-pixel COCO [x, y, w, h] format that
AutoImageProcessor expects, so fine-tuning a detector needs no bbox
conversion:
import torch
from datasets import load_dataset
from transformers import (AutoImageProcessor, AutoModelForObjectDetection,
Trainer, TrainingArguments)
ds = load_dataset("finedet/sku110k")
obj_feat = ds["train"].features["objects"]
if hasattr(obj_feat, "feature"):
obj_feat = obj_feat.feature
cat_feat = obj_feat["category"]
names = (cat_feat.feature if hasattr(cat_feat, "feature") else cat_feat).names
checkpoint = "facebook/detr-resnet-50"
processor = AutoImageProcessor.from_pretrained(checkpoint)
model = AutoModelForObjectDetection.from_pretrained(
checkpoint,
id2label=dict(enumerate(names)),
label2id={n: i for i, n in enumerate(names)},
ignore_mismatched_sizes=True,
)
def transform(batch):
images = [img.convert("RGB") for img in batch["image"]]
annotations = [
{"image_id": i,
"annotations": [
{"bbox": box, "category_id": cat, "area": box[2] * box[3], "iscrowd": 0}
for box, cat in zip(objs["bbox"], objs["category"])
]}
for i, objs in enumerate(batch["objects"])
]
return processor(images=images, annotations=annotations, return_tensors="pt")
def collate(batch):
return {"pixel_values": torch.stack([x["pixel_values"] for x in batch]),
"labels": [x["labels"] for x in batch]}
trainer = Trainer(
model=model,
args=TrainingArguments(output_dir="out", per_device_train_batch_size=4,
num_train_epochs=10, learning_rate=1e-5,
remove_unused_columns=False),
train_dataset=ds["train"].with_transform(transform),
data_collator=collate,
)
trainer.train()
- Downloads last month
- 66



