minato-ryan commited on
Commit
4e0bf6b
·
verified ·
1 Parent(s): a1a6151

dataset card

Browse files
Files changed (1) hide show
  1. README.md +641 -0
README.md ADDED
@@ -0,0 +1,641 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - object-detection
5
+ tags:
6
+ - finedet
7
+ ---
8
+
9
+ # FinePACO - PACO-LVIS object and part boxes in the unified detection format
10
+
11
+ Source: paco_lvis_v1.zip from dl.fbaipublicfiles.com + COCO 2017 image zips. PACO-EGO4D is not included: the Ego4D license grants no sublicense and bars the data from appearing in other datasets, so its frames cannot be re-uploaded.
12
+
13
+ Converted by the finedet project into a unified, AutoTrain-compatible layout:
14
+ `image` / `width` / `height` / `objects{bbox, category}` with COCO-format
15
+ `[x, y, w, h]` boxes in absolute pixels. Boxes are clipped to the image and
16
+ empty boxes dropped; category ids are densified per the category tables
17
+ below.
18
+
19
+ ## Box format
20
+
21
+ `objects.bbox` follows the COCO convention: `[x, y, w, h]` in absolute pixels,
22
+ origin at the image's top-left corner.
23
+
24
+ <img src="assets/bbox_format.png" width="480"/>
25
+
26
+ ## License
27
+
28
+ Annotations: released in the facebookresearch/paco repository, whose LICENSE is MIT (Meta Platforms); no separate data license is stated. Images are COCO 2017 images, subject to the Flickr Terms of Use. https://github.com/facebookresearch/paco
29
+
30
+ ## Example images
31
+
32
+ Boxes are colored by category: near-transparent fill, opaque outline.
33
+
34
+ <table>
35
+ <tr><td><img src="assets/sample_0.jpg" width="360"/></td><td><img src="assets/sample_1.jpg" width="360"/></td></tr>
36
+ <tr><td><img src="assets/sample_2.jpg" width="360"/></td><td><img src="assets/sample_3.jpg" width="360"/></td></tr>
37
+ </table>
38
+
39
+ ## Conversion notes
40
+
41
+ The category vocabulary is the joint PACO-LVIS set: 75 object + 456 object-part categories (531 total), source-id order densified to 0-530. Part boxes and object boxes are flattened into one objects list. Attribute annotations and segmentation masks are not carried over.
42
+
43
+ ## Splits
44
+
45
+ - test: 9443 images
46
+ - train: 45790 images
47
+ - validation: 2410 images
48
+
49
+ ## Categories
50
+
51
+ | id | original id | name |
52
+ |---|---|---|
53
+ | 0 | 23 | trash_can |
54
+ | 1 | 35 | handbag |
55
+ | 2 | 41 | ball |
56
+ | 3 | 61 | basket |
57
+ | 4 | 88 | belt |
58
+ | 5 | 90 | bench |
59
+ | 6 | 94 | bicycle |
60
+ | 7 | 112 | blender |
61
+ | 8 | 127 | book |
62
+ | 9 | 133 | bottle |
63
+ | 10 | 139 | bowl |
64
+ | 11 | 143 | box |
65
+ | 12 | 156 | broom |
66
+ | 13 | 160 | bucket |
67
+ | 14 | 184 | calculator |
68
+ | 15 | 192 | can |
69
+ | 16 | 207 | car_(automobile) |
70
+ | 17 | 220 | carton |
71
+ | 18 | 230 | cellular_telephone |
72
+ | 19 | 232 | chair |
73
+ | 20 | 271 | clock |
74
+ | 21 | 324 | crate |
75
+ | 22 | 344 | cup |
76
+ | 23 | 378 | dog |
77
+ | 24 | 396 | drill |
78
+ | 25 | 399 | drum_(musical_instrument) |
79
+ | 26 | 409 | earphone |
80
+ | 27 | 429 | fan |
81
+ | 28 | 498 | glass_(drink_container) |
82
+ | 29 | 521 | guitar |
83
+ | 30 | 530 | hammer |
84
+ | 31 | 544 | hat |
85
+ | 32 | 556 | helmet |
86
+ | 33 | 591 | jar |
87
+ | 34 | 604 | kettle |
88
+ | 35 | 615 | knife |
89
+ | 36 | 621 | ladder |
90
+ | 37 | 626 | lamp |
91
+ | 38 | 631 | laptop_computer |
92
+ | 39 | 687 | microwave_oven |
93
+ | 40 | 694 | mirror |
94
+ | 41 | 705 | mouse_(computer_equipment) |
95
+ | 42 | 708 | mug |
96
+ | 43 | 713 | napkin |
97
+ | 44 | 719 | newspaper |
98
+ | 45 | 751 | pan_(for_cooking) |
99
+ | 46 | 781 | pen |
100
+ | 47 | 782 | pencil |
101
+ | 48 | 804 | pillow |
102
+ | 49 | 811 | pipe |
103
+ | 50 | 818 | plate |
104
+ | 51 | 821 | pliers |
105
+ | 52 | 881 | remote_control |
106
+ | 53 | 898 | plastic_bag |
107
+ | 54 | 921 | scarf |
108
+ | 55 | 923 | scissors |
109
+ | 56 | 926 | screwdriver |
110
+ | 57 | 948 | shoe |
111
+ | 58 | 973 | slipper_(footwear) |
112
+ | 59 | 979 | soap |
113
+ | 60 | 999 | sponge |
114
+ | 61 | 1000 | spoon |
115
+ | 62 | 1018 | stool |
116
+ | 63 | 1042 | sweater |
117
+ | 64 | 1050 | table |
118
+ | 65 | 1061 | tape_(sticky_cloth_or_paper) |
119
+ | 66 | 1072 | telephone |
120
+ | 67 | 1077 | television_set |
121
+ | 68 | 1093 | tissue_paper |
122
+ | 69 | 1108 | towel |
123
+ | 70 | 1117 | tray |
124
+ | 71 | 1139 | vase |
125
+ | 72 | 1156 | wallet |
126
+ | 73 | 1161 | watch |
127
+ | 74 | 1196 | wrench |
128
+ | 75 | 2000 | car_(automobile):antenna |
129
+ | 76 | 2001 | chair:apron |
130
+ | 77 | 2002 | table:apron |
131
+ | 78 | 2003 | chair:arm |
132
+ | 79 | 2004 | bench:arm |
133
+ | 80 | 2005 | chair:back |
134
+ | 81 | 2006 | guitar:back |
135
+ | 82 | 2007 | remote_control:back |
136
+ | 83 | 2008 | laptop_computer:back |
137
+ | 84 | 2009 | bench:back |
138
+ | 85 | 2010 | telephone:back_cover |
139
+ | 86 | 2011 | cellular_telephone:back_cover |
140
+ | 87 | 2012 | shoe:backstay |
141
+ | 88 | 2013 | belt:bar |
142
+ | 89 | 2014 | pen:barrel |
143
+ | 90 | 2015 | bottle:base |
144
+ | 91 | 2016 | bowl:base |
145
+ | 92 | 2017 | clock:base |
146
+ | 93 | 2018 | drum_(musical_instrument):base |
147
+ | 94 | 2019 | bucket:base |
148
+ | 95 | 2020 | handbag:base |
149
+ | 96 | 2021 | fan:base |
150
+ | 97 | 2022 | plate:base |
151
+ | 98 | 2023 | television_set:base |
152
+ | 99 | 2024 | basket:base |
153
+ | 100 | 2025 | can:base |
154
+ | 101 | 2026 | mug:base |
155
+ | 102 | 2027 | jar:base |
156
+ | 103 | 2028 | soap:base |
157
+ | 104 | 2029 | cup:base |
158
+ | 105 | 2030 | kettle:base |
159
+ | 106 | 2031 | tray:base |
160
+ | 107 | 2032 | chair:base |
161
+ | 108 | 2033 | pan_(for_cooking):base |
162
+ | 109 | 2034 | blender:base |
163
+ | 110 | 2035 | lamp:base |
164
+ | 111 | 2036 | glass_(drink_container):base |
165
+ | 112 | 2037 | laptop_computer:base_panel |
166
+ | 113 | 2038 | bicycle:basket |
167
+ | 114 | 2039 | telephone:bezel |
168
+ | 115 | 2040 | cellular_telephone:bezel |
169
+ | 116 | 2041 | knife:blade |
170
+ | 117 | 2042 | fan:blade |
171
+ | 118 | 2043 | blender:blade |
172
+ | 119 | 2044 | pliers:blade |
173
+ | 120 | 2045 | scissors:blade |
174
+ | 121 | 2046 | plastic_bag:body |
175
+ | 122 | 2047 | bottle:body |
176
+ | 123 | 2048 | guitar:body |
177
+ | 124 | 2049 | bowl:body |
178
+ | 125 | 2050 | drill:body |
179
+ | 126 | 2051 | pencil:body |
180
+ | 127 | 2052 | drum_(musical_instrument):body |
181
+ | 128 | 2053 | sweater:body |
182
+ | 129 | 2054 | trash_can:body |
183
+ | 130 | 2055 | scarf:body |
184
+ | 131 | 2056 | bucket:body |
185
+ | 132 | 2057 | handbag:body |
186
+ | 133 | 2058 | plate:body |
187
+ | 134 | 2059 | calculator:body |
188
+ | 135 | 2060 | can:body |
189
+ | 136 | 2061 | mouse_(computer_equipment):body |
190
+ | 137 | 2062 | mug:body |
191
+ | 138 | 2063 | jar:body |
192
+ | 139 | 2064 | soap:body |
193
+ | 140 | 2065 | towel:body |
194
+ | 141 | 2066 | kettle:body |
195
+ | 142 | 2067 | glass_(drink_container):body |
196
+ | 143 | 2068 | vase:body |
197
+ | 144 | 2069 | dog:body |
198
+ | 145 | 2070 | towel:border |
199
+ | 146 | 2071 | can:bottom |
200
+ | 147 | 2072 | bucket:bottom |
201
+ | 148 | 2073 | handbag:bottom |
202
+ | 149 | 2074 | mug:bottom |
203
+ | 150 | 2075 | bottle:bottom |
204
+ | 151 | 2076 | crate:bottom |
205
+ | 152 | 2077 | bowl:bottom |
206
+ | 153 | 2078 | jar:bottom |
207
+ | 154 | 2079 | pan_(for_cooking):bottom |
208
+ | 155 | 2080 | box:bottom |
209
+ | 156 | 2081 | plate:bottom |
210
+ | 157 | 2082 | soap:bottom |
211
+ | 158 | 2083 | tray:bottom |
212
+ | 159 | 2084 | glass_(drink_container):bottom |
213
+ | 160 | 2085 | television_set:bottom |
214
+ | 161 | 2086 | trash_can:bottom |
215
+ | 162 | 2087 | carton:bottom |
216
+ | 163 | 2088 | basket:bottom |
217
+ | 164 | 2089 | spoon:bowl |
218
+ | 165 | 2090 | fan:bracket |
219
+ | 166 | 2091 | guitar:bridge |
220
+ | 167 | 2092 | broom:brush |
221
+ | 168 | 2093 | broom:brush_cap |
222
+ | 169 | 2094 | belt:buckle |
223
+ | 170 | 2095 | watch:buckle |
224
+ | 171 | 2096 | lamp:bulb |
225
+ | 172 | 2097 | car_(automobile):bumper |
226
+ | 173 | 2098 | telephone:button |
227
+ | 174 | 2099 | remote_control:button |
228
+ | 175 | 2100 | television_set:button |
229
+ | 176 | 2101 | cellular_telephone:button |
230
+ | 177 | 2102 | clock:cable |
231
+ | 178 | 2103 | blender:cable |
232
+ | 179 | 2104 | lamp:cable |
233
+ | 180 | 2105 | laptop_computer:cable |
234
+ | 181 | 2106 | earphone:cable |
235
+ | 182 | 2107 | kettle:cable |
236
+ | 183 | 2108 | laptop_computer:camera |
237
+ | 184 | 2109 | fan:canopy |
238
+ | 185 | 2110 | pen:cap |
239
+ | 186 | 2111 | soap:cap |
240
+ | 187 | 2112 | carton:cap |
241
+ | 188 | 2113 | bottle:cap |
242
+ | 189 | 2114 | soap:capsule |
243
+ | 190 | 2115 | bottle:capsule |
244
+ | 191 | 2116 | watch:case |
245
+ | 192 | 2117 | clock:case |
246
+ | 193 | 2118 | pen:clip |
247
+ | 194 | 2119 | soap:closure |
248
+ | 195 | 2120 | bottle:closure |
249
+ | 196 | 2121 | pipe:colied_tube |
250
+ | 197 | 2122 | microwave_oven:control_panel |
251
+ | 198 | 2123 | bucket:cover |
252
+ | 199 | 2124 | jar:cover |
253
+ | 200 | 2125 | blender:cover |
254
+ | 201 | 2126 | drum_(musical_instrument):cover |
255
+ | 202 | 2127 | basket:cover |
256
+ | 203 | 2128 | book:cover |
257
+ | 204 | 2129 | sweater:cuff |
258
+ | 205 | 2130 | blender:cup |
259
+ | 206 | 2131 | clock:decoration |
260
+ | 207 | 2132 | watch:dial |
261
+ | 208 | 2133 | microwave_oven:dial |
262
+ | 209 | 2134 | microwave_oven:door_handle |
263
+ | 210 | 2135 | bicycle:down_tube |
264
+ | 211 | 2136 | table:drawer |
265
+ | 212 | 2137 | mug:drawing |
266
+ | 213 | 2138 | dog:ear |
267
+ | 214 | 2139 | earphone:ear_pads |
268
+ | 215 | 2140 | pillow:embroidery |
269
+ | 216 | 2141 | belt:end_tip |
270
+ | 217 | 2142 | pencil:eraser |
271
+ | 218 | 2143 | dog:eye |
272
+ | 219 | 2144 | shoe:eyelet |
273
+ | 220 | 2145 | hammer:face |
274
+ | 221 | 2146 | helmet:face_shield |
275
+ | 222 | 2147 | fan:fan_box |
276
+ | 223 | 2148 | car_(automobile):fender |
277
+ | 224 | 2149 | pencil:ferrule |
278
+ | 225 | 2150 | scissors:finger_hole |
279
+ | 226 | 2151 | guitar:fingerboard |
280
+ | 227 | 2152 | lamp:finial |
281
+ | 228 | 2153 | clock:finial |
282
+ | 229 | 2154 | wallet:flap |
283
+ | 230 | 2155 | blender:food_cup |
284
+ | 231 | 2156 | dog:foot |
285
+ | 232 | 2157 | vase:foot |
286
+ | 233 | 2158 | ladder:foot |
287
+ | 234 | 2159 | stool:footrest |
288
+ | 235 | 2160 | bicycle:fork |
289
+ | 236 | 2161 | belt:frame |
290
+ | 237 | 2162 | mirror:frame |
291
+ | 238 | 2163 | scarf:fringes |
292
+ | 239 | 2164 | bicycle:gear |
293
+ | 240 | 2165 | car_(automobile):grille |
294
+ | 241 | 2166 | hammer:grip |
295
+ | 242 | 2167 | pen:grip |
296
+ | 243 | 2168 | watch:hand |
297
+ | 244 | 2169 | clock:hand |
298
+ | 245 | 2170 | plastic_bag:handle |
299
+ | 246 | 2171 | bottle:handle |
300
+ | 247 | 2172 | drill:handle |
301
+ | 248 | 2173 | hammer:handle |
302
+ | 249 | 2174 | scissors:handle |
303
+ | 250 | 2175 | broom:handle |
304
+ | 251 | 2176 | screwdriver:handle |
305
+ | 252 | 2177 | bucket:handle |
306
+ | 253 | 2178 | handbag:handle |
307
+ | 254 | 2179 | wrench:handle |
308
+ | 255 | 2180 | pliers:handle |
309
+ | 256 | 2181 | basket:handle |
310
+ | 257 | 2182 | mug:handle |
311
+ | 258 | 2183 | crate:handle |
312
+ | 259 | 2184 | jar:handle |
313
+ | 260 | 2185 | car_(automobile):handle |
314
+ | 261 | 2186 | soap:handle |
315
+ | 262 | 2187 | cup:handle |
316
+ | 263 | 2188 | kettle:handle |
317
+ | 264 | 2189 | knife:handle |
318
+ | 265 | 2190 | spoon:handle |
319
+ | 266 | 2191 | pan_(for_cooking):handle |
320
+ | 267 | 2192 | blender:handle |
321
+ | 268 | 2193 | vase:handle |
322
+ | 269 | 2194 | bicycle:handlebar |
323
+ | 270 | 2195 | dog:head |
324
+ | 271 | 2196 | hammer:head |
325
+ | 272 | 2197 | wrench:head |
326
+ | 273 | 2198 | drum_(musical_instrument):head |
327
+ | 274 | 2199 | bicycle:head_tube |
328
+ | 275 | 2200 | earphone:headband |
329
+ | 276 | 2201 | car_(automobile):headlight |
330
+ | 277 | 2202 | guitar:headstock |
331
+ | 278 | 2203 | shoe:heel |
332
+ | 279 | 2204 | bottle:heel |
333
+ | 280 | 2205 | plastic_bag:hem |
334
+ | 281 | 2206 | sweater:hem |
335
+ | 282 | 2207 | towel:hem |
336
+ | 283 | 2208 | belt:hole |
337
+ | 284 | 2209 | guitar:hole |
338
+ | 285 | 2210 | trash_can:hole |
339
+ | 286 | 2211 | car_(automobile):hood |
340
+ | 287 | 2212 | earphone:housing |
341
+ | 288 | 2213 | can:inner_body |
342
+ | 289 | 2214 | bucket:inner_body |
343
+ | 290 | 2215 | plastic_bag:inner_body |
344
+ | 291 | 2216 | handbag:inner_body |
345
+ | 292 | 2217 | mug:inner_body |
346
+ | 293 | 2218 | bottle:inner_body |
347
+ | 294 | 2219 | wallet:inner_body |
348
+ | 295 | 2220 | bowl:inner_body |
349
+ | 296 | 2221 | jar:inner_body |
350
+ | 297 | 2222 | blender:inner_body |
351
+ | 298 | 2223 | drum_(musical_instrument):inner_body |
352
+ | 299 | 2224 | glass_(drink_container):inner_body |
353
+ | 300 | 2225 | trash_can:inner_body |
354
+ | 301 | 2226 | cup:inner_body |
355
+ | 302 | 2227 | table:inner_body |
356
+ | 303 | 2228 | kettle:inner_body |
357
+ | 304 | 2229 | hat:inner_side |
358
+ | 305 | 2230 | crate:inner_side |
359
+ | 306 | 2231 | helmet:inner_side |
360
+ | 307 | 2232 | box:inner_side |
361
+ | 308 | 2233 | microwave_oven:inner_side |
362
+ | 309 | 2234 | pan_(for_cooking):inner_side |
363
+ | 310 | 2235 | basket:inner_side |
364
+ | 311 | 2236 | carton:inner_side |
365
+ | 312 | 2237 | tray:inner_side |
366
+ | 313 | 2238 | plate:inner_wall |
367
+ | 314 | 2239 | tray:inner_wall |
368
+ | 315 | 2240 | shoe:insole |
369
+ | 316 | 2241 | slipper_(footwear):insole |
370
+ | 317 | 2242 | pliers:jaw |
371
+ | 318 | 2243 | pliers:joint |
372
+ | 319 | 2244 | calculator:key |
373
+ | 320 | 2245 | guitar:key |
374
+ | 321 | 2246 | laptop_computer:keyboard |
375
+ | 322 | 2247 | soap:label |
376
+ | 323 | 2248 | bottle:label |
377
+ | 324 | 2249 | trash_can:label |
378
+ | 325 | 2250 | shoe:lace |
379
+ | 326 | 2251 | pencil:lead |
380
+ | 327 | 2252 | mouse_(computer_equipment):left_button |
381
+ | 328 | 2253 | table:leg |
382
+ | 329 | 2254 | bench:leg |
383
+ | 330 | 2255 | chair:leg |
384
+ | 331 | 2256 | dog:leg |
385
+ | 332 | 2257 | stool:leg |
386
+ | 333 | 2258 | can:lid |
387
+ | 334 | 2259 | crate:lid |
388
+ | 335 | 2260 | box:lid |
389
+ | 336 | 2261 | jar:lid |
390
+ | 337 | 2262 | pan_(for_cooking):lid |
391
+ | 338 | 2263 | carton:lid |
392
+ | 339 | 2264 | trash_can:lid |
393
+ | 340 | 2265 | kettle:lid |
394
+ | 341 | 2266 | fan:light |
395
+ | 342 | 2267 | shoe:lining |
396
+ | 343 | 2268 | slipper_(footwear):lining |
397
+ | 344 | 2269 | hat:logo |
398
+ | 345 | 2270 | mouse_(computer_equipment):logo |
399
+ | 346 | 2271 | helmet:logo |
400
+ | 347 | 2272 | fan:logo |
401
+ | 348 | 2273 | car_(automobile):logo |
402
+ | 349 | 2274 | remote_control:logo |
403
+ | 350 | 2275 | laptop_computer:logo |
404
+ | 351 | 2276 | belt:loop |
405
+ | 352 | 2277 | bucket:loop |
406
+ | 353 | 2278 | drum_(musical_instrument):loop |
407
+ | 354 | 2279 | broom:lower_bristles |
408
+ | 355 | 2280 | watch:lug |
409
+ | 356 | 2281 | drum_(musical_instrument):lug |
410
+ | 357 | 2282 | car_(automobile):mirror |
411
+ | 358 | 2283 | fan:motor |
412
+ | 359 | 2284 | vase:mouth |
413
+ | 360 | 2285 | bottle:neck |
414
+ | 361 | 2286 | spoon:neck |
415
+ | 362 | 2287 | vase:neck |
416
+ | 363 | 2288 | soap:neck |
417
+ | 364 | 2289 | dog:neck |
418
+ | 365 | 2290 | sweater:neckband |
419
+ | 366 | 2291 | dog:nose |
420
+ | 367 | 2292 | pipe:nozzle |
421
+ | 368 | 2293 | pipe:nozzle_stem |
422
+ | 369 | 2294 | tray:outer_side |
423
+ | 370 | 2295 | shoe:outsole |
424
+ | 371 | 2296 | slipper_(footwear):outsole |
425
+ | 372 | 2297 | book:page |
426
+ | 373 | 2298 | bicycle:pedal |
427
+ | 374 | 2299 | trash_can:pedal |
428
+ | 375 | 2300 | fan:pedestal_column |
429
+ | 376 | 2301 | clock:pediment |
430
+ | 377 | 2302 | guitar:pickguard |
431
+ | 378 | 2303 | lamp:pipe |
432
+ | 379 | 2304 | hat:pom_pom |
433
+ | 380 | 2305 | belt:prong |
434
+ | 381 | 2306 | can:pull_tab |
435
+ | 382 | 2307 | soap:punt |
436
+ | 383 | 2308 | bottle:punt |
437
+ | 384 | 2309 | soap:push_pull_cap |
438
+ | 385 | 2310 | shoe:quarter |
439
+ | 386 | 2311 | chair:rail |
440
+ | 387 | 2312 | ladder:rail |
441
+ | 388 | 2313 | mouse_(computer_equipment):right_button |
442
+ | 389 | 2314 | can:rim |
443
+ | 390 | 2315 | bucket:rim |
444
+ | 391 | 2316 | hat:rim |
445
+ | 392 | 2317 | handbag:rim |
446
+ | 393 | 2318 | mug:rim |
447
+ | 394 | 2319 | bowl:rim |
448
+ | 395 | 2320 | helmet:rim |
449
+ | 396 | 2321 | jar:rim |
450
+ | 397 | 2322 | pan_(for_cooking):rim |
451
+ | 398 | 2323 | car_(automobile):rim |
452
+ | 399 | 2324 | plate:rim |
453
+ | 400 | 2325 | glass_(drink_container):rim |
454
+ | 401 | 2326 | tray:rim |
455
+ | 402 | 2327 | drum_(musical_instrument):rim |
456
+ | 403 | 2328 | trash_can:rim |
457
+ | 404 | 2329 | cup:rim |
458
+ | 405 | 2330 | table:rim |
459
+ | 406 | 2331 | basket:rim |
460
+ | 407 | 2332 | soap:ring |
461
+ | 408 | 2333 | broom:ring |
462
+ | 409 | 2334 | bottle:ring |
463
+ | 410 | 2335 | fan:rod |
464
+ | 411 | 2336 | tissue_paper:roll |
465
+ | 412 | 2337 | tape_(sticky_cloth_or_paper):roll |
466
+ | 413 | 2338 | car_(automobile):roof |
467
+ | 414 | 2339 | sponge:rough_surface |
468
+ | 415 | 2340 | car_(automobile):runningboard |
469
+ | 416 | 2341 | bicycle:saddle |
470
+ | 417 | 2342 | telephone:screen |
471
+ | 418 | 2343 | cellular_telephone:screen |
472
+ | 419 | 2344 | laptop_computer:screen |
473
+ | 420 | 2345 | scissors:screw |
474
+ | 421 | 2346 | mouse_(computer_equipment):scroll_wheel |
475
+ | 422 | 2347 | blender:seal_ring |
476
+ | 423 | 2348 | chair:seat |
477
+ | 424 | 2349 | bench:seat |
478
+ | 425 | 2350 | stool:seat |
479
+ | 426 | 2351 | car_(automobile):seat |
480
+ | 427 | 2352 | bicycle:seat_stay |
481
+ | 428 | 2353 | bicycle:seat_tube |
482
+ | 429 | 2354 | lamp:shade |
483
+ | 430 | 2355 | lamp:shade_cap |
484
+ | 431 | 2356 | lamp:shade_inner_side |
485
+ | 432 | 2357 | broom:shaft |
486
+ | 433 | 2358 | screwdriver:shank |
487
+ | 434 | 2359 | table:shelf |
488
+ | 435 | 2360 | sweater:shoulder |
489
+ | 436 | 2361 | soap:shoulder |
490
+ | 437 | 2362 | bottle:shoulder |
491
+ | 438 | 2363 | crate:side |
492
+ | 439 | 2364 | guitar:side |
493
+ | 440 | 2365 | box:side |
494
+ | 441 | 2366 | microwave_oven:side |
495
+ | 442 | 2367 | pan_(for_cooking):side |
496
+ | 443 | 2368 | television_set:side |
497
+ | 444 | 2369 | carton:side |
498
+ | 445 | 2370 | basket:side |
499
+ | 446 | 2371 | mouse_(computer_equipment):side_button |
500
+ | 447 | 2372 | car_(automobile):sign |
501
+ | 448 | 2373 | soap:sipper |
502
+ | 449 | 2374 | bottle:sipper |
503
+ | 450 | 2375 | chair:skirt |
504
+ | 451 | 2376 | sweater:sleeve |
505
+ | 452 | 2377 | earphone:slider |
506
+ | 453 | 2378 | chair:spindle |
507
+ | 454 | 2379 | car_(automobile):splashboard |
508
+ | 455 | 2380 | blender:spout |
509
+ | 456 | 2381 | soap:spout |
510
+ | 457 | 2382 | kettle:spout |
511
+ | 458 | 2383 | bottle:spout |
512
+ | 459 | 2384 | car_(automobile):steeringwheel |
513
+ | 460 | 2385 | bicycle:stem |
514
+ | 461 | 2386 | stool:step |
515
+ | 462 | 2387 | ladder:step |
516
+ | 463 | 2388 | jar:sticker |
517
+ | 464 | 2389 | chair:stile |
518
+ | 465 | 2390 | hat:strap |
519
+ | 466 | 2391 | watch:strap |
520
+ | 467 | 2392 | helmet:strap |
521
+ | 468 | 2393 | slipper_(footwear):strap |
522
+ | 469 | 2394 | belt:strap |
523
+ | 470 | 2395 | chair:stretcher |
524
+ | 471 | 2396 | table:stretcher |
525
+ | 472 | 2397 | bench:stretcher |
526
+ | 473 | 2398 | guitar:string |
527
+ | 474 | 2399 | fan:string |
528
+ | 475 | 2400 | blender:switch |
529
+ | 476 | 2401 | lamp:switch |
530
+ | 477 | 2402 | kettle:switch |
531
+ | 478 | 2403 | chair:swivel |
532
+ | 479 | 2404 | bench:table_top |
533
+ | 480 | 2405 | dog:tail |
534
+ | 481 | 2406 | car_(automobile):taillight |
535
+ | 482 | 2407 | car_(automobile):tank |
536
+ | 483 | 2408 | carton:tapering_top |
537
+ | 484 | 2409 | dog:teeth |
538
+ | 485 | 2410 | towel:terry_bar |
539
+ | 486 | 2411 | can:text |
540
+ | 487 | 2412 | plastic_bag:text |
541
+ | 488 | 2413 | mug:text |
542
+ | 489 | 2414 | newspaper:text |
543
+ | 490 | 2415 | jar:text |
544
+ | 491 | 2416 | carton:text |
545
+ | 492 | 2417 | shoe:throat |
546
+ | 493 | 2418 | microwave_oven:time_display |
547
+ | 494 | 2419 | spoon:tip |
548
+ | 495 | 2420 | pen:tip |
549
+ | 496 | 2421 | screwdriver:tip |
550
+ | 497 | 2422 | shoe:toe_box |
551
+ | 498 | 2423 | slipper_(footwear):toe_box |
552
+ | 499 | 2424 | shoe:tongue |
553
+ | 500 | 2425 | bottle:top |
554
+ | 501 | 2426 | microwave_oven:top |
555
+ | 502 | 2427 | soap:top |
556
+ | 503 | 2428 | television_set:top |
557
+ | 504 | 2429 | table:top |
558
+ | 505 | 2430 | carton:top |
559
+ | 506 | 2431 | ladder:top_cap |
560
+ | 507 | 2432 | bicycle:top_tube |
561
+ | 508 | 2433 | laptop_computer:touchpad |
562
+ | 509 | 2434 | car_(automobile):trunk |
563
+ | 510 | 2435 | car_(automobile):turnsignal |
564
+ | 511 | 2436 | microwave_oven:turntable |
565
+ | 512 | 2437 | shoe:vamp |
566
+ | 513 | 2438 | slipper_(footwear):vamp |
567
+ | 514 | 2439 | blender:vapour_cover |
568
+ | 515 | 2440 | hat:visor |
569
+ | 516 | 2441 | helmet:visor |
570
+ | 517 | 2442 | shoe:welt |
571
+ | 518 | 2443 | chair:wheel |
572
+ | 519 | 2444 | car_(automobile):wheel |
573
+ | 520 | 2445 | trash_can:wheel |
574
+ | 521 | 2446 | table:wheel |
575
+ | 522 | 2447 | bicycle:wheel |
576
+ | 523 | 2448 | watch:window |
577
+ | 524 | 2449 | car_(automobile):window |
578
+ | 525 | 2450 | car_(automobile):windowpane |
579
+ | 526 | 2451 | car_(automobile):windshield |
580
+ | 527 | 2452 | car_(automobile):wiper |
581
+ | 528 | 2453 | mouse_(computer_equipment):wire |
582
+ | 529 | 2454 | sweater:yoke |
583
+ | 530 | 2455 | handbag:zip |
584
+
585
+ ## Training with transformers
586
+
587
+ The boxes are already in the absolute-pixel COCO `[x, y, w, h]` format that
588
+ `AutoImageProcessor` expects, so fine-tuning a detector needs no bbox
589
+ conversion:
590
+
591
+ ```python
592
+ import torch
593
+ from datasets import load_dataset
594
+ from transformers import (AutoImageProcessor, AutoModelForObjectDetection,
595
+ Trainer, TrainingArguments)
596
+
597
+ ds = load_dataset("finedet/paco")
598
+ obj_feat = ds["train"].features["objects"]
599
+ if hasattr(obj_feat, "feature"):
600
+ obj_feat = obj_feat.feature
601
+ cat_feat = obj_feat["category"]
602
+ names = (cat_feat.feature if hasattr(cat_feat, "feature") else cat_feat).names
603
+
604
+ checkpoint = "facebook/detr-resnet-50"
605
+ processor = AutoImageProcessor.from_pretrained(checkpoint)
606
+ model = AutoModelForObjectDetection.from_pretrained(
607
+ checkpoint,
608
+ id2label=dict(enumerate(names)),
609
+ label2id={n: i for i, n in enumerate(names)},
610
+ ignore_mismatched_sizes=True,
611
+ )
612
+
613
+
614
+ def transform(batch):
615
+ images = [img.convert("RGB") for img in batch["image"]]
616
+ annotations = [
617
+ {"image_id": i,
618
+ "annotations": [
619
+ {"bbox": box, "category_id": cat, "area": box[2] * box[3], "iscrowd": 0}
620
+ for box, cat in zip(objs["bbox"], objs["category"])
621
+ ]}
622
+ for i, objs in enumerate(batch["objects"])
623
+ ]
624
+ return processor(images=images, annotations=annotations, return_tensors="pt")
625
+
626
+
627
+ def collate(batch):
628
+ return {"pixel_values": torch.stack([x["pixel_values"] for x in batch]),
629
+ "labels": [x["labels"] for x in batch]}
630
+
631
+
632
+ trainer = Trainer(
633
+ model=model,
634
+ args=TrainingArguments(output_dir="out", per_device_train_batch_size=4,
635
+ num_train_epochs=10, learning_rate=1e-5,
636
+ remove_unused_columns=False),
637
+ train_dataset=ds["train"].with_transform(transform),
638
+ data_collator=collate,
639
+ )
640
+ trainer.train()
641
+ ```