category.py 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. from __future__ import absolute_import
  15. from __future__ import division
  16. from __future__ import print_function
  17. import os
  18. from paddlex.ppdet.data.source.voc import pascalvoc_label
  19. from paddlex.ppdet.data.source.widerface import widerface_label
  20. from paddlex.ppdet.utils.logger import setup_logger
  21. logger = setup_logger(__name__)
  22. __all__ = ['get_categories']
  23. def get_categories(metric_type, anno_file=None, arch=None):
  24. """
  25. Get class id to category id map and category id
  26. to category name map from annotation file.
  27. Args:
  28. metric_type (str): metric type, currently support 'coco', 'voc', 'oid'
  29. and 'widerface'.
  30. anno_file (str): annotation file path
  31. """
  32. if arch == 'keypoint_arch':
  33. return (None, {'id': 'keypoint'})
  34. if metric_type.lower() == 'coco' or metric_type.lower() == 'rbox':
  35. if anno_file and os.path.isfile(anno_file):
  36. # lazy import pycocotools here
  37. from pycocotools.coco import COCO
  38. coco = COCO(anno_file)
  39. cats = coco.loadCats(coco.getCatIds())
  40. clsid2catid = {i: cat['id'] for i, cat in enumerate(cats)}
  41. catid2name = {cat['id']: cat['name'] for cat in cats}
  42. return clsid2catid, catid2name
  43. # anno file not exist, load default categories of COCO17
  44. else:
  45. return _coco17_category()
  46. elif metric_type.lower() == 'voc':
  47. if anno_file and os.path.isfile(anno_file):
  48. cats = []
  49. with open(anno_file) as f:
  50. for line in f.readlines():
  51. cats.append(line.strip())
  52. if cats[0] == 'background':
  53. cats = cats[1:]
  54. clsid2catid = {i: i for i in range(len(cats))}
  55. catid2name = {i: name for i, name in enumerate(cats)}
  56. return clsid2catid, catid2name
  57. # anno file not exist, load default categories of
  58. # VOC all 20 categories
  59. else:
  60. return _vocall_category()
  61. elif metric_type.lower() == 'oid':
  62. if anno_file and os.path.isfile(anno_file):
  63. logger.warning("only default categories support for OID19")
  64. return _oid19_category()
  65. elif metric_type.lower() == 'widerface':
  66. return _widerface_category()
  67. elif metric_type.lower() == 'keypointtopdowncocoeval' or metric_type.lower(
  68. ) == 'keypointtopdownmpiieval':
  69. return (None, {'id': 'keypoint'})
  70. elif metric_type.lower() in ['mot', 'motdet', 'reid']:
  71. return _mot_category()
  72. else:
  73. raise ValueError("unknown metric type {}".format(metric_type))
  74. def _mot_category():
  75. """
  76. Get class id to category id map and category id
  77. to category name map of mot dataset
  78. """
  79. label_map = {'person': 0}
  80. label_map = sorted(label_map.items(), key=lambda x: x[1])
  81. cats = [l[0] for l in label_map]
  82. clsid2catid = {i: i for i in range(len(cats))}
  83. catid2name = {i: name for i, name in enumerate(cats)}
  84. return clsid2catid, catid2name
  85. def _coco17_category():
  86. """
  87. Get class id to category id map and category id
  88. to category name map of COCO2017 dataset
  89. """
  90. clsid2catid = {
  91. 1: 1,
  92. 2: 2,
  93. 3: 3,
  94. 4: 4,
  95. 5: 5,
  96. 6: 6,
  97. 7: 7,
  98. 8: 8,
  99. 9: 9,
  100. 10: 10,
  101. 11: 11,
  102. 12: 13,
  103. 13: 14,
  104. 14: 15,
  105. 15: 16,
  106. 16: 17,
  107. 17: 18,
  108. 18: 19,
  109. 19: 20,
  110. 20: 21,
  111. 21: 22,
  112. 22: 23,
  113. 23: 24,
  114. 24: 25,
  115. 25: 27,
  116. 26: 28,
  117. 27: 31,
  118. 28: 32,
  119. 29: 33,
  120. 30: 34,
  121. 31: 35,
  122. 32: 36,
  123. 33: 37,
  124. 34: 38,
  125. 35: 39,
  126. 36: 40,
  127. 37: 41,
  128. 38: 42,
  129. 39: 43,
  130. 40: 44,
  131. 41: 46,
  132. 42: 47,
  133. 43: 48,
  134. 44: 49,
  135. 45: 50,
  136. 46: 51,
  137. 47: 52,
  138. 48: 53,
  139. 49: 54,
  140. 50: 55,
  141. 51: 56,
  142. 52: 57,
  143. 53: 58,
  144. 54: 59,
  145. 55: 60,
  146. 56: 61,
  147. 57: 62,
  148. 58: 63,
  149. 59: 64,
  150. 60: 65,
  151. 61: 67,
  152. 62: 70,
  153. 63: 72,
  154. 64: 73,
  155. 65: 74,
  156. 66: 75,
  157. 67: 76,
  158. 68: 77,
  159. 69: 78,
  160. 70: 79,
  161. 71: 80,
  162. 72: 81,
  163. 73: 82,
  164. 74: 84,
  165. 75: 85,
  166. 76: 86,
  167. 77: 87,
  168. 78: 88,
  169. 79: 89,
  170. 80: 90
  171. }
  172. catid2name = {
  173. 0: 'background',
  174. 1: 'person',
  175. 2: 'bicycle',
  176. 3: 'car',
  177. 4: 'motorcycle',
  178. 5: 'airplane',
  179. 6: 'bus',
  180. 7: 'train',
  181. 8: 'truck',
  182. 9: 'boat',
  183. 10: 'traffic light',
  184. 11: 'fire hydrant',
  185. 13: 'stop sign',
  186. 14: 'parking meter',
  187. 15: 'bench',
  188. 16: 'bird',
  189. 17: 'cat',
  190. 18: 'dog',
  191. 19: 'horse',
  192. 20: 'sheep',
  193. 21: 'cow',
  194. 22: 'elephant',
  195. 23: 'bear',
  196. 24: 'zebra',
  197. 25: 'giraffe',
  198. 27: 'backpack',
  199. 28: 'umbrella',
  200. 31: 'handbag',
  201. 32: 'tie',
  202. 33: 'suitcase',
  203. 34: 'frisbee',
  204. 35: 'skis',
  205. 36: 'snowboard',
  206. 37: 'sports ball',
  207. 38: 'kite',
  208. 39: 'baseball bat',
  209. 40: 'baseball glove',
  210. 41: 'skateboard',
  211. 42: 'surfboard',
  212. 43: 'tennis racket',
  213. 44: 'bottle',
  214. 46: 'wine glass',
  215. 47: 'cup',
  216. 48: 'fork',
  217. 49: 'knife',
  218. 50: 'spoon',
  219. 51: 'bowl',
  220. 52: 'banana',
  221. 53: 'apple',
  222. 54: 'sandwich',
  223. 55: 'orange',
  224. 56: 'broccoli',
  225. 57: 'carrot',
  226. 58: 'hot dog',
  227. 59: 'pizza',
  228. 60: 'donut',
  229. 61: 'cake',
  230. 62: 'chair',
  231. 63: 'couch',
  232. 64: 'potted plant',
  233. 65: 'bed',
  234. 67: 'dining table',
  235. 70: 'toilet',
  236. 72: 'tv',
  237. 73: 'laptop',
  238. 74: 'mouse',
  239. 75: 'remote',
  240. 76: 'keyboard',
  241. 77: 'cell phone',
  242. 78: 'microwave',
  243. 79: 'oven',
  244. 80: 'toaster',
  245. 81: 'sink',
  246. 82: 'refrigerator',
  247. 84: 'book',
  248. 85: 'clock',
  249. 86: 'vase',
  250. 87: 'scissors',
  251. 88: 'teddy bear',
  252. 89: 'hair drier',
  253. 90: 'toothbrush'
  254. }
  255. clsid2catid = {k - 1: v for k, v in clsid2catid.items()}
  256. catid2name.pop(0)
  257. return clsid2catid, catid2name
  258. def _vocall_category():
  259. """
  260. Get class id to category id map and category id
  261. to category name map of mixup voc dataset
  262. """
  263. label_map = pascalvoc_label()
  264. label_map = sorted(label_map.items(), key=lambda x: x[1])
  265. cats = [l[0] for l in label_map]
  266. clsid2catid = {i: i for i in range(len(cats))}
  267. catid2name = {i: name for i, name in enumerate(cats)}
  268. return clsid2catid, catid2name
  269. def _widerface_category():
  270. label_map = widerface_label()
  271. label_map = sorted(label_map.items(), key=lambda x: x[1])
  272. cats = [l[0] for l in label_map]
  273. clsid2catid = {i: i for i in range(len(cats))}
  274. catid2name = {i: name for i, name in enumerate(cats)}
  275. return clsid2catid, catid2name
  276. def _oid19_category():
  277. clsid2catid = {k: k + 1 for k in range(500)}
  278. catid2name = {
  279. 0: "background",
  280. 1: "Infant bed",
  281. 2: "Rose",
  282. 3: "Flag",
  283. 4: "Flashlight",
  284. 5: "Sea turtle",
  285. 6: "Camera",
  286. 7: "Animal",
  287. 8: "Glove",
  288. 9: "Crocodile",
  289. 10: "Cattle",
  290. 11: "House",
  291. 12: "Guacamole",
  292. 13: "Penguin",
  293. 14: "Vehicle registration plate",
  294. 15: "Bench",
  295. 16: "Ladybug",
  296. 17: "Human nose",
  297. 18: "Watermelon",
  298. 19: "Flute",
  299. 20: "Butterfly",
  300. 21: "Washing machine",
  301. 22: "Raccoon",
  302. 23: "Segway",
  303. 24: "Taco",
  304. 25: "Jellyfish",
  305. 26: "Cake",
  306. 27: "Pen",
  307. 28: "Cannon",
  308. 29: "Bread",
  309. 30: "Tree",
  310. 31: "Shellfish",
  311. 32: "Bed",
  312. 33: "Hamster",
  313. 34: "Hat",
  314. 35: "Toaster",
  315. 36: "Sombrero",
  316. 37: "Tiara",
  317. 38: "Bowl",
  318. 39: "Dragonfly",
  319. 40: "Moths and butterflies",
  320. 41: "Antelope",
  321. 42: "Vegetable",
  322. 43: "Torch",
  323. 44: "Building",
  324. 45: "Power plugs and sockets",
  325. 46: "Blender",
  326. 47: "Billiard table",
  327. 48: "Cutting board",
  328. 49: "Bronze sculpture",
  329. 50: "Turtle",
  330. 51: "Broccoli",
  331. 52: "Tiger",
  332. 53: "Mirror",
  333. 54: "Bear",
  334. 55: "Zucchini",
  335. 56: "Dress",
  336. 57: "Volleyball",
  337. 58: "Guitar",
  338. 59: "Reptile",
  339. 60: "Golf cart",
  340. 61: "Tart",
  341. 62: "Fedora",
  342. 63: "Carnivore",
  343. 64: "Car",
  344. 65: "Lighthouse",
  345. 66: "Coffeemaker",
  346. 67: "Food processor",
  347. 68: "Truck",
  348. 69: "Bookcase",
  349. 70: "Surfboard",
  350. 71: "Footwear",
  351. 72: "Bench",
  352. 73: "Necklace",
  353. 74: "Flower",
  354. 75: "Radish",
  355. 76: "Marine mammal",
  356. 77: "Frying pan",
  357. 78: "Tap",
  358. 79: "Peach",
  359. 80: "Knife",
  360. 81: "Handbag",
  361. 82: "Laptop",
  362. 83: "Tent",
  363. 84: "Ambulance",
  364. 85: "Christmas tree",
  365. 86: "Eagle",
  366. 87: "Limousine",
  367. 88: "Kitchen & dining room table",
  368. 89: "Polar bear",
  369. 90: "Tower",
  370. 91: "Football",
  371. 92: "Willow",
  372. 93: "Human head",
  373. 94: "Stop sign",
  374. 95: "Banana",
  375. 96: "Mixer",
  376. 97: "Binoculars",
  377. 98: "Dessert",
  378. 99: "Bee",
  379. 100: "Chair",
  380. 101: "Wood-burning stove",
  381. 102: "Flowerpot",
  382. 103: "Beaker",
  383. 104: "Oyster",
  384. 105: "Woodpecker",
  385. 106: "Harp",
  386. 107: "Bathtub",
  387. 108: "Wall clock",
  388. 109: "Sports uniform",
  389. 110: "Rhinoceros",
  390. 111: "Beehive",
  391. 112: "Cupboard",
  392. 113: "Chicken",
  393. 114: "Man",
  394. 115: "Blue jay",
  395. 116: "Cucumber",
  396. 117: "Balloon",
  397. 118: "Kite",
  398. 119: "Fireplace",
  399. 120: "Lantern",
  400. 121: "Missile",
  401. 122: "Book",
  402. 123: "Spoon",
  403. 124: "Grapefruit",
  404. 125: "Squirrel",
  405. 126: "Orange",
  406. 127: "Coat",
  407. 128: "Punching bag",
  408. 129: "Zebra",
  409. 130: "Billboard",
  410. 131: "Bicycle",
  411. 132: "Door handle",
  412. 133: "Mechanical fan",
  413. 134: "Ring binder",
  414. 135: "Table",
  415. 136: "Parrot",
  416. 137: "Sock",
  417. 138: "Vase",
  418. 139: "Weapon",
  419. 140: "Shotgun",
  420. 141: "Glasses",
  421. 142: "Seahorse",
  422. 143: "Belt",
  423. 144: "Watercraft",
  424. 145: "Window",
  425. 146: "Giraffe",
  426. 147: "Lion",
  427. 148: "Tire",
  428. 149: "Vehicle",
  429. 150: "Canoe",
  430. 151: "Tie",
  431. 152: "Shelf",
  432. 153: "Picture frame",
  433. 154: "Printer",
  434. 155: "Human leg",
  435. 156: "Boat",
  436. 157: "Slow cooker",
  437. 158: "Croissant",
  438. 159: "Candle",
  439. 160: "Pancake",
  440. 161: "Pillow",
  441. 162: "Coin",
  442. 163: "Stretcher",
  443. 164: "Sandal",
  444. 165: "Woman",
  445. 166: "Stairs",
  446. 167: "Harpsichord",
  447. 168: "Stool",
  448. 169: "Bus",
  449. 170: "Suitcase",
  450. 171: "Human mouth",
  451. 172: "Juice",
  452. 173: "Skull",
  453. 174: "Door",
  454. 175: "Violin",
  455. 176: "Chopsticks",
  456. 177: "Digital clock",
  457. 178: "Sunflower",
  458. 179: "Leopard",
  459. 180: "Bell pepper",
  460. 181: "Harbor seal",
  461. 182: "Snake",
  462. 183: "Sewing machine",
  463. 184: "Goose",
  464. 185: "Helicopter",
  465. 186: "Seat belt",
  466. 187: "Coffee cup",
  467. 188: "Microwave oven",
  468. 189: "Hot dog",
  469. 190: "Countertop",
  470. 191: "Serving tray",
  471. 192: "Dog bed",
  472. 193: "Beer",
  473. 194: "Sunglasses",
  474. 195: "Golf ball",
  475. 196: "Waffle",
  476. 197: "Palm tree",
  477. 198: "Trumpet",
  478. 199: "Ruler",
  479. 200: "Helmet",
  480. 201: "Ladder",
  481. 202: "Office building",
  482. 203: "Tablet computer",
  483. 204: "Toilet paper",
  484. 205: "Pomegranate",
  485. 206: "Skirt",
  486. 207: "Gas stove",
  487. 208: "Cookie",
  488. 209: "Cart",
  489. 210: "Raven",
  490. 211: "Egg",
  491. 212: "Burrito",
  492. 213: "Goat",
  493. 214: "Kitchen knife",
  494. 215: "Skateboard",
  495. 216: "Salt and pepper shakers",
  496. 217: "Lynx",
  497. 218: "Boot",
  498. 219: "Platter",
  499. 220: "Ski",
  500. 221: "Swimwear",
  501. 222: "Swimming pool",
  502. 223: "Drinking straw",
  503. 224: "Wrench",
  504. 225: "Drum",
  505. 226: "Ant",
  506. 227: "Human ear",
  507. 228: "Headphones",
  508. 229: "Fountain",
  509. 230: "Bird",
  510. 231: "Jeans",
  511. 232: "Television",
  512. 233: "Crab",
  513. 234: "Microphone",
  514. 235: "Home appliance",
  515. 236: "Snowplow",
  516. 237: "Beetle",
  517. 238: "Artichoke",
  518. 239: "Jet ski",
  519. 240: "Stationary bicycle",
  520. 241: "Human hair",
  521. 242: "Brown bear",
  522. 243: "Starfish",
  523. 244: "Fork",
  524. 245: "Lobster",
  525. 246: "Corded phone",
  526. 247: "Drink",
  527. 248: "Saucer",
  528. 249: "Carrot",
  529. 250: "Insect",
  530. 251: "Clock",
  531. 252: "Castle",
  532. 253: "Tennis racket",
  533. 254: "Ceiling fan",
  534. 255: "Asparagus",
  535. 256: "Jaguar",
  536. 257: "Musical instrument",
  537. 258: "Train",
  538. 259: "Cat",
  539. 260: "Rifle",
  540. 261: "Dumbbell",
  541. 262: "Mobile phone",
  542. 263: "Taxi",
  543. 264: "Shower",
  544. 265: "Pitcher",
  545. 266: "Lemon",
  546. 267: "Invertebrate",
  547. 268: "Turkey",
  548. 269: "High heels",
  549. 270: "Bust",
  550. 271: "Elephant",
  551. 272: "Scarf",
  552. 273: "Barrel",
  553. 274: "Trombone",
  554. 275: "Pumpkin",
  555. 276: "Box",
  556. 277: "Tomato",
  557. 278: "Frog",
  558. 279: "Bidet",
  559. 280: "Human face",
  560. 281: "Houseplant",
  561. 282: "Van",
  562. 283: "Shark",
  563. 284: "Ice cream",
  564. 285: "Swim cap",
  565. 286: "Falcon",
  566. 287: "Ostrich",
  567. 288: "Handgun",
  568. 289: "Whiteboard",
  569. 290: "Lizard",
  570. 291: "Pasta",
  571. 292: "Snowmobile",
  572. 293: "Light bulb",
  573. 294: "Window blind",
  574. 295: "Muffin",
  575. 296: "Pretzel",
  576. 297: "Computer monitor",
  577. 298: "Horn",
  578. 299: "Furniture",
  579. 300: "Sandwich",
  580. 301: "Fox",
  581. 302: "Convenience store",
  582. 303: "Fish",
  583. 304: "Fruit",
  584. 305: "Earrings",
  585. 306: "Curtain",
  586. 307: "Grape",
  587. 308: "Sofa bed",
  588. 309: "Horse",
  589. 310: "Luggage and bags",
  590. 311: "Desk",
  591. 312: "Crutch",
  592. 313: "Bicycle helmet",
  593. 314: "Tick",
  594. 315: "Airplane",
  595. 316: "Canary",
  596. 317: "Spatula",
  597. 318: "Watch",
  598. 319: "Lily",
  599. 320: "Kitchen appliance",
  600. 321: "Filing cabinet",
  601. 322: "Aircraft",
  602. 323: "Cake stand",
  603. 324: "Candy",
  604. 325: "Sink",
  605. 326: "Mouse",
  606. 327: "Wine",
  607. 328: "Wheelchair",
  608. 329: "Goldfish",
  609. 330: "Refrigerator",
  610. 331: "French fries",
  611. 332: "Drawer",
  612. 333: "Treadmill",
  613. 334: "Picnic basket",
  614. 335: "Dice",
  615. 336: "Cabbage",
  616. 337: "Football helmet",
  617. 338: "Pig",
  618. 339: "Person",
  619. 340: "Shorts",
  620. 341: "Gondola",
  621. 342: "Honeycomb",
  622. 343: "Doughnut",
  623. 344: "Chest of drawers",
  624. 345: "Land vehicle",
  625. 346: "Bat",
  626. 347: "Monkey",
  627. 348: "Dagger",
  628. 349: "Tableware",
  629. 350: "Human foot",
  630. 351: "Mug",
  631. 352: "Alarm clock",
  632. 353: "Pressure cooker",
  633. 354: "Human hand",
  634. 355: "Tortoise",
  635. 356: "Baseball glove",
  636. 357: "Sword",
  637. 358: "Pear",
  638. 359: "Miniskirt",
  639. 360: "Traffic sign",
  640. 361: "Girl",
  641. 362: "Roller skates",
  642. 363: "Dinosaur",
  643. 364: "Porch",
  644. 365: "Human beard",
  645. 366: "Submarine sandwich",
  646. 367: "Screwdriver",
  647. 368: "Strawberry",
  648. 369: "Wine glass",
  649. 370: "Seafood",
  650. 371: "Racket",
  651. 372: "Wheel",
  652. 373: "Sea lion",
  653. 374: "Toy",
  654. 375: "Tea",
  655. 376: "Tennis ball",
  656. 377: "Waste container",
  657. 378: "Mule",
  658. 379: "Cricket ball",
  659. 380: "Pineapple",
  660. 381: "Coconut",
  661. 382: "Doll",
  662. 383: "Coffee table",
  663. 384: "Snowman",
  664. 385: "Lavender",
  665. 386: "Shrimp",
  666. 387: "Maple",
  667. 388: "Cowboy hat",
  668. 389: "Goggles",
  669. 390: "Rugby ball",
  670. 391: "Caterpillar",
  671. 392: "Poster",
  672. 393: "Rocket",
  673. 394: "Organ",
  674. 395: "Saxophone",
  675. 396: "Traffic light",
  676. 397: "Cocktail",
  677. 398: "Plastic bag",
  678. 399: "Squash",
  679. 400: "Mushroom",
  680. 401: "Hamburger",
  681. 402: "Light switch",
  682. 403: "Parachute",
  683. 404: "Teddy bear",
  684. 405: "Winter melon",
  685. 406: "Deer",
  686. 407: "Musical keyboard",
  687. 408: "Plumbing fixture",
  688. 409: "Scoreboard",
  689. 410: "Baseball bat",
  690. 411: "Envelope",
  691. 412: "Adhesive tape",
  692. 413: "Briefcase",
  693. 414: "Paddle",
  694. 415: "Bow and arrow",
  695. 416: "Telephone",
  696. 417: "Sheep",
  697. 418: "Jacket",
  698. 419: "Boy",
  699. 420: "Pizza",
  700. 421: "Otter",
  701. 422: "Office supplies",
  702. 423: "Couch",
  703. 424: "Cello",
  704. 425: "Bull",
  705. 426: "Camel",
  706. 427: "Ball",
  707. 428: "Duck",
  708. 429: "Whale",
  709. 430: "Shirt",
  710. 431: "Tank",
  711. 432: "Motorcycle",
  712. 433: "Accordion",
  713. 434: "Owl",
  714. 435: "Porcupine",
  715. 436: "Sun hat",
  716. 437: "Nail",
  717. 438: "Scissors",
  718. 439: "Swan",
  719. 440: "Lamp",
  720. 441: "Crown",
  721. 442: "Piano",
  722. 443: "Sculpture",
  723. 444: "Cheetah",
  724. 445: "Oboe",
  725. 446: "Tin can",
  726. 447: "Mango",
  727. 448: "Tripod",
  728. 449: "Oven",
  729. 450: "Mouse",
  730. 451: "Barge",
  731. 452: "Coffee",
  732. 453: "Snowboard",
  733. 454: "Common fig",
  734. 455: "Salad",
  735. 456: "Marine invertebrates",
  736. 457: "Umbrella",
  737. 458: "Kangaroo",
  738. 459: "Human arm",
  739. 460: "Measuring cup",
  740. 461: "Snail",
  741. 462: "Loveseat",
  742. 463: "Suit",
  743. 464: "Teapot",
  744. 465: "Bottle",
  745. 466: "Alpaca",
  746. 467: "Kettle",
  747. 468: "Trousers",
  748. 469: "Popcorn",
  749. 470: "Centipede",
  750. 471: "Spider",
  751. 472: "Sparrow",
  752. 473: "Plate",
  753. 474: "Bagel",
  754. 475: "Personal care",
  755. 476: "Apple",
  756. 477: "Brassiere",
  757. 478: "Bathroom cabinet",
  758. 479: "studio couch",
  759. 480: "Computer keyboard",
  760. 481: "Table tennis racket",
  761. 482: "Sushi",
  762. 483: "Cabinetry",
  763. 484: "Street light",
  764. 485: "Towel",
  765. 486: "Nightstand",
  766. 487: "Rabbit",
  767. 488: "Dolphin",
  768. 489: "Dog",
  769. 490: "Jug",
  770. 491: "Wok",
  771. 492: "Fire hydrant",
  772. 493: "Human eye",
  773. 494: "Skyscraper",
  774. 495: "Backpack",
  775. 496: "Potato",
  776. 497: "Paper towel",
  777. 498: "Lifejacket",
  778. 499: "Bicycle wheel",
  779. 500: "Toilet",
  780. }
  781. return clsid2catid, catid2name