Synthetic-to-Real Object Detection using YOLOv11 and Domain Randomization Strategies
Paper β’ 2509.15045 β’ Published
image_id int64 0 499 | image imagewidth (px) 640 640 | width int32 640 640 | height int32 640 640 | objects dict |
|---|---|---|---|---|
0 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
9797,
10150,
7701,
6579
],
"bbox": [
[
232,
401,
101,
97
],
[
107,
382,
58,
175
],
[
274,
386,
51,
151
],
[
198,
148,
51,
... | |
1 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
3366,
13860,
34034
],
"bbox": [
[
164,
260,
51,
66
],
[
445,
416,
70,
198
],
[
106,
296,
154,
221
]
],
"category": [
1,
3,
3
]
} | |
2 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
3417,
27090,
4233,
44298,
41302
],
"bbox": [
[
238,
162,
67,
51
],
[
372,
204,
210,
129
],
[
173,
423,
51,
83
],
[
11,
20... | |
3 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
19000,
17854,
6844
],
"bbox": [
[
423,
197,
190,
100
],
[
290,
420,
158,
113
],
[
311,
460,
116,
59
]
],
"category": [
0,
4,
0
]
} | |
4 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
8520,
22440,
6545
],
"bbox": [
[
160,
377,
120,
71
],
[
184,
124,
165,
136
],
[
136,
4,
85,
77
]
],
"category": [
0,
2,
4
]
} | |
5 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
12780,
4182,
27387,
31323
],
"bbox": [
[
434,
492,
90,
142
],
[
327,
447,
51,
82
],
[
273,
63,
153,
179
],
[
263,
371,
159,
... | |
6 | 640 | 640 | {
"id": [
0,
1
],
"area": [
13992,
22755
],
"bbox": [
[
13,
286,
159,
88
],
[
438,
137,
123,
185
]
],
"category": [
2,
3
]
} | |
7 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
27248,
11040,
11457,
31941,
19928
],
"bbox": [
[
261,
119,
131,
208
],
[
274,
460,
120,
92
],
[
508,
37,
67,
171
],
[
369,
... | |
8 | 640 | 640 | {
"id": [
0
],
"area": [
12410
],
"bbox": [
[
366,
201,
85,
146
]
],
"category": [
2
]
} | |
9 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
11858,
8505,
4160,
21948,
8547
],
"bbox": [
[
115,
36,
121,
98
],
[
34,
362,
63,
135
],
[
540,
177,
64,
65
],
[
175,
513,... | |
10 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
23320,
4845,
8415,
2652,
21216
],
"bbox": [
[
13,
114,
212,
110
],
[
209,
409,
85,
57
],
[
234,
215,
51,
165
],
[
530,
54... | |
11 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
5049,
31948,
15870,
13585,
3024
],
"bbox": [
[
10,
457,
51,
99
],
[
372,
11,
163,
196
],
[
41,
206,
138,
115
],
[
351,
11... | |
12 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
12753,
17415,
23760,
3723,
14260
],
"bbox": [
[
314,
418,
117,
109
],
[
48,
216,
81,
215
],
[
85,
193,
108,
220
],
[
323,
... | |
13 | 640 | 640 | {
"id": [
0,
1
],
"area": [
7138,
8372
],
"bbox": [
[
249,
519,
86,
83
],
[
128,
371,
52,
161
]
],
"category": [
4,
1
]
} | |
14 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
8586,
8525,
11172
],
"bbox": [
[
586,
6,
53,
162
],
[
394,
190,
55,
155
],
[
463,
189,
114,
98
]
],
"category": [
1,
1,
4
]
} | |
15 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
18258,
12980,
6060,
40400,
3213
],
"bbox": [
[
421,
119,
179,
102
],
[
11,
252,
118,
110
],
[
6,
394,
101,
60
],
[
330,
6... | |
16 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
24564,
12052,
12118,
9760
],
"bbox": [
[
310,
255,
178,
138
],
[
431,
8,
131,
92
],
[
102,
199,
83,
146
],
[
467,
104,
61,
... | |
17 | 640 | 640 | {
"id": [
0
],
"area": [
13650
],
"bbox": [
[
347,
182,
75,
182
]
],
"category": [
2
]
} | |
18 | 640 | 640 | {
"id": [
0,
1
],
"area": [
6200,
10780
],
"bbox": [
[
119,
208,
100,
62
],
[
382,
436,
98,
110
]
],
"category": [
0,
3
]
} | |
19 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
13286,
26852,
5146
],
"bbox": [
[
13,
19,
91,
146
],
[
126,
491,
196,
137
],
[
125,
238,
83,
62
]
],
"category": [
3,
0,
0
]
} | |
20 | 640 | 640 | {
"id": [
0
],
"area": [
16470
],
"bbox": [
[
403,
107,
135,
122
]
],
"category": [
4
]
} | |
21 | 640 | 640 | {
"id": [
0
],
"area": [
13524
],
"bbox": [
[
451,
208,
92,
147
]
],
"category": [
3
]
} | |
22 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
38540,
7611,
39775,
24087,
7975
],
"bbox": [
[
213,
327,
205,
188
],
[
85,
202,
59,
129
],
[
215,
417,
185,
215
],
[
169,
... | |
23 | 640 | 640 | {
"id": [
0,
1
],
"area": [
41567,
42230
],
"bbox": [
[
243,
201,
211,
197
],
[
207,
247,
206,
205
]
],
"category": [
4,
3
]
} | |
24 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
43228,
11895,
15438
],
"bbox": [
[
24,
142,
214,
202
],
[
234,
84,
183,
65
],
[
87,
296,
83,
186
]
],
"category": [
4,
3,
3
]
} | |
25 | 640 | 640 | {
"id": [
0,
1
],
"area": [
12416,
7992
],
"bbox": [
[
330,
227,
194,
64
],
[
170,
310,
74,
108
]
],
"category": [
2,
3
]
} | |
26 | 640 | 640 | {
"id": [
0,
1
],
"area": [
11948,
24112
],
"bbox": [
[
147,
158,
103,
116
],
[
433,
452,
137,
176
]
],
"category": [
2,
2
]
} | |
27 | 640 | 640 | {
"id": [
0,
1
],
"area": [
21952,
13516
],
"bbox": [
[
120,
366,
196,
112
],
[
487,
217,
109,
124
]
],
"category": [
0,
2
]
} | |
28 | 640 | 640 | {
"id": [
0,
1
],
"area": [
9246,
3780
],
"bbox": [
[
366,
15,
67,
138
],
[
427,
461,
63,
60
]
],
"category": [
1,
4
]
} | |
29 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
20868,
18656,
8874
],
"bbox": [
[
350,
168,
111,
188
],
[
433,
39,
176,
106
],
[
200,
37,
174,
51
]
],
"category": [
3,
0,
3
]
} | |
30 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
5724,
18879,
15038,
15549
],
"bbox": [
[
43,
61,
53,
108
],
[
171,
222,
87,
217
],
[
433,
184,
146,
103
],
[
343,
250,
73,
... | |
31 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
17730,
8636,
7138
],
"bbox": [
[
424,
336,
197,
90
],
[
36,
386,
127,
68
],
[
127,
177,
86,
83
]
],
"category": [
2,
0,
4
]
} | |
32 | 640 | 640 | {
"id": [
0,
1
],
"area": [
6500,
20808
],
"bbox": [
[
372,
362,
52,
125
],
[
193,
159,
204,
102
]
],
"category": [
2,
0
]
} | |
33 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
27090,
15484,
11039,
11900,
2754
],
"bbox": [
[
398,
204,
215,
126
],
[
62,
198,
98,
158
],
[
165,
160,
133,
83
],
[
37,
... | |
34 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
11304,
39565,
25403,
15120
],
"bbox": [
[
358,
83,
157,
72
],
[
128,
210,
205,
193
],
[
245,
42,
133,
191
],
[
242,
476,
126,
... | |
35 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
10948,
38728,
12410
],
"bbox": [
[
233,
59,
119,
92
],
[
415,
146,
206,
188
],
[
449,
153,
73,
170
]
],
"category": [
4,
3,
1
]
} | |
36 | 640 | 640 | {
"id": [
0,
1
],
"area": [
3672,
7497
],
"bbox": [
[
13,
148,
51,
72
],
[
99,
72,
119,
63
]
],
"category": [
1,
2
]
} | |
37 | 640 | 640 | {
"id": [
0
],
"area": [
21090
],
"bbox": [
[
120,
318,
95,
222
]
],
"category": [
1
]
} | |
38 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
18786,
19380,
13572
],
"bbox": [
[
330,
185,
186,
101
],
[
246,
237,
190,
102
],
[
147,
428,
117,
116
]
],
"category": [
0,
2,
4
]
} | |
39 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
17716,
5355,
9222,
9028,
12012
],
"bbox": [
[
22,
334,
172,
103
],
[
144,
389,
51,
105
],
[
323,
566,
174,
53
],
[
249,
3... | |
40 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
15136,
20736,
17000,
3825,
7316
],
"bbox": [
[
65,
395,
86,
176
],
[
517,
154,
96,
216
],
[
326,
65,
200,
85
],
[
148,
10... | |
41 | 640 | 640 | {
"id": [
0
],
"area": [
11840
],
"bbox": [
[
160,
326,
148,
80
]
],
"category": [
0
]
} | |
42 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
8580,
4947,
18894
],
"bbox": [
[
201,
98,
55,
156
],
[
352,
284,
97,
51
],
[
329,
341,
94,
201
]
],
"category": [
1,
0,
1
]
} | |
43 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
31174,
27632,
3825,
16748,
12168
],
"bbox": [
[
100,
481,
218,
143
],
[
238,
0,
157,
176
],
[
162,
477,
51,
75
],
[
163,
... | |
44 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
11346,
12960,
16005,
24705,
10275
],
"bbox": [
[
423,
442,
62,
183
],
[
25,
294,
60,
216
],
[
353,
133,
165,
97
],
[
31,
... | |
45 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
20293,
3774,
3366
],
"bbox": [
[
56,
108,
91,
223
],
[
361,
409,
51,
74
],
[
418,
4,
66,
51
]
],
"category": [
1,
1,
0
]
} | |
46 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
21798,
8760,
4914,
11529
],
"bbox": [
[
282,
433,
173,
126
],
[
77,
278,
60,
146
],
[
473,
23,
91,
54
],
[
93,
408,
63,
... | |
47 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
10686,
31382,
12084
],
"bbox": [
[
465,
330,
137,
78
],
[
265,
93,
142,
221
],
[
368,
332,
114,
106
]
],
"category": [
3,
2,
3
]
} | |
48 | 640 | 640 | {
"id": [
0
],
"area": [
11040
],
"bbox": [
[
437,
129,
69,
160
]
],
"category": [
1
]
} | |
49 | 640 | 640 | {
"id": [
0,
1
],
"area": [
3876,
9810
],
"bbox": [
[
444,
575,
76,
51
],
[
147,
119,
109,
90
]
],
"category": [
0,
4
]
} | |
50 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
6545,
4131,
10147
],
"bbox": [
[
151,
263,
85,
77
],
[
262,
430,
51,
81
],
[
31,
482,
139,
73
]
],
"category": [
4,
1,
0
]
} | |
51 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
27742,
28730,
17523
],
"bbox": [
[
25,
215,
143,
194
],
[
227,
237,
130,
221
],
[
22,
10,
177,
99
]
],
"category": [
2,
3,
3
]
} | |
52 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
5246,
14013,
15100,
14060
],
"bbox": [
[
544,
364,
86,
61
],
[
327,
196,
81,
173
],
[
327,
358,
151,
100
],
[
442,
27,
95,
... | |
53 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
7119,
3825,
3213,
24500,
33790
],
"bbox": [
[
187,
105,
113,
63
],
[
28,
275,
51,
75
],
[
115,
450,
63,
51
],
[
143,
472,... | |
54 | 640 | 640 | {
"id": [
0,
1
],
"area": [
11040,
40044
],
"bbox": [
[
192,
397,
69,
160
],
[
57,
21,
213,
188
]
],
"category": [
1,
4
]
} | |
55 | 640 | 640 | {
"id": [
0
],
"area": [
10676
],
"bbox": [
[
526,
245,
68,
157
]
],
"category": [
2
]
} | |
56 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
6336,
30728,
15345,
3876
],
"bbox": [
[
505,
523,
72,
88
],
[
386,
413,
167,
184
],
[
28,
23,
93,
165
],
[
322,
518,
76,
... | |
57 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
34884,
13167,
12204,
5170,
8343
],
"bbox": [
[
151,
90,
171,
204
],
[
78,
207,
133,
99
],
[
94,
3,
113,
108
],
[
169,
411... | |
58 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
5544,
48391,
12535
],
"bbox": [
[
309,
299,
99,
56
],
[
170,
71,
223,
217
],
[
144,
508,
109,
115
]
],
"category": [
0,
3,
3
]
} | |
59 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
13202,
4692,
26871,
12028,
13690
],
"bbox": [
[
137,
414,
161,
82
],
[
166,
358,
51,
92
],
[
86,
106,
169,
159
],
[
282,
... | |
60 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
2856,
4641,
4590
],
"bbox": [
[
187,
224,
56,
51
],
[
208,
537,
91,
51
],
[
315,
375,
51,
90
]
],
"category": [
4,
0,
1
]
} | |
61 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
6426,
30160,
4275,
31980,
16744
],
"bbox": [
[
406,
366,
51,
126
],
[
266,
276,
208,
145
],
[
180,
338,
75,
57
],
[
7,
22... | |
62 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
16614,
28860,
6864,
6708,
9112
],
"bbox": [
[
443,
165,
117,
142
],
[
26,
318,
130,
222
],
[
556,
32,
66,
104
],
[
263,
3... | |
63 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
20808,
3233,
10260
],
"bbox": [
[
12,
386,
102,
204
],
[
215,
237,
61,
53
],
[
467,
560,
135,
76
]
],
"category": [
3,
4,
0
]
} | |
64 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
16324,
9300,
18733,
22790,
30804
],
"bbox": [
[
378,
271,
106,
154
],
[
282,
301,
60,
155
],
[
88,
260,
143,
131
],
[
368,
... | |
65 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
21576,
37014,
9280,
4437,
31136
],
"bbox": [
[
316,
516,
186,
116
],
[
367,
361,
186,
199
],
[
471,
74,
116,
80
],
[
181,
... | |
66 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
10506,
15488,
9348,
10502
],
"bbox": [
[
376,
459,
103,
102
],
[
396,
392,
88,
176
],
[
83,
144,
57,
164
],
[
297,
207,
118,
... | |
67 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
8162,
25671,
11067,
31290,
3111
],
"bbox": [
[
266,
243,
106,
77
],
[
256,
49,
129,
199
],
[
457,
185,
119,
93
],
[
428,
... | |
68 | 640 | 640 | {
"id": [
0,
1
],
"area": [
7896,
15580
],
"bbox": [
[
4,
51,
94,
84
],
[
309,
154,
82,
190
]
],
"category": [
4,
2
]
} | |
69 | 640 | 640 | {
"id": [
0
],
"area": [
5763
],
"bbox": [
[
539,
237,
51,
113
]
],
"category": [
1
]
} | |
70 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
19584,
7275,
2703,
18500
],
"bbox": [
[
260,
297,
144,
136
],
[
258,
522,
97,
75
],
[
269,
212,
51,
53
],
[
393,
225,
125,
... | |
71 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
11016,
2703,
23168
],
"bbox": [
[
219,
190,
153,
72
],
[
289,
274,
53,
51
],
[
190,
380,
181,
128
]
],
"category": [
2,
0,
2
]
} | |
72 | 640 | 640 | {
"id": [
0,
1
],
"area": [
25944,
6882
],
"bbox": [
[
39,
142,
188,
138
],
[
270,
222,
111,
62
]
],
"category": [
0,
0
]
} | |
73 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
4455,
31293,
9374,
14520
],
"bbox": [
[
409,
291,
81,
55
],
[
17,
261,
183,
171
],
[
383,
451,
109,
86
],
[
511,
305,
66,
... | |
74 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
4488,
2860,
5751
],
"bbox": [
[
353,
239,
51,
88
],
[
382,
514,
52,
55
],
[
237,
277,
81,
71
]
],
"category": [
1,
2,
4
]
} | |
75 | 640 | 640 | {
"id": [
0,
1
],
"area": [
23760,
14089
],
"bbox": [
[
252,
167,
180,
132
],
[
257,
258,
73,
193
]
],
"category": [
4,
3
]
} | |
76 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
11534,
22052,
21836
],
"bbox": [
[
82,
134,
79,
146
],
[
427,
355,
149,
148
],
[
112,
426,
212,
103
]
],
"category": [
2,
4,
2
]
} | |
77 | 640 | 640 | {
"id": [
0,
1
],
"area": [
2805,
39919
],
"bbox": [
[
266,
66,
55,
51
],
[
33,
241,
209,
191
]
],
"category": [
0,
2
]
} | |
78 | 640 | 640 | {
"id": [
0,
1
],
"area": [
37492,
45998
],
"bbox": [
[
298,
148,
206,
182
],
[
271,
329,
218,
211
]
],
"category": [
4,
4
]
} | |
79 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
24024,
13932,
15399,
3417,
4819
],
"bbox": [
[
306,
289,
156,
154
],
[
204,
411,
86,
162
],
[
49,
142,
87,
177
],
[
150,
... | |
80 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
25926,
12960,
11356,
3328
],
"bbox": [
[
58,
436,
174,
149
],
[
233,
221,
96,
135
],
[
525,
65,
68,
167
],
[
461,
110,
64,
... | |
81 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
11256,
25883,
4884
],
"bbox": [
[
145,
284,
201,
56
],
[
212,
169,
181,
143
],
[
10,
85,
66,
74
]
],
"category": [
2,
3,
3
]
} | |
82 | 640 | 640 | {
"id": [
0,
1
],
"area": [
9282,
14883
],
"bbox": [
[
140,
561,
119,
78
],
[
507,
305,
123,
121
]
],
"category": [
2,
2
]
} | |
83 | 640 | 640 | {
"id": [
0,
1
],
"area": [
4050,
19293
],
"bbox": [
[
483,
120,
75,
54
],
[
92,
367,
177,
109
]
],
"category": [
4,
0
]
} | |
84 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
33635,
28248,
28196
],
"bbox": [
[
235,
469,
217,
155
],
[
323,
28,
132,
214
],
[
221,
1,
212,
133
]
],
"category": [
4,
2,
0
]
} | |
85 | 640 | 640 | {
"id": [
0,
1,
2,
3,
4
],
"area": [
30806,
2703,
3009,
5865,
11628
],
"bbox": [
[
229,
262,
146,
211
],
[
378,
187,
53,
51
],
[
15,
575,
59,
51
],
[
582,
431... | |
86 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
5544,
11092,
14986
],
"bbox": [
[
91,
271,
88,
63
],
[
74,
99,
118,
94
],
[
275,
127,
127,
118
]
],
"category": [
0,
4,
4
]
} | |
87 | 640 | 640 | {
"id": [
0
],
"area": [
8880
],
"bbox": [
[
158,
2,
111,
80
]
],
"category": [
0
]
} | |
88 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
18144,
3162,
2907
],
"bbox": [
[
452,
238,
168,
108
],
[
26,
485,
51,
62
],
[
79,
49,
57,
51
]
],
"category": [
0,
1,
4
]
} | |
89 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
32064,
8008,
6324
],
"bbox": [
[
379,
399,
192,
167
],
[
532,
223,
91,
88
],
[
101,
348,
51,
124
]
],
"category": [
4,
4,
1
]
} | |
90 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
22620,
5162,
4131
],
"bbox": [
[
4,
260,
174,
130
],
[
121,
423,
89,
58
],
[
27,
517,
81,
51
]
],
"category": [
4,
0,
0
]
} | |
91 | 640 | 640 | {
"id": [
0,
1,
2
],
"area": [
22156,
4720,
10906
],
"bbox": [
[
440,
49,
191,
116
],
[
181,
76,
80,
59
],
[
268,
29,
133,
82
]
],
"category": [
0,
4,
2
]
} | |
92 | 640 | 640 | {
"id": [
0
],
"area": [
14442
],
"bbox": [
[
415,
304,
83,
174
]
],
"category": [
3
]
} | |
93 | 640 | 640 | {
"id": [
0,
1
],
"area": [
12084,
11782
],
"bbox": [
[
296,
271,
114,
106
],
[
79,
258,
137,
86
]
],
"category": [
4,
0
]
} | |
94 | 640 | 640 | {
"id": [
0
],
"area": [
28196
],
"bbox": [
[
237,
164,
212,
133
]
],
"category": [
0
]
} | |
95 | 640 | 640 | {
"id": [
0,
1,
2,
3
],
"area": [
26586,
4550,
5733,
5814
],
"bbox": [
[
415,
385,
211,
126
],
[
474,
73,
70,
65
],
[
302,
516,
91,
63
],
[
184,
335,
51,
... | |
96 | 640 | 640 | {
"id": [
0,
1
],
"area": [
3162,
20241
],
"bbox": [
[
377,
406,
51,
62
],
[
189,
477,
173,
117
]
],
"category": [
1,
0
]
} | |
97 | 640 | 640 | {
"id": [
0
],
"area": [
11475
],
"bbox": [
[
58,
208,
135,
85
]
],
"category": [
2
]
} | |
98 | 640 | 640 | {
"id": [
0,
1
],
"area": [
13020,
18270
],
"bbox": [
[
422,
234,
155,
84
],
[
118,
273,
210,
87
]
],
"category": [
0,
2
]
} | |
99 | 640 | 640 | {
"id": [
0,
1
],
"area": [
6955,
8960
],
"bbox": [
[
417,
489,
107,
65
],
[
308,
486,
112,
80
]
],
"category": [
0,
4
]
} |
A synthetic object detection dataset with 5 classes, ready for training YOLOv8/v11 models.
| Train | Validation | Test | |
|---|---|---|---|
| Images | 500 | 100 | 50 |
| Hard negatives | 75 (15%) | 15 (15%) | 7 (15%) |
| Image size | 640Γ640 | 640Γ640 | 640Γ640 |
| ID | Class | Visual |
|---|---|---|
| 0 | car |
Red car-shaped rectangles with windows & wheels |
| 1 | person |
Blue stick figures with body parts |
| 2 | dog |
Brown dog shapes with legs & tail |
| 3 | cat |
Orange cat shapes with ears & eyes |
| 4 | bicycle |
Green bicycle with wheels & frame |
from datasets import load_dataset
ds = load_dataset("dharshanzeb/yolo-detection-dataset")
print(ds["train"][0])
# {'image_id': 0, 'image': <PIL>, 'width': 640, 'height': 640,
# 'objects': {'id': [...], 'area': [...], 'bbox': [[x,y,w,h], ...], 'category': [...]}}
Download from yolo_format/:
train.zip β 500 images + labelsval.zip β 100 images + labelstest.zip β 50 images + labelsdata.yaml β YOLO config fileAnnotation format (YOLO txt β one .txt per image):
<class_id> <x_center> <y_center> <width> <height>
# All values normalized 0-1
0 0.492188 0.403125 0.212500 0.315625
1 0.720312 0.150000 0.080000 0.120000
# Install
!pip install ultralytics
from ultralytics import YOLO
# Download and prepare dataset
from huggingface_hub import hf_hub_download
import zipfile, os
for split in ["train", "val", "test"]:
zip_path = hf_hub_download(
repo_id="dharshanzeb/yolo-detection-dataset",
filename=f"yolo_format/{split}.zip",
repo_type="dataset"
)
with zipfile.ZipFile(zip_path) as z:
z.extractall("./dataset/")
# Download data.yaml
yaml_path = hf_hub_download(
repo_id="dharshanzeb/yolo-detection-dataset",
filename="yolo_format/data.yaml",
repo_type="dataset"
)
# Update path in data.yaml to point to extracted folder
import yaml
with open(yaml_path) as f:
cfg = yaml.safe_load(f)
cfg["path"] = os.path.abspath("./dataset")
with open("data.yaml", "w") as f:
yaml.dump(cfg, f)
# Train!
model = YOLO("yolov8n.pt") # nano model for fast training
results = model.train(
data="data.yaml",
epochs=50,
imgsz=640,
batch=16,
device=0, # GPU
pretrained=True,
mosaic=1.0,
mixup=0.1,
project="runs/train",
name="yolo_custom",
)
# Evaluate
metrics = model.val()
print(f"mAP50: {metrics.box.map50:.3f}")
print(f"mAP50-95: {metrics.box.map:.3f}")
# Predict
results = model.predict("test_image.jpg", conf=0.25)
results[0].show()
from datasets import load_dataset
from pathlib import Path
ds = load_dataset("dharshanzeb/yolo-detection-dataset")
for split_name, split_key in [("train","train"), ("val","validation"), ("test","test")]:
img_dir = Path(f"dataset/images/{split_name}")
lbl_dir = Path(f"dataset/labels/{split_name}")
img_dir.mkdir(parents=True, exist_ok=True)
lbl_dir.mkdir(parents=True, exist_ok=True)
for idx, row in enumerate(ds[split_key]):
stem = f"img_{idx:05d}"
row["image"].save(img_dir / f"{stem}.jpg")
lines = []
W, H = row["width"], row["height"]
for bbox, cat in zip(row["objects"]["bbox"], row["objects"]["category"]):
x, y, w, h = bbox
cx, cy = (x + w/2) / W, (y + h/2) / H
lines.append(f"{cat} {cx:.6f} {cy:.6f} {w/W:.6f} {h/H:.6f}")
with open(lbl_dir / f"{stem}.txt", "w") as f:
f.write("\n".join(lines))
[x_min, y_min, width, height] in the HF dataset; YOLO normalized format in the zip files.Apache 2.0