open_images_helper.py 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. open_images_unify_categories_for_coco = {
  2. '/m/03bt1vf': '/m/01g317',
  3. '/m/04yx4': '/m/01g317',
  4. '/m/05r655': '/m/01g317',
  5. '/m/01bl7v': '/m/01g317',
  6. '/m/0cnyhnx': '/m/01xq0k1',
  7. '/m/01226z': '/m/018xm',
  8. '/m/05ctyq': '/m/018xm',
  9. '/m/058qzx': '/m/04ctx',
  10. '/m/06pcq': '/m/0l515',
  11. '/m/03m3pdh': '/m/02crq1',
  12. '/m/046dlr': '/m/01x3z',
  13. '/m/0h8mzrc': '/m/01x3z',
  14. }
  15. top_300_classes_plus_coco_compatibility = [
  16. ('Man', 1060962),
  17. ('Clothing', 986610),
  18. ('Tree', 748162),
  19. ('Woman', 611896),
  20. ('Person', 610294),
  21. ('Human face', 442948),
  22. ('Girl', 175399),
  23. ('Building', 162147),
  24. ('Car', 159135),
  25. ('Plant', 155704),
  26. ('Human body', 137073),
  27. ('Flower', 133128),
  28. ('Window', 127485),
  29. ('Human arm', 118380),
  30. ('House', 114365),
  31. ('Wheel', 111684),
  32. ('Suit', 99054),
  33. ('Human hair', 98089),
  34. ('Human head', 92763),
  35. ('Chair', 88624),
  36. ('Boy', 79849),
  37. ('Table', 73699),
  38. ('Jeans', 57200),
  39. ('Tire', 55725),
  40. ('Skyscraper', 53321),
  41. ('Food', 52400),
  42. ('Footwear', 50335),
  43. ('Dress', 50236),
  44. ('Human leg', 47124),
  45. ('Toy', 46636),
  46. ('Tower', 45605),
  47. ('Boat', 43486),
  48. ('Land vehicle', 40541),
  49. ('Bicycle wheel', 34646),
  50. ('Palm tree', 33729),
  51. ('Fashion accessory', 32914),
  52. ('Glasses', 31940),
  53. ('Bicycle', 31409),
  54. ('Furniture', 30656),
  55. ('Sculpture', 29643),
  56. ('Bottle', 27558),
  57. ('Dog', 26980),
  58. ('Snack', 26796),
  59. ('Human hand', 26664),
  60. ('Bird', 25791),
  61. ('Book', 25415),
  62. ('Guitar', 24386),
  63. ('Jacket', 23998),
  64. ('Poster', 22192),
  65. ('Dessert', 21284),
  66. ('Baked goods', 20657),
  67. ('Drink', 19754),
  68. ('Flag', 18588),
  69. ('Houseplant', 18205),
  70. ('Tableware', 17613),
  71. ('Airplane', 17218),
  72. ('Door', 17195),
  73. ('Sports uniform', 17068),
  74. ('Shelf', 16865),
  75. ('Drum', 16612),
  76. ('Vehicle', 16542),
  77. ('Microphone', 15269),
  78. ('Street light', 14957),
  79. ('Cat', 14879),
  80. ('Fruit', 13684),
  81. ('Fast food', 13536),
  82. ('Animal', 12932),
  83. ('Vegetable', 12534),
  84. ('Train', 12358),
  85. ('Horse', 11948),
  86. ('Flowerpot', 11728),
  87. ('Motorcycle', 11621),
  88. ('Fish', 11517),
  89. ('Desk', 11405),
  90. ('Helmet', 10996),
  91. ('Truck', 10915),
  92. ('Bus', 10695),
  93. ('Hat', 10532),
  94. ('Auto part', 10488),
  95. ('Musical instrument', 10303),
  96. ('Sunglasses', 10207),
  97. ('Picture frame', 10096),
  98. ('Sports equipment', 10015),
  99. ('Shorts', 9999),
  100. ('Wine glass', 9632),
  101. ('Duck', 9242),
  102. ('Wine', 9032),
  103. ('Rose', 8781),
  104. ('Tie', 8693),
  105. ('Butterfly', 8436),
  106. ('Beer', 7978),
  107. ('Cabinetry', 7956),
  108. ('Laptop', 7907),
  109. ('Insect', 7497),
  110. ('Goggles', 7363),
  111. ('Shirt', 7098),
  112. ('Dairy Product', 7021),
  113. ('Marine invertebrates', 7014),
  114. ('Cattle', 7006),
  115. ('Trousers', 6903),
  116. ('Van', 6843),
  117. ('Billboard', 6777),
  118. ('Balloon', 6367),
  119. ('Human nose', 6103),
  120. ('Tent', 6073),
  121. ('Camera', 6014),
  122. ('Doll', 6002),
  123. ('Coat', 5951),
  124. ('Mobile phone', 5758),
  125. ('Swimwear', 5729),
  126. ('Strawberry', 5691),
  127. ('Stairs', 5643),
  128. ('Goose', 5599),
  129. ('Umbrella', 5536),
  130. ('Cake', 5508),
  131. ('Sun hat', 5475),
  132. ('Bench', 5310),
  133. ('Bookcase', 5163),
  134. ('Bee', 5140),
  135. ('Computer monitor', 5078),
  136. ('Hiking equipment', 4983),
  137. ('Office building', 4981),
  138. ('Coffee cup', 4748),
  139. ('Curtain', 4685),
  140. ('Plate', 4651),
  141. ('Box', 4621),
  142. ('Tomato', 4595),
  143. ('Coffee table', 4529),
  144. ('Office supplies', 4473),
  145. ('Maple', 4416),
  146. ('Muffin', 4365),
  147. ('Cocktail', 4234),
  148. ('Castle', 4197),
  149. ('Couch', 4134),
  150. ('Pumpkin', 3983),
  151. ('Computer keyboard', 3960),
  152. ('Human mouth', 3926),
  153. ('Christmas tree', 3893),
  154. ('Mushroom', 3883),
  155. ('Swimming pool', 3809),
  156. ('Pastry', 3799),
  157. ('Lavender (Plant)', 3769),
  158. ('Football helmet', 3732),
  159. ('Bread', 3648),
  160. ('Traffic sign', 3628),
  161. ('Common sunflower', 3597),
  162. ('Television', 3550),
  163. ('Bed', 3525),
  164. ('Cookie', 3485),
  165. ('Fountain', 3484),
  166. ('Paddle', 3447),
  167. ('Bicycle helmet', 3429),
  168. ('Porch', 3420),
  169. ('Deer', 3387),
  170. ('Fedora', 3339),
  171. ('Canoe', 3338),
  172. ('Carnivore', 3266),
  173. ('Bowl', 3202),
  174. ('Human eye', 3166),
  175. ('Ball', 3118),
  176. ('Pillow', 3077),
  177. ('Salad', 3061),
  178. ('Beetle', 3060),
  179. ('Orange', 3050),
  180. ('Drawer', 2958),
  181. ('Platter', 2937),
  182. ('Elephant', 2921),
  183. ('Seafood', 2921),
  184. ('Monkey', 2915),
  185. ('Countertop', 2879),
  186. ('Watercraft', 2831),
  187. ('Helicopter', 2805),
  188. ('Kitchen appliance', 2797),
  189. ('Personal flotation device', 2781),
  190. ('Swan', 2739),
  191. ('Lamp', 2711),
  192. ('Boot', 2695),
  193. ('Bronze sculpture', 2693),
  194. ('Chicken', 2677),
  195. ('Taxi', 2643),
  196. ('Juice', 2615),
  197. ('Cowboy hat', 2604),
  198. ('Apple', 2600),
  199. ('Tin can', 2590),
  200. ('Necklace', 2564),
  201. ('Ice cream', 2560),
  202. ('Human beard', 2539),
  203. ('Coin', 2536),
  204. ('Candle', 2515),
  205. ('Cart', 2512),
  206. ('High heels', 2441),
  207. ('Weapon', 2433),
  208. ('Handbag', 2406),
  209. ('Penguin', 2396),
  210. ('Rifle', 2352),
  211. ('Violin', 2336),
  212. ('Skull', 2304),
  213. ('Lantern', 2285),
  214. ('Scarf', 2269),
  215. ('Saucer', 2225),
  216. ('Sheep', 2215),
  217. ('Vase', 2189),
  218. ('Lily', 2180),
  219. ('Mug', 2154),
  220. ('Parrot', 2140),
  221. ('Human ear', 2137),
  222. ('Sandal', 2115),
  223. ('Lizard', 2100),
  224. ('Kitchen & dining room table', 2063),
  225. ('Spider', 1977),
  226. ('Coffee', 1974),
  227. ('Goat', 1926),
  228. ('Squirrel', 1922),
  229. ('Cello', 1913),
  230. ('Sushi', 1881),
  231. ('Tortoise', 1876),
  232. ('Pizza', 1870),
  233. ('Studio couch', 1864),
  234. ('Barrel', 1862),
  235. ('Cosmetics', 1841),
  236. ('Moths and butterflies', 1841),
  237. ('Convenience store', 1817),
  238. ('Watch', 1792),
  239. ('Home appliance', 1786),
  240. ('Harbor seal', 1780),
  241. ('Luggage and bags', 1756),
  242. ('Vehicle registration plate', 1754),
  243. ('Shrimp', 1751),
  244. ('Jellyfish', 1730),
  245. ('French fries', 1723),
  246. ('Egg (Food)', 1698),
  247. ('Football', 1697),
  248. ('Musical keyboard', 1683),
  249. ('Falcon', 1674),
  250. ('Candy', 1660),
  251. ('Medical equipment', 1654),
  252. ('Eagle', 1651),
  253. ('Dinosaur', 1634),
  254. ('Surfboard', 1630),
  255. ('Tank', 1628),
  256. ('Grape', 1624),
  257. ('Lion', 1624),
  258. ('Owl', 1622),
  259. ('Ski', 1613),
  260. ('Waste container', 1606),
  261. ('Frog', 1591),
  262. ('Sparrow', 1585),
  263. ('Rabbit', 1581),
  264. ('Pen', 1546),
  265. ('Sea lion', 1537),
  266. ('Spoon', 1521),
  267. ('Sink', 1512),
  268. ('Teddy bear', 1507),
  269. ('Bull', 1495),
  270. ('Sofa bed', 1490),
  271. ('Dragonfly', 1479),
  272. ('Brassiere', 1478),
  273. ('Chest of drawers', 1472),
  274. ('Aircraft', 1466),
  275. ('Human foot', 1463),
  276. ('Pig', 1455),
  277. ('Fork', 1454),
  278. ('Antelope', 1438),
  279. ('Tripod', 1427),
  280. ('Tool', 1424),
  281. ('Cheese', 1422),
  282. ('Lemon', 1397),
  283. ('Hamburger', 1393),
  284. ('Dolphin', 1390),
  285. ('Mirror', 1390),
  286. ('Marine mammal', 1387),
  287. ('Giraffe', 1385),
  288. ('Snake', 1368),
  289. ('Gondola', 1364),
  290. ('Wheelchair', 1360),
  291. ('Piano', 1358),
  292. ('Cupboard', 1348),
  293. ('Banana', 1345),
  294. ('Trumpet', 1335),
  295. ('Lighthouse', 1333),
  296. ('Invertebrate', 1317),
  297. ('Carrot', 1268),
  298. ('Sock', 1260),
  299. ('Tiger', 1241),
  300. ('Camel', 1224),
  301. ('Parachute', 1224),
  302. ('Bathroom accessory', 1223),
  303. ('Earrings', 1221),
  304. ('Headphones', 1218),
  305. ('Skirt', 1198),
  306. ('Skateboard', 1190),
  307. ('Sandwich', 1148),
  308. ('Saxophone', 1141),
  309. ('Goldfish', 1136),
  310. ('Stool', 1104),
  311. ('Traffic light', 1097),
  312. ('Shellfish', 1081),
  313. ('Backpack', 1079),
  314. ('Sea turtle', 1078),
  315. ('Cucumber', 1075),
  316. ('Tea', 1051),
  317. ('Toilet', 1047),
  318. ('Roller skates', 1040),
  319. ('Mule', 1039),
  320. ('Bust', 1031),
  321. ('Broccoli', 1030),
  322. ('Crab', 1020),
  323. ('Oyster', 1019),
  324. ('Cannon', 1012),
  325. ('Zebra', 1012),
  326. ('French horn', 1008),
  327. ('Grapefruit', 998),
  328. ('Whiteboard', 997),
  329. ('Zucchini', 997),
  330. ('Crocodile', 992),
  331. ('Clock', 960),
  332. ('Wall clock', 958),
  333. ('Doughnut', 869),
  334. ('Snail', 868),
  335. ('Baseball glove', 859),
  336. ('Panda', 830),
  337. ('Tennis racket', 830),
  338. ('Pear', 652),
  339. ('Bagel', 617),
  340. ('Oven', 616),
  341. ('Ladybug', 615),
  342. ('Shark', 615),
  343. ('Polar bear', 614),
  344. ('Ostrich', 609),
  345. ('Hot dog', 473),
  346. ('Microwave oven', 467),
  347. ('Fire hydrant', 20),
  348. ('Stop sign', 20),
  349. ('Parking meter', 20),
  350. ('Bear', 20),
  351. ('Flying disc', 20),
  352. ('Snowboard', 20),
  353. ('Tennis ball', 20),
  354. ('Kite', 20),
  355. ('Baseball bat', 20),
  356. ('Kitchen knife', 20),
  357. ('Knife', 20),
  358. ('Submarine sandwich', 20),
  359. ('Computer mouse', 20),
  360. ('Remote control', 20),
  361. ('Toaster', 20),
  362. ('Sink', 20),
  363. ('Refrigerator', 20),
  364. ('Alarm clock', 20),
  365. ('Wall clock', 20),
  366. ('Scissors', 20),
  367. ('Hair dryer', 20),
  368. ('Toothbrush', 20),
  369. ('Suitcase', 20)
  370. ]