# Copyright (c) Meta Platforms, Inc. and affiliates.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.


"""
This file borrows code from https://github.com/facebookresearch/detectron2/blob/main/detectron2/data/datasets/lvis.py

This file contains functions to parse LVIS-format annotations into dicts in the
"Detectron2 format".
"""
import logging
import os

from detectron2.data import DatasetCatalog, MetadataCatalog
from detectron2.structures import BoxMode
from detectron2.utils.file_io import PathManager
from fvcore.common.timer import Timer


logger = logging.getLogger(__name__)

ATTR_TYPE_END_IDXS = [0, 30, 41, 55, 59]
ATTR_TYPE_BG_IDXS = [29, 38, 54, 58]

PACO_CATEGORIES_COUNT = 531
PACO_CATEGORIES = [{'name': 'trash_can', 'id': 23, 'image_count': 1791, 'instance_count': 2585, 'synset': 'ashcan.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'handbag', 'id': 35, 'image_count': 1775, 'instance_count': 3723, 'synset': 'bag.n.04', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'ball', 'id': 41, 'image_count': 293, 'instance_count': 739, 'synset': 'ball.n.06', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'basket', 'id': 61, 'image_count': 1541, 'instance_count': 3758, 'synset': 'basket.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'belt', 'id': 88, 'image_count': 1833, 'instance_count': 3464, 'synset': 'belt.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'bench', 'id': 90, 'image_count': 1816, 'instance_count': 4165, 'synset': 'bench.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'bicycle', 'id': 94, 'image_count': 1763, 'instance_count': 4344, 'synset': 'bicycle.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'blender', 'id': 112, 'image_count': 233, 'instance_count': 301, 'synset': 'blender.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'book', 'id': 127, 'image_count': 1819, 'instance_count': 32249, 'synset': 'book.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'bottle', 'id': 133, 'image_count': 1791, 'instance_count': 7554, 'synset': 'bottle.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'bowl', 'id': 139, 'image_count': 1822, 'instance_count': 4993, 'synset': 'bowl.n.03', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'box', 'id': 143, 'image_count': 1730, 'instance_count': 7501, 'synset': 'box.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'broom', 'id': 156, 'image_count': 91, 'instance_count': 143, 'synset': 'broom.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'bucket', 'id': 160, 'image_count': 680, 'instance_count': 1296, 'synset': 'bucket.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'calculator', 'id': 184, 'image_count': 55, 'instance_count': 58, 'synset': 'calculator.n.02', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'can', 'id': 192, 'image_count': 425, 'instance_count': 1356, 'synset': 'can.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'car_(automobile)', 'id': 207, 'image_count': 1820, 'instance_count': 9978, 'synset': 'car.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'carton', 'id': 220, 'image_count': 60, 'instance_count': 201, 'synset': 'carton.n.02', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'cellular_telephone', 'id': 230, 'image_count': 1780, 'instance_count': 2743, 'synset': 'cellular_telephone.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'chair', 'id': 232, 'image_count': 1835, 'instance_count': 10970, 'synset': 'chair.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'clock', 'id': 271, 'image_count': 1760, 'instance_count': 2564, 'synset': 'clock.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'crate', 'id': 324, 'image_count': 237, 'instance_count': 1757, 'synset': 'crate.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'cup', 'id': 344, 'image_count': 1440, 'instance_count': 4415, 'synset': 'cup.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'dog', 'id': 378, 'image_count': 1823, 'instance_count': 2542, 'synset': 'dog.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'drill', 'id': 396, 'image_count': 18, 'instance_count': 23, 'synset': 'drill.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'drum_(musical_instrument)', 'id': 399, 'image_count': 27, 'instance_count': 56, 'synset': 'drum.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'earphone', 'id': 409, 'image_count': 514, 'instance_count': 732, 'synset': 'earphone.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'fan', 'id': 429, 'image_count': 549, 'instance_count': 708, 'synset': 'fan.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'glass_(drink_container)', 'id': 498, 'image_count': 1830, 'instance_count': 6121, 'synset': 'glass.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'guitar', 'id': 521, 'image_count': 189, 'instance_count': 301, 'synset': 'guitar.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'hammer', 'id': 530, 'image_count': 24, 'instance_count': 35, 'synset': 'hammer.n.02', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'hat', 'id': 544, 'image_count': 1828, 'instance_count': 6661, 'synset': 'hat.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'helmet', 'id': 556, 'image_count': 1816, 'instance_count': 4593, 'synset': 'helmet.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'jar', 'id': 591, 'image_count': 402, 'instance_count': 1856, 'synset': 'jar.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'kettle', 'id': 604, 'image_count': 95, 'instance_count': 125, 'synset': 'kettle.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'knife', 'id': 615, 'image_count': 1778, 'instance_count': 3351, 'synset': 'knife.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'ladder', 'id': 621, 'image_count': 607, 'instance_count': 947, 'synset': 'ladder.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'lamp', 'id': 626, 'image_count': 1715, 'instance_count': 3950, 'synset': 'lamp.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'laptop_computer', 'id': 631, 'image_count': 1752, 'instance_count': 2702, 'synset': 'laptop.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'microwave_oven', 'id': 687, 'image_count': 948, 'instance_count': 1054, 'synset': 'microwave.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'mirror', 'id': 694, 'image_count': 1814, 'instance_count': 3347, 'synset': 'mirror.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'mouse_(computer_equipment)', 'id': 705, 'image_count': 1277, 'instance_count': 1753, 'synset': 'mouse.n.04', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'mug', 'id': 708, 'image_count': 770, 'instance_count': 1695, 'synset': 'mug.n.04', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'napkin', 'id': 713, 'image_count': 1715, 'instance_count': 3814, 'synset': 'napkin.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'newspaper', 'id': 719, 'image_count': 426, 'instance_count': 1137, 'synset': 'newspaper.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'pan_(for_cooking)', 'id': 751, 'image_count': 216, 'instance_count': 604, 'synset': 'pan.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'pen', 'id': 781, 'image_count': 322, 'instance_count': 897, 'synset': 'pen.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'pencil', 'id': 782, 'image_count': 147, 'instance_count': 530, 'synset': 'pencil.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'pillow', 'id': 804, 'image_count': 1818, 'instance_count': 5838, 'synset': 'pillow.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'pipe', 'id': 811, 'image_count': 1336, 'instance_count': 4500, 'synset': 'pipe.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'plate', 'id': 818, 'image_count': 1842, 'instance_count': 4992, 'synset': 'plate.n.04', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'pliers', 'id': 821, 'image_count': 28, 'instance_count': 49, 'synset': 'pliers.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'remote_control', 'id': 881, 'image_count': 1039, 'instance_count': 2301, 'synset': 'remote_control.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'plastic_bag', 'id': 898, 'image_count': 1392, 'instance_count': 3492, 'synset': 'sack.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'scarf', 'id': 921, 'image_count': 715, 'instance_count': 1250, 'synset': 'scarf.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'scissors', 'id': 923, 'image_count': 676, 'instance_count': 1299, 'synset': 'scissors.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'screwdriver', 'id': 926, 'image_count': 48, 'instance_count': 87, 'synset': 'screwdriver.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'shoe', 'id': 948, 'image_count': 1809, 'instance_count': 8849, 'synset': 'shoe.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'slipper_(footwear)', 'id': 973, 'image_count': 56, 'instance_count': 118, 'synset': 'slipper.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'soap', 'id': 979, 'image_count': 462, 'instance_count': 841, 'synset': 'soap.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'sponge', 'id': 999, 'image_count': 83, 'instance_count': 114, 'synset': 'sponge.n.01', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'spoon', 'id': 1000, 'image_count': 1056, 'instance_count': 1996, 'synset': 'spoon.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'stool', 'id': 1018, 'image_count': 282, 'instance_count': 558, 'synset': 'stool.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'sweater', 'id': 1042, 'image_count': 912, 'instance_count': 1794, 'synset': 'sweater.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'table', 'id': 1050, 'image_count': 1757, 'instance_count': 2647, 'synset': 'table.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'tape_(sticky_cloth_or_paper)', 'id': 1061, 'image_count': 129, 'instance_count': 551, 'synset': 'tape.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'telephone', 'id': 1072, 'image_count': 740, 'instance_count': 906, 'synset': 'telephone.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'television_set', 'id': 1077, 'image_count': 1814, 'instance_count': 2097, 'synset': 'television_receiver.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'tissue_paper', 'id': 1093, 'image_count': 306, 'instance_count': 575, 'synset': 'tissue.n.02', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'towel', 'id': 1108, 'image_count': 599, 'instance_count': 2077, 'synset': 'towel.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'tray', 'id': 1117, 'image_count': 889, 'instance_count': 2272, 'synset': 'tray.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'vase', 'id': 1139, 'image_count': 1772, 'instance_count': 4748, 'synset': 'vase.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'wallet', 'id': 1156, 'image_count': 109, 'instance_count': 119, 'synset': 'wallet.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'watch', 'id': 1161, 'image_count': 1836, 'instance_count': 2581, 'synset': 'watch.n.01', 'frequency': 'f', 'supercategory': 'OBJECT'}, {'name': 'wrench', 'id': 1196, 'image_count': 31, 'instance_count': 75, 'synset': 'wrench.n.03', 'frequency': 'c', 'supercategory': 'OBJECT'}, {'name': 'car_(automobile):antenna', 'id': 2000, 'image_count': 67, 'instance_count': 72, 'synset': 'antenna', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'chair:apron', 'id': 2001, 'image_count': 500, 'instance_count': 771, 'synset': 'apron', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:apron', 'id': 2002, 'image_count': 368, 'instance_count': 453, 'synset': 'apron', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:arm', 'id': 2003, 'image_count': 628, 'instance_count': 1159, 'synset': 'arm', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bench:arm', 'id': 2004, 'image_count': 525, 'instance_count': 703, 'synset': 'arm', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:back', 'id': 2005, 'image_count': 1688, 'instance_count': 8566, 'synset': 'back', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:back', 'id': 2006, 'image_count': 5, 'instance_count': 5, 'synset': 'back', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'remote_control:back', 'id': 2007, 'image_count': 320, 'instance_count': 437, 'synset': 'back', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'laptop_computer:back', 'id': 2008, 'image_count': 656, 'instance_count': 1041, 'synset': 'back', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bench:back', 'id': 2009, 'image_count': 1275, 'instance_count': 2067, 'synset': 'back', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'telephone:back_cover', 'id': 2010, 'image_count': 513, 'instance_count': 570, 'synset': 'back_cover', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cellular_telephone:back_cover', 'id': 2011, 'image_count': 1200, 'instance_count': 1567, 'synset': 'back_cover', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:backstay', 'id': 2012, 'image_count': 1210, 'instance_count': 2428, 'synset': 'backstay', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'belt:bar', 'id': 2013, 'image_count': 24, 'instance_count': 24, 'synset': 'bar', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pen:barrel', 'id': 2014, 'image_count': 280, 'instance_count': 695, 'synset': 'barrel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:base', 'id': 2015, 'image_count': 889, 'instance_count': 1584, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bowl:base', 'id': 2016, 'image_count': 329, 'instance_count': 398, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'clock:base', 'id': 2017, 'image_count': 47, 'instance_count': 51, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):base', 'id': 2018, 'image_count': 6, 'instance_count': 7, 'synset': 'base', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'bucket:base', 'id': 2019, 'image_count': 57, 'instance_count': 64, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'handbag:base', 'id': 2020, 'image_count': 347, 'instance_count': 395, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:base', 'id': 2021, 'image_count': 86, 'instance_count': 96, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'plate:base', 'id': 2022, 'image_count': 162, 'instance_count': 184, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'television_set:base', 'id': 2023, 'image_count': 676, 'instance_count': 693, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'basket:base', 'id': 2024, 'image_count': 346, 'instance_count': 434, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'can:base', 'id': 2025, 'image_count': 114, 'instance_count': 183, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mug:base', 'id': 2026, 'image_count': 51, 'instance_count': 62, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'jar:base', 'id': 2027, 'image_count': 218, 'instance_count': 431, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:base', 'id': 2028, 'image_count': 132, 'instance_count': 154, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cup:base', 'id': 2029, 'image_count': 290, 'instance_count': 440, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'kettle:base', 'id': 2030, 'image_count': 36, 'instance_count': 37, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'tray:base', 'id': 2031, 'image_count': 73, 'instance_count': 95, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'chair:base', 'id': 2032, 'image_count': 108, 'instance_count': 145, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):base', 'id': 2033, 'image_count': 83, 'instance_count': 111, 'synset': 'base', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:base', 'id': 2034, 'image_count': 210, 'instance_count': 259, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:base', 'id': 2035, 'image_count': 941, 'instance_count': 1262, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'glass_(drink_container):base', 'id': 2036, 'image_count': 1258, 'instance_count': 2485, 'synset': 'base', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'laptop_computer:base_panel', 'id': 2037, 'image_count': 1453, 'instance_count': 1898, 'synset': 'base_panel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:basket', 'id': 2038, 'image_count': 171, 'instance_count': 200, 'synset': 'basket', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'telephone:bezel', 'id': 2039, 'image_count': 581, 'instance_count': 678, 'synset': 'bezel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cellular_telephone:bezel', 'id': 2040, 'image_count': 727, 'instance_count': 1000, 'synset': 'bezel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'knife:blade', 'id': 2041, 'image_count': 1653, 'instance_count': 2528, 'synset': 'blade', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:blade', 'id': 2042, 'image_count': 355, 'instance_count': 392, 'synset': 'blade', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'blender:blade', 'id': 2043, 'image_count': 10, 'instance_count': 11, 'synset': 'blade', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'pliers:blade', 'id': 2044, 'image_count': 13, 'instance_count': 18, 'synset': 'blade', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'scissors:blade', 'id': 2045, 'image_count': 551, 'instance_count': 933, 'synset': 'blade', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plastic_bag:body', 'id': 2046, 'image_count': 1231, 'instance_count': 3077, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:body', 'id': 2047, 'image_count': 1671, 'instance_count': 5541, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:body', 'id': 2048, 'image_count': 146, 'instance_count': 195, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bowl:body', 'id': 2049, 'image_count': 1560, 'instance_count': 3744, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'drill:body', 'id': 2050, 'image_count': 17, 'instance_count': 18, 'synset': 'body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pencil:body', 'id': 2051, 'image_count': 144, 'instance_count': 488, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):body', 'id': 2052, 'image_count': 8, 'instance_count': 8, 'synset': 'body', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'sweater:body', 'id': 2053, 'image_count': 773, 'instance_count': 1340, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'trash_can:body', 'id': 2054, 'image_count': 1712, 'instance_count': 2380, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'scarf:body', 'id': 2055, 'image_count': 713, 'instance_count': 1213, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bucket:body', 'id': 2056, 'image_count': 635, 'instance_count': 1103, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'handbag:body', 'id': 2057, 'image_count': 1743, 'instance_count': 3406, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plate:body', 'id': 2058, 'image_count': 394, 'instance_count': 605, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'calculator:body', 'id': 2059, 'image_count': 53, 'instance_count': 55, 'synset': 'body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'can:body', 'id': 2060, 'image_count': 417, 'instance_count': 1202, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):body', 'id': 2061, 'image_count': 1254, 'instance_count': 1598, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mug:body', 'id': 2062, 'image_count': 759, 'instance_count': 1622, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:body', 'id': 2063, 'image_count': 400, 'instance_count': 1787, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:body', 'id': 2064, 'image_count': 279, 'instance_count': 423, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'towel:body', 'id': 2065, 'image_count': 595, 'instance_count': 1925, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'kettle:body', 'id': 2066, 'image_count': 95, 'instance_count': 116, 'synset': 'body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'glass_(drink_container):body', 'id': 2067, 'image_count': 1806, 'instance_count': 5212, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'vase:body', 'id': 2068, 'image_count': 1735, 'instance_count': 4373, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:body', 'id': 2069, 'image_count': 1570, 'instance_count': 1921, 'synset': 'body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'towel:border', 'id': 2070, 'image_count': 92, 'instance_count': 115, 'synset': 'border', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'can:bottom', 'id': 2071, 'image_count': 16, 'instance_count': 21, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bucket:bottom', 'id': 2072, 'image_count': 17, 'instance_count': 17, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'handbag:bottom', 'id': 2073, 'image_count': 27, 'instance_count': 27, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'mug:bottom', 'id': 2074, 'image_count': 88, 'instance_count': 113, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bottle:bottom', 'id': 2075, 'image_count': 128, 'instance_count': 141, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'crate:bottom', 'id': 2076, 'image_count': 65, 'instance_count': 98, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bowl:bottom', 'id': 2077, 'image_count': 266, 'instance_count': 335, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:bottom', 'id': 2078, 'image_count': 17, 'instance_count': 20, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):bottom', 'id': 2079, 'image_count': 60, 'instance_count': 86, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'box:bottom', 'id': 2080, 'image_count': 279, 'instance_count': 349, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plate:bottom', 'id': 2081, 'image_count': 1345, 'instance_count': 2307, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:bottom', 'id': 2082, 'image_count': 23, 'instance_count': 24, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'tray:bottom', 'id': 2083, 'image_count': 621, 'instance_count': 1018, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'glass_(drink_container):bottom', 'id': 2084, 'image_count': 125, 'instance_count': 144, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'television_set:bottom', 'id': 2085, 'image_count': 1549, 'instance_count': 1691, 'synset': 'bottom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'trash_can:bottom', 'id': 2086, 'image_count': 40, 'instance_count': 41, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'carton:bottom', 'id': 2087, 'image_count': 6, 'instance_count': 6, 'synset': 'bottom', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'basket:bottom', 'id': 2088, 'image_count': 97, 'instance_count': 112, 'synset': 'bottom', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'spoon:bowl', 'id': 2089, 'image_count': 958, 'instance_count': 1605, 'synset': 'bowl', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:bracket', 'id': 2090, 'image_count': 105, 'instance_count': 111, 'synset': 'bracket', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:bridge', 'id': 2091, 'image_count': 73, 'instance_count': 83, 'synset': 'bridge', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'broom:brush', 'id': 2092, 'image_count': 59, 'instance_count': 78, 'synset': 'brush', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'broom:brush_cap', 'id': 2093, 'image_count': 57, 'instance_count': 76, 'synset': 'brush_cap', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'belt:buckle', 'id': 2094, 'image_count': 519, 'instance_count': 580, 'synset': 'buckle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'watch:buckle', 'id': 2095, 'image_count': 214, 'instance_count': 239, 'synset': 'buckle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:bulb', 'id': 2096, 'image_count': 459, 'instance_count': 750, 'synset': 'bulb', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):bumper', 'id': 2097, 'image_count': 1274, 'instance_count': 3349, 'synset': 'bumper', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'telephone:button', 'id': 2098, 'image_count': 437, 'instance_count': 501, 'synset': 'button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'remote_control:button', 'id': 2099, 'image_count': 737, 'instance_count': 1109, 'synset': 'button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'television_set:button', 'id': 2100, 'image_count': 319, 'instance_count': 323, 'synset': 'button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cellular_telephone:button', 'id': 2101, 'image_count': 564, 'instance_count': 795, 'synset': 'button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'clock:cable', 'id': 2102, 'image_count': 4, 'instance_count': 4, 'synset': 'cable', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'blender:cable', 'id': 2103, 'image_count': 40, 'instance_count': 40, 'synset': 'cable', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'lamp:cable', 'id': 2104, 'image_count': 136, 'instance_count': 147, 'synset': 'cable', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'laptop_computer:cable', 'id': 2105, 'image_count': 275, 'instance_count': 297, 'synset': 'cable', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'earphone:cable', 'id': 2106, 'image_count': 150, 'instance_count': 165, 'synset': 'cable', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'kettle:cable', 'id': 2107, 'image_count': 3, 'instance_count': 3, 'synset': 'cable', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'laptop_computer:camera', 'id': 2108, 'image_count': 376, 'instance_count': 395, 'synset': 'camera', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:canopy', 'id': 2109, 'image_count': 138, 'instance_count': 147, 'synset': 'canopy', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pen:cap', 'id': 2110, 'image_count': 190, 'instance_count': 381, 'synset': 'cap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:cap', 'id': 2111, 'image_count': 198, 'instance_count': 290, 'synset': 'cap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'carton:cap', 'id': 2112, 'image_count': 24, 'instance_count': 39, 'synset': 'cap', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bottle:cap', 'id': 2113, 'image_count': 1390, 'instance_count': 4486, 'synset': 'cap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:capsule', 'id': 2114, 'image_count': 9, 'instance_count': 9, 'synset': 'capsule', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'bottle:capsule', 'id': 2115, 'image_count': 149, 'instance_count': 190, 'synset': 'capsule', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'watch:case', 'id': 2116, 'image_count': 1391, 'instance_count': 1654, 'synset': 'case', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'clock:case', 'id': 2117, 'image_count': 1133, 'instance_count': 1455, 'synset': 'case', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pen:clip', 'id': 2118, 'image_count': 150, 'instance_count': 229, 'synset': 'clip', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:closure', 'id': 2119, 'image_count': 2, 'instance_count': 2, 'synset': 'closure', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'bottle:closure', 'id': 2120, 'image_count': 162, 'instance_count': 198, 'synset': 'closure', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pipe:colied_tube', 'id': 2121, 'image_count': 244, 'instance_count': 306, 'synset': 'colied_tube', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:control_panel', 'id': 2122, 'image_count': 721, 'instance_count': 776, 'synset': 'control_panel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bucket:cover', 'id': 2123, 'image_count': 88, 'instance_count': 105, 'synset': 'cover', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'jar:cover', 'id': 2124, 'image_count': 8, 'instance_count': 23, 'synset': 'cover', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'blender:cover', 'id': 2125, 'image_count': 80, 'instance_count': 89, 'synset': 'cover', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):cover', 'id': 2126, 'image_count': 2, 'instance_count': 2, 'synset': 'cover', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'basket:cover', 'id': 2127, 'image_count': 60, 'instance_count': 70, 'synset': 'cover', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'book:cover', 'id': 2128, 'image_count': 1746, 'instance_count': 27036, 'synset': 'cover', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'sweater:cuff', 'id': 2129, 'image_count': 582, 'instance_count': 769, 'synset': 'cuff', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'blender:cup', 'id': 2130, 'image_count': 69, 'instance_count': 73, 'synset': 'cup', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'clock:decoration', 'id': 2131, 'image_count': 15, 'instance_count': 19, 'synset': 'decoration', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'watch:dial', 'id': 2132, 'image_count': 137, 'instance_count': 149, 'synset': 'dial', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:dial', 'id': 2133, 'image_count': 156, 'instance_count': 189, 'synset': 'dial', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:door_handle', 'id': 2134, 'image_count': 407, 'instance_count': 450, 'synset': 'door_handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:down_tube', 'id': 2135, 'image_count': 968, 'instance_count': 1276, 'synset': 'down_tube', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:drawer', 'id': 2136, 'image_count': 30, 'instance_count': 32, 'synset': 'drawer', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'mug:drawing', 'id': 2137, 'image_count': 244, 'instance_count': 346, 'synset': 'drawing', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:ear', 'id': 2138, 'image_count': 1511, 'instance_count': 1780, 'synset': 'ear', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'earphone:ear_pads', 'id': 2139, 'image_count': 292, 'instance_count': 360, 'synset': 'ear_pads', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pillow:embroidery', 'id': 2140, 'image_count': 535, 'instance_count': 734, 'synset': 'embroidery', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'belt:end_tip', 'id': 2141, 'image_count': 90, 'instance_count': 92, 'synset': 'end_tip', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pencil:eraser', 'id': 2142, 'image_count': 67, 'instance_count': 132, 'synset': 'eraser', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'dog:eye', 'id': 2143, 'image_count': 1202, 'instance_count': 1359, 'synset': 'eye', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:eyelet', 'id': 2144, 'image_count': 168, 'instance_count': 189, 'synset': 'eyelet', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'hammer:face', 'id': 2145, 'image_count': 14, 'instance_count': 16, 'synset': 'face', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'helmet:face_shield', 'id': 2146, 'image_count': 345, 'instance_count': 422, 'synset': 'face_shield', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:fan_box', 'id': 2147, 'image_count': 19, 'instance_count': 19, 'synset': 'fan_box', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'car_(automobile):fender', 'id': 2148, 'image_count': 1267, 'instance_count': 2992, 'synset': 'fender', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pencil:ferrule', 'id': 2149, 'image_count': 73, 'instance_count': 147, 'synset': 'ferrule', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'scissors:finger_hole', 'id': 2150, 'image_count': 623, 'instance_count': 1018, 'synset': 'finger_hole', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:fingerboard', 'id': 2151, 'image_count': 156, 'instance_count': 209, 'synset': 'fingerboard', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:finial', 'id': 2152, 'image_count': 281, 'instance_count': 349, 'synset': 'finial', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'clock:finial', 'id': 2153, 'image_count': 32, 'instance_count': 32, 'synset': 'finial', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'wallet:flap', 'id': 2154, 'image_count': 29, 'instance_count': 30, 'synset': 'flap', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:food_cup', 'id': 2155, 'image_count': 210, 'instance_count': 260, 'synset': 'food_cup', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:foot', 'id': 2156, 'image_count': 1176, 'instance_count': 1365, 'synset': 'foot', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'vase:foot', 'id': 2157, 'image_count': 1120, 'instance_count': 2029, 'synset': 'foot', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'ladder:foot', 'id': 2158, 'image_count': 34, 'instance_count': 36, 'synset': 'foot', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'stool:footrest', 'id': 2159, 'image_count': 168, 'instance_count': 269, 'synset': 'footrest', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:fork', 'id': 2160, 'image_count': 793, 'instance_count': 997, 'synset': 'fork', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'belt:frame', 'id': 2161, 'image_count': 143, 'instance_count': 148, 'synset': 'frame', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mirror:frame', 'id': 2162, 'image_count': 1344, 'instance_count': 2224, 'synset': 'frame', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'scarf:fringes', 'id': 2163, 'image_count': 187, 'instance_count': 214, 'synset': 'fringes', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:gear', 'id': 2164, 'image_count': 395, 'instance_count': 437, 'synset': 'gear', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):grille', 'id': 2165, 'image_count': 616, 'instance_count': 1016, 'synset': 'grille', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'hammer:grip', 'id': 2166, 'image_count': 2, 'instance_count': 2, 'synset': 'grip', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'pen:grip', 'id': 2167, 'image_count': 67, 'instance_count': 84, 'synset': 'grip', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'watch:hand', 'id': 2168, 'image_count': 83, 'instance_count': 123, 'synset': 'hand', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'clock:hand', 'id': 2169, 'image_count': 1476, 'instance_count': 1956, 'synset': 'hand', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plastic_bag:handle', 'id': 2170, 'image_count': 333, 'instance_count': 412, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:handle', 'id': 2171, 'image_count': 59, 'instance_count': 70, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'drill:handle', 'id': 2172, 'image_count': 14, 'instance_count': 15, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'hammer:handle', 'id': 2173, 'image_count': 21, 'instance_count': 30, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'scissors:handle', 'id': 2174, 'image_count': 605, 'instance_count': 971, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'broom:handle', 'id': 2175, 'image_count': 22, 'instance_count': 22, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'screwdriver:handle', 'id': 2176, 'image_count': 47, 'instance_count': 82, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bucket:handle', 'id': 2177, 'image_count': 248, 'instance_count': 287, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'handbag:handle', 'id': 2178, 'image_count': 1459, 'instance_count': 2287, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'wrench:handle', 'id': 2179, 'image_count': 30, 'instance_count': 68, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pliers:handle', 'id': 2180, 'image_count': 26, 'instance_count': 46, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'basket:handle', 'id': 2181, 'image_count': 441, 'instance_count': 628, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mug:handle', 'id': 2182, 'image_count': 690, 'instance_count': 1148, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'crate:handle', 'id': 2183, 'image_count': 92, 'instance_count': 163, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'jar:handle', 'id': 2184, 'image_count': 28, 'instance_count': 35, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'car_(automobile):handle', 'id': 2185, 'image_count': 539, 'instance_count': 728, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:handle', 'id': 2186, 'image_count': 1, 'instance_count': 1, 'synset': 'handle', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'cup:handle', 'id': 2187, 'image_count': 317, 'instance_count': 579, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'kettle:handle', 'id': 2188, 'image_count': 93, 'instance_count': 104, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'knife:handle', 'id': 2189, 'image_count': 1551, 'instance_count': 2813, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'spoon:handle', 'id': 2190, 'image_count': 925, 'instance_count': 1526, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):handle', 'id': 2191, 'image_count': 87, 'instance_count': 180, 'synset': 'handle', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:handle', 'id': 2192, 'image_count': 155, 'instance_count': 177, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'vase:handle', 'id': 2193, 'image_count': 168, 'instance_count': 289, 'synset': 'handle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:handlebar', 'id': 2194, 'image_count': 1144, 'instance_count': 1826, 'synset': 'handlebar', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:head', 'id': 2195, 'image_count': 1649, 'instance_count': 1981, 'synset': 'head', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'hammer:head', 'id': 2196, 'image_count': 21, 'instance_count': 25, 'synset': 'head', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'wrench:head', 'id': 2197, 'image_count': 29, 'instance_count': 65, 'synset': 'head', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):head', 'id': 2198, 'image_count': 25, 'instance_count': 40, 'synset': 'head', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bicycle:head_tube', 'id': 2199, 'image_count': 950, 'instance_count': 1355, 'synset': 'head_tube', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'earphone:headband', 'id': 2200, 'image_count': 175, 'instance_count': 221, 'synset': 'headband', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):headlight', 'id': 2201, 'image_count': 921, 'instance_count': 1866, 'synset': 'headlight', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:headstock', 'id': 2202, 'image_count': 141, 'instance_count': 180, 'synset': 'headstock', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:heel', 'id': 2203, 'image_count': 678, 'instance_count': 970, 'synset': 'heel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:heel', 'id': 2204, 'image_count': 28, 'instance_count': 29, 'synset': 'heel', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'plastic_bag:hem', 'id': 2205, 'image_count': 24, 'instance_count': 27, 'synset': 'hem', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'sweater:hem', 'id': 2206, 'image_count': 333, 'instance_count': 412, 'synset': 'hem', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'towel:hem', 'id': 2207, 'image_count': 171, 'instance_count': 212, 'synset': 'hem', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'belt:hole', 'id': 2208, 'image_count': 61, 'instance_count': 62, 'synset': 'hole', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'guitar:hole', 'id': 2209, 'image_count': 64, 'instance_count': 72, 'synset': 'hole', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'trash_can:hole', 'id': 2210, 'image_count': 140, 'instance_count': 154, 'synset': 'hole', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):hood', 'id': 2211, 'image_count': 1075, 'instance_count': 2449, 'synset': 'hood', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'earphone:housing', 'id': 2212, 'image_count': 173, 'instance_count': 205, 'synset': 'housing', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'can:inner_body', 'id': 2213, 'image_count': 59, 'instance_count': 70, 'synset': 'inner_body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bucket:inner_body', 'id': 2214, 'image_count': 347, 'instance_count': 464, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plastic_bag:inner_body', 'id': 2215, 'image_count': 219, 'instance_count': 269, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'handbag:inner_body', 'id': 2216, 'image_count': 112, 'instance_count': 118, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mug:inner_body', 'id': 2217, 'image_count': 535, 'instance_count': 819, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:inner_body', 'id': 2218, 'image_count': 22, 'instance_count': 23, 'synset': 'inner_body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'wallet:inner_body', 'id': 2219, 'image_count': 48, 'instance_count': 48, 'synset': 'inner_body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bowl:inner_body', 'id': 2220, 'image_count': 1500, 'instance_count': 3085, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:inner_body', 'id': 2221, 'image_count': 74, 'instance_count': 97, 'synset': 'inner_body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:inner_body', 'id': 2222, 'image_count': 14, 'instance_count': 14, 'synset': 'inner_body', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):inner_body', 'id': 2223, 'image_count': 1, 'instance_count': 1, 'synset': 'inner_body', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'glass_(drink_container):inner_body', 'id': 2224, 'image_count': 1208, 'instance_count': 2682, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'trash_can:inner_body', 'id': 2225, 'image_count': 319, 'instance_count': 339, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cup:inner_body', 'id': 2226, 'image_count': 785, 'instance_count': 1353, 'synset': 'inner_body', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:inner_body', 'id': 2227, 'image_count': 1, 'instance_count': 1, 'synset': 'inner_body', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'kettle:inner_body', 'id': 2228, 'image_count': 1, 'instance_count': 1, 'synset': 'inner_body', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'hat:inner_side', 'id': 2229, 'image_count': 173, 'instance_count': 196, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'crate:inner_side', 'id': 2230, 'image_count': 133, 'instance_count': 452, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'helmet:inner_side', 'id': 2231, 'image_count': 162, 'instance_count': 176, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'box:inner_side', 'id': 2232, 'image_count': 697, 'instance_count': 1163, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:inner_side', 'id': 2233, 'image_count': 36, 'instance_count': 36, 'synset': 'inner_side', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):inner_side', 'id': 2234, 'image_count': 167, 'instance_count': 318, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'basket:inner_side', 'id': 2235, 'image_count': 841, 'instance_count': 1283, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'carton:inner_side', 'id': 2236, 'image_count': 12, 'instance_count': 13, 'synset': 'inner_side', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'tray:inner_side', 'id': 2237, 'image_count': 727, 'instance_count': 1291, 'synset': 'inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plate:inner_wall', 'id': 2238, 'image_count': 1674, 'instance_count': 3444, 'synset': 'inner_wall', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'tray:inner_wall', 'id': 2239, 'image_count': 1, 'instance_count': 1, 'synset': 'inner_wall', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'shoe:insole', 'id': 2240, 'image_count': 84, 'instance_count': 101, 'synset': 'insole', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'slipper_(footwear):insole', 'id': 2241, 'image_count': 30, 'instance_count': 48, 'synset': 'insole', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pliers:jaw', 'id': 2242, 'image_count': 26, 'instance_count': 42, 'synset': 'jaw', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'pliers:joint', 'id': 2243, 'image_count': 17, 'instance_count': 26, 'synset': 'joint', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'calculator:key', 'id': 2244, 'image_count': 51, 'instance_count': 53, 'synset': 'key', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'guitar:key', 'id': 2245, 'image_count': 74, 'instance_count': 80, 'synset': 'key', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'laptop_computer:keyboard', 'id': 2246, 'image_count': 1348, 'instance_count': 1713, 'synset': 'keyboard', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:label', 'id': 2247, 'image_count': 186, 'instance_count': 231, 'synset': 'label', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:label', 'id': 2248, 'image_count': 1300, 'instance_count': 3448, 'synset': 'label', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'trash_can:label', 'id': 2249, 'image_count': 140, 'instance_count': 153, 'synset': 'label', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:lace', 'id': 2250, 'image_count': 1173, 'instance_count': 2322, 'synset': 'lace', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pencil:lead', 'id': 2251, 'image_count': 69, 'instance_count': 147, 'synset': 'lead', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):left_button', 'id': 2252, 'image_count': 823, 'instance_count': 949, 'synset': 'left_button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:leg', 'id': 2253, 'image_count': 524, 'instance_count': 755, 'synset': 'leg', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bench:leg', 'id': 2254, 'image_count': 1427, 'instance_count': 2243, 'synset': 'leg', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:leg', 'id': 2255, 'image_count': 1108, 'instance_count': 2646, 'synset': 'leg', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:leg', 'id': 2256, 'image_count': 1428, 'instance_count': 1713, 'synset': 'leg', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'stool:leg', 'id': 2257, 'image_count': 271, 'instance_count': 460, 'synset': 'leg', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'can:lid', 'id': 2258, 'image_count': 259, 'instance_count': 474, 'synset': 'lid', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'crate:lid', 'id': 2259, 'image_count': 35, 'instance_count': 69, 'synset': 'lid', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'box:lid', 'id': 2260, 'image_count': 1127, 'instance_count': 2259, 'synset': 'lid', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:lid', 'id': 2261, 'image_count': 321, 'instance_count': 1466, 'synset': 'lid', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):lid', 'id': 2262, 'image_count': 21, 'instance_count': 37, 'synset': 'lid', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'carton:lid', 'id': 2263, 'image_count': 11, 'instance_count': 16, 'synset': 'lid', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'trash_can:lid', 'id': 2264, 'image_count': 889, 'instance_count': 1110, 'synset': 'lid', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'kettle:lid', 'id': 2265, 'image_count': 84, 'instance_count': 101, 'synset': 'lid', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'fan:light', 'id': 2266, 'image_count': 150, 'instance_count': 160, 'synset': 'light', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:lining', 'id': 2267, 'image_count': 260, 'instance_count': 317, 'synset': 'lining', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'slipper_(footwear):lining', 'id': 2268, 'image_count': 15, 'instance_count': 22, 'synset': 'lining', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'hat:logo', 'id': 2269, 'image_count': 246, 'instance_count': 359, 'synset': 'logo', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):logo', 'id': 2270, 'image_count': 225, 'instance_count': 237, 'synset': 'logo', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'helmet:logo', 'id': 2271, 'image_count': 286, 'instance_count': 319, 'synset': 'logo', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:logo', 'id': 2272, 'image_count': 4, 'instance_count': 4, 'synset': 'logo', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'car_(automobile):logo', 'id': 2273, 'image_count': 287, 'instance_count': 336, 'synset': 'logo', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'remote_control:logo', 'id': 2274, 'image_count': 156, 'instance_count': 191, 'synset': 'logo', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'laptop_computer:logo', 'id': 2275, 'image_count': 680, 'instance_count': 819, 'synset': 'logo', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'belt:loop', 'id': 2276, 'image_count': 200, 'instance_count': 205, 'synset': 'loop', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bucket:loop', 'id': 2277, 'image_count': 137, 'instance_count': 149, 'synset': 'loop', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):loop', 'id': 2278, 'image_count': 3, 'instance_count': 4, 'synset': 'loop', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'broom:lower_bristles', 'id': 2279, 'image_count': 23, 'instance_count': 34, 'synset': 'lower_bristles', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'watch:lug', 'id': 2280, 'image_count': 177, 'instance_count': 191, 'synset': 'lug', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):lug', 'id': 2281, 'image_count': 24, 'instance_count': 33, 'synset': 'lug', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'car_(automobile):mirror', 'id': 2282, 'image_count': 1016, 'instance_count': 2174, 'synset': 'mirror', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:motor', 'id': 2283, 'image_count': 233, 'instance_count': 262, 'synset': 'motor', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'vase:mouth', 'id': 2284, 'image_count': 1336, 'instance_count': 3104, 'synset': 'mouth', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:neck', 'id': 2285, 'image_count': 1405, 'instance_count': 4366, 'synset': 'neck', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'spoon:neck', 'id': 2286, 'image_count': 899, 'instance_count': 1398, 'synset': 'neck', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'vase:neck', 'id': 2287, 'image_count': 1171, 'instance_count': 2608, 'synset': 'neck', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:neck', 'id': 2288, 'image_count': 144, 'instance_count': 173, 'synset': 'neck', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:neck', 'id': 2289, 'image_count': 1390, 'instance_count': 1644, 'synset': 'neck', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'sweater:neckband', 'id': 2290, 'image_count': 628, 'instance_count': 931, 'synset': 'neckband', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'dog:nose', 'id': 2291, 'image_count': 1339, 'instance_count': 1535, 'synset': 'nose', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pipe:nozzle', 'id': 2292, 'image_count': 150, 'instance_count': 171, 'synset': 'nozzle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pipe:nozzle_stem', 'id': 2293, 'image_count': 143, 'instance_count': 161, 'synset': 'nozzle_stem', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'tray:outer_side', 'id': 2294, 'image_count': 380, 'instance_count': 856, 'synset': 'outer_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:outsole', 'id': 2295, 'image_count': 1632, 'instance_count': 4759, 'synset': 'outsole', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'slipper_(footwear):outsole', 'id': 2296, 'image_count': 36, 'instance_count': 51, 'synset': 'outsole', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'book:page', 'id': 2297, 'image_count': 1415, 'instance_count': 5904, 'synset': 'page', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:pedal', 'id': 2298, 'image_count': 746, 'instance_count': 904, 'synset': 'pedal', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'trash_can:pedal', 'id': 2299, 'image_count': 82, 'instance_count': 82, 'synset': 'pedal', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'fan:pedestal_column', 'id': 2300, 'image_count': 130, 'instance_count': 148, 'synset': 'pedestal_column', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'clock:pediment', 'id': 2301, 'image_count': 10, 'instance_count': 10, 'synset': 'pediment', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'guitar:pickguard', 'id': 2302, 'image_count': 46, 'instance_count': 48, 'synset': 'pickguard', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'lamp:pipe', 'id': 2303, 'image_count': 1022, 'instance_count': 1440, 'synset': 'pipe', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'hat:pom_pom', 'id': 2304, 'image_count': 108, 'instance_count': 114, 'synset': 'pom_pom', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'belt:prong', 'id': 2305, 'image_count': 101, 'instance_count': 101, 'synset': 'prong', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'can:pull_tab', 'id': 2306, 'image_count': 127, 'instance_count': 181, 'synset': 'pull_tab', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:punt', 'id': 2307, 'image_count': 3, 'instance_count': 3, 'synset': 'punt', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'bottle:punt', 'id': 2308, 'image_count': 29, 'instance_count': 29, 'synset': 'punt', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'soap:push_pull_cap', 'id': 2309, 'image_count': 189, 'instance_count': 240, 'synset': 'push_pull_cap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:quarter', 'id': 2310, 'image_count': 1585, 'instance_count': 4285, 'synset': 'quarter', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:rail', 'id': 2311, 'image_count': 471, 'instance_count': 674, 'synset': 'rail', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'ladder:rail', 'id': 2312, 'image_count': 417, 'instance_count': 493, 'synset': 'rail', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):right_button', 'id': 2313, 'image_count': 781, 'instance_count': 899, 'synset': 'right_button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'can:rim', 'id': 2314, 'image_count': 292, 'instance_count': 548, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bucket:rim', 'id': 2315, 'image_count': 451, 'instance_count': 625, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'hat:rim', 'id': 2316, 'image_count': 795, 'instance_count': 1319, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'handbag:rim', 'id': 2317, 'image_count': 150, 'instance_count': 155, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mug:rim', 'id': 2318, 'image_count': 645, 'instance_count': 1064, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bowl:rim', 'id': 2319, 'image_count': 1559, 'instance_count': 3330, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'helmet:rim', 'id': 2320, 'image_count': 331, 'instance_count': 386, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:rim', 'id': 2321, 'image_count': 135, 'instance_count': 201, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):rim', 'id': 2322, 'image_count': 171, 'instance_count': 330, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):rim', 'id': 2323, 'image_count': 1070, 'instance_count': 2135, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plate:rim', 'id': 2324, 'image_count': 1652, 'instance_count': 3843, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'glass_(drink_container):rim', 'id': 2325, 'image_count': 1315, 'instance_count': 2926, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'tray:rim', 'id': 2326, 'image_count': 774, 'instance_count': 1617, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'drum_(musical_instrument):rim', 'id': 2327, 'image_count': 21, 'instance_count': 40, 'synset': 'rim', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'trash_can:rim', 'id': 2328, 'image_count': 428, 'instance_count': 462, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cup:rim', 'id': 2329, 'image_count': 1011, 'instance_count': 1977, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:rim', 'id': 2330, 'image_count': 1, 'instance_count': 1, 'synset': 'rim', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'basket:rim', 'id': 2331, 'image_count': 1236, 'instance_count': 2420, 'synset': 'rim', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:ring', 'id': 2332, 'image_count': 1, 'instance_count': 1, 'synset': 'ring', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'broom:ring', 'id': 2333, 'image_count': 13, 'instance_count': 19, 'synset': 'ring', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bottle:ring', 'id': 2334, 'image_count': 253, 'instance_count': 308, 'synset': 'ring', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'fan:rod', 'id': 2335, 'image_count': 45, 'instance_count': 49, 'synset': 'rod', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'tissue_paper:roll', 'id': 2336, 'image_count': 23, 'instance_count': 30, 'synset': 'roll', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'tape_(sticky_cloth_or_paper):roll', 'id': 2337, 'image_count': 66, 'instance_count': 83, 'synset': 'roll', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'car_(automobile):roof', 'id': 2338, 'image_count': 1326, 'instance_count': 3799, 'synset': 'roof', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'sponge:rough_surface', 'id': 2339, 'image_count': 46, 'instance_count': 50, 'synset': 'rough_surface', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'car_(automobile):runningboard', 'id': 2340, 'image_count': 181, 'instance_count': 200, 'synset': 'runningboard', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:saddle', 'id': 2341, 'image_count': 963, 'instance_count': 1447, 'synset': 'saddle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'telephone:screen', 'id': 2342, 'image_count': 338, 'instance_count': 399, 'synset': 'screen', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'cellular_telephone:screen', 'id': 2343, 'image_count': 907, 'instance_count': 1313, 'synset': 'screen', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'laptop_computer:screen', 'id': 2344, 'image_count': 1236, 'instance_count': 1576, 'synset': 'screen', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'scissors:screw', 'id': 2345, 'image_count': 447, 'instance_count': 662, 'synset': 'screw', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):scroll_wheel', 'id': 2346, 'image_count': 699, 'instance_count': 772, 'synset': 'scroll_wheel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'blender:seal_ring', 'id': 2347, 'image_count': 109, 'instance_count': 126, 'synset': 'seal_ring', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:seat', 'id': 2348, 'image_count': 1277, 'instance_count': 4054, 'synset': 'seat', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bench:seat', 'id': 2349, 'image_count': 1642, 'instance_count': 3012, 'synset': 'seat', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'stool:seat', 'id': 2350, 'image_count': 269, 'instance_count': 495, 'synset': 'seat', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):seat', 'id': 2351, 'image_count': 64, 'instance_count': 66, 'synset': 'seat', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bicycle:seat_stay', 'id': 2352, 'image_count': 604, 'instance_count': 706, 'synset': 'seat_stay', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bicycle:seat_tube', 'id': 2353, 'image_count': 920, 'instance_count': 1256, 'synset': 'seat_tube', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:shade', 'id': 2354, 'image_count': 1542, 'instance_count': 2938, 'synset': 'shade', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:shade_cap', 'id': 2355, 'image_count': 405, 'instance_count': 531, 'synset': 'shade_cap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:shade_inner_side', 'id': 2356, 'image_count': 373, 'instance_count': 472, 'synset': 'shade_inner_side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'broom:shaft', 'id': 2357, 'image_count': 72, 'instance_count': 106, 'synset': 'shaft', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'screwdriver:shank', 'id': 2358, 'image_count': 45, 'instance_count': 78, 'synset': 'shank', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'table:shelf', 'id': 2359, 'image_count': 25, 'instance_count': 27, 'synset': 'shelf', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'sweater:shoulder', 'id': 2360, 'image_count': 704, 'instance_count': 1169, 'synset': 'shoulder', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:shoulder', 'id': 2361, 'image_count': 215, 'instance_count': 295, 'synset': 'shoulder', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:shoulder', 'id': 2362, 'image_count': 1532, 'instance_count': 4666, 'synset': 'shoulder', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'crate:side', 'id': 2363, 'image_count': 235, 'instance_count': 1645, 'synset': 'side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:side', 'id': 2364, 'image_count': 73, 'instance_count': 80, 'synset': 'side', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'box:side', 'id': 2365, 'image_count': 1603, 'instance_count': 6566, 'synset': 'side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:side', 'id': 2366, 'image_count': 440, 'instance_count': 491, 'synset': 'side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pan_(for_cooking):side', 'id': 2367, 'image_count': 141, 'instance_count': 388, 'synset': 'side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'television_set:side', 'id': 2368, 'image_count': 1355, 'instance_count': 1489, 'synset': 'side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'carton:side', 'id': 2369, 'image_count': 56, 'instance_count': 174, 'synset': 'side', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'basket:side', 'id': 2370, 'image_count': 1440, 'instance_count': 3304, 'synset': 'side', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):side_button', 'id': 2371, 'image_count': 153, 'instance_count': 155, 'synset': 'side_button', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):sign', 'id': 2372, 'image_count': 94, 'instance_count': 99, 'synset': 'sign', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'soap:sipper', 'id': 2373, 'image_count': 3, 'instance_count': 3, 'synset': 'sipper', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'bottle:sipper', 'id': 2374, 'image_count': 41, 'instance_count': 41, 'synset': 'sipper', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'chair:skirt', 'id': 2375, 'image_count': 37, 'instance_count': 43, 'synset': 'skirt', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'sweater:sleeve', 'id': 2376, 'image_count': 808, 'instance_count': 1374, 'synset': 'sleeve', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'earphone:slider', 'id': 2377, 'image_count': 114, 'instance_count': 119, 'synset': 'slider', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:spindle', 'id': 2378, 'image_count': 192, 'instance_count': 226, 'synset': 'spindle', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):splashboard', 'id': 2379, 'image_count': 73, 'instance_count': 75, 'synset': 'splashboard', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:spout', 'id': 2380, 'image_count': 48, 'instance_count': 52, 'synset': 'spout', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'soap:spout', 'id': 2381, 'image_count': 25, 'instance_count': 28, 'synset': 'spout', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'kettle:spout', 'id': 2382, 'image_count': 70, 'instance_count': 82, 'synset': 'spout', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bottle:spout', 'id': 2383, 'image_count': 122, 'instance_count': 139, 'synset': 'spout', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):steeringwheel', 'id': 2384, 'image_count': 58, 'instance_count': 61, 'synset': 'steeringwheel', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bicycle:stem', 'id': 2385, 'image_count': 485, 'instance_count': 578, 'synset': 'stem', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'stool:step', 'id': 2386, 'image_count': 11, 'instance_count': 12, 'synset': 'step', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'ladder:step', 'id': 2387, 'image_count': 374, 'instance_count': 436, 'synset': 'step', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:sticker', 'id': 2388, 'image_count': 233, 'instance_count': 716, 'synset': 'sticker', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:stile', 'id': 2389, 'image_count': 593, 'instance_count': 879, 'synset': 'stile', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'hat:strap', 'id': 2390, 'image_count': 159, 'instance_count': 186, 'synset': 'strap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'watch:strap', 'id': 2391, 'image_count': 1611, 'instance_count': 2012, 'synset': 'strap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'helmet:strap', 'id': 2392, 'image_count': 419, 'instance_count': 517, 'synset': 'strap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'slipper_(footwear):strap', 'id': 2393, 'image_count': 5, 'instance_count': 13, 'synset': 'strap', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'belt:strap', 'id': 2394, 'image_count': 1759, 'instance_count': 2880, 'synset': 'strap', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'chair:stretcher', 'id': 2395, 'image_count': 463, 'instance_count': 749, 'synset': 'stretcher', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:stretcher', 'id': 2396, 'image_count': 133, 'instance_count': 151, 'synset': 'stretcher', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bench:stretcher', 'id': 2397, 'image_count': 313, 'instance_count': 368, 'synset': 'stretcher', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'guitar:string', 'id': 2398, 'image_count': 41, 'instance_count': 44, 'synset': 'string', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'fan:string', 'id': 2399, 'image_count': 28, 'instance_count': 28, 'synset': 'string', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:switch', 'id': 2400, 'image_count': 110, 'instance_count': 122, 'synset': 'switch', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'lamp:switch', 'id': 2401, 'image_count': 34, 'instance_count': 34, 'synset': 'switch', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'kettle:switch', 'id': 2402, 'image_count': 8, 'instance_count': 9, 'synset': 'switch', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'chair:swivel', 'id': 2403, 'image_count': 45, 'instance_count': 58, 'synset': 'swivel', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bench:table_top', 'id': 2404, 'image_count': 50, 'instance_count': 57, 'synset': 'table_top', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'dog:tail', 'id': 2405, 'image_count': 894, 'instance_count': 1013, 'synset': 'tail', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):taillight', 'id': 2406, 'image_count': 866, 'instance_count': 1707, 'synset': 'taillight', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):tank', 'id': 2407, 'image_count': 43, 'instance_count': 43, 'synset': 'tank', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'carton:tapering_top', 'id': 2408, 'image_count': 40, 'instance_count': 59, 'synset': 'tapering_top', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'dog:teeth', 'id': 2409, 'image_count': 188, 'instance_count': 191, 'synset': 'teeth', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'towel:terry_bar', 'id': 2410, 'image_count': 70, 'instance_count': 87, 'synset': 'terry_bar', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'can:text', 'id': 2411, 'image_count': 224, 'instance_count': 400, 'synset': 'text', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'plastic_bag:text', 'id': 2412, 'image_count': 353, 'instance_count': 478, 'synset': 'text', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mug:text', 'id': 2413, 'image_count': 114, 'instance_count': 127, 'synset': 'text', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'newspaper:text', 'id': 2414, 'image_count': 350, 'instance_count': 771, 'synset': 'text', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'jar:text', 'id': 2415, 'image_count': 143, 'instance_count': 250, 'synset': 'text', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'carton:text', 'id': 2416, 'image_count': 41, 'instance_count': 104, 'synset': 'text', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'shoe:throat', 'id': 2417, 'image_count': 706, 'instance_count': 965, 'synset': 'throat', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:time_display', 'id': 2418, 'image_count': 648, 'instance_count': 693, 'synset': 'time_display', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'spoon:tip', 'id': 2419, 'image_count': 634, 'instance_count': 888, 'synset': 'tip', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'pen:tip', 'id': 2420, 'image_count': 150, 'instance_count': 209, 'synset': 'tip', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'screwdriver:tip', 'id': 2421, 'image_count': 40, 'instance_count': 67, 'synset': 'tip', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'shoe:toe_box', 'id': 2422, 'image_count': 1536, 'instance_count': 4008, 'synset': 'toe_box', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'slipper_(footwear):toe_box', 'id': 2423, 'image_count': 32, 'instance_count': 47, 'synset': 'toe_box', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'shoe:tongue', 'id': 2424, 'image_count': 875, 'instance_count': 1545, 'synset': 'tongue', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'bottle:top', 'id': 2425, 'image_count': 234, 'instance_count': 289, 'synset': 'top', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:top', 'id': 2426, 'image_count': 337, 'instance_count': 368, 'synset': 'top', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'soap:top', 'id': 2427, 'image_count': 9, 'instance_count': 9, 'synset': 'top', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'television_set:top', 'id': 2428, 'image_count': 1185, 'instance_count': 1292, 'synset': 'top', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'table:top', 'id': 2429, 'image_count': 1656, 'instance_count': 2365, 'synset': 'top', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'carton:top', 'id': 2430, 'image_count': 30, 'instance_count': 51, 'synset': 'top', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'ladder:top_cap', 'id': 2431, 'image_count': 41, 'instance_count': 44, 'synset': 'top_cap', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'bicycle:top_tube', 'id': 2432, 'image_count': 890, 'instance_count': 1205, 'synset': 'top_tube', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'laptop_computer:touchpad', 'id': 2433, 'image_count': 1019, 'instance_count': 1201, 'synset': 'touchpad', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):trunk', 'id': 2434, 'image_count': 853, 'instance_count': 1587, 'synset': 'trunk', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):turnsignal', 'id': 2435, 'image_count': 308, 'instance_count': 367, 'synset': 'turnsignal', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'microwave_oven:turntable', 'id': 2436, 'image_count': 22, 'instance_count': 22, 'synset': 'turntable', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'shoe:vamp', 'id': 2437, 'image_count': 1580, 'instance_count': 4159, 'synset': 'vamp', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'slipper_(footwear):vamp', 'id': 2438, 'image_count': 50, 'instance_count': 91, 'synset': 'vamp', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'blender:vapour_cover', 'id': 2439, 'image_count': 91, 'instance_count': 105, 'synset': 'vapour_cover', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'hat:visor', 'id': 2440, 'image_count': 777, 'instance_count': 1522, 'synset': 'visor', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'helmet:visor', 'id': 2441, 'image_count': 610, 'instance_count': 776, 'synset': 'visor', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'shoe:welt', 'id': 2442, 'image_count': 67, 'instance_count': 69, 'synset': 'welt', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'chair:wheel', 'id': 2443, 'image_count': 52, 'instance_count': 63, 'synset': 'wheel', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'car_(automobile):wheel', 'id': 2444, 'image_count': 1300, 'instance_count': 3331, 'synset': 'wheel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'trash_can:wheel', 'id': 2445, 'image_count': 51, 'instance_count': 62, 'synset': 'wheel', 'frequency': 'c', 'supercategory': 'PART'}, {'name': 'table:wheel', 'id': 2446, 'image_count': 5, 'instance_count': 6, 'synset': 'wheel', 'frequency': 'r', 'supercategory': 'PART'}, {'name': 'bicycle:wheel', 'id': 2447, 'image_count': 1547, 'instance_count': 3006, 'synset': 'wheel', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'watch:window', 'id': 2448, 'image_count': 213, 'instance_count': 246, 'synset': 'window', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):window', 'id': 2449, 'image_count': 1253, 'instance_count': 2994, 'synset': 'window', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):windowpane', 'id': 2450, 'image_count': 460, 'instance_count': 620, 'synset': 'windowpane', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):windshield', 'id': 2451, 'image_count': 1366, 'instance_count': 4220, 'synset': 'windshield', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'car_(automobile):wiper', 'id': 2452, 'image_count': 326, 'instance_count': 427, 'synset': 'wiper', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'mouse_(computer_equipment):wire', 'id': 2453, 'image_count': 233, 'instance_count': 259, 'synset': 'wire', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'sweater:yoke', 'id': 2454, 'image_count': 767, 'instance_count': 1306, 'synset': 'yoke', 'frequency': 'f', 'supercategory': 'PART'}, {'name': 'handbag:zip', 'id': 2455, 'image_count': 138, 'instance_count': 148, 'synset': 'zip', 'frequency': 'f', 'supercategory': 'PART'}]
PACO_PART_CATEGORIES = [{'supercategory': 'PART', 'id': 0, 'name': 'antenna'}, {'supercategory': 'PART', 'id': 1, 'name': 'apron'}, {'supercategory': 'PART', 'id': 2, 'name': 'arm'}, {'supercategory': 'PART', 'id': 3, 'name': 'back'}, {'supercategory': 'PART', 'id': 4, 'name': 'back_cover'}, {'supercategory': 'PART', 'id': 5, 'name': 'backstay'}, {'supercategory': 'PART', 'id': 6, 'name': 'bar'}, {'supercategory': 'PART', 'id': 7, 'name': 'barrel'}, {'supercategory': 'PART', 'id': 8, 'name': 'base'}, {'supercategory': 'PART', 'id': 9, 'name': 'base_panel'}, {'supercategory': 'PART', 'id': 10, 'name': 'basket'}, {'supercategory': 'PART', 'id': 11, 'name': 'bezel'}, {'supercategory': 'PART', 'id': 12, 'name': 'blade'}, {'supercategory': 'PART', 'id': 13, 'name': 'body'}, {'supercategory': 'PART', 'id': 14, 'name': 'border'}, {'supercategory': 'PART', 'id': 15, 'name': 'bottom'}, {'supercategory': 'PART', 'id': 16, 'name': 'bowl'}, {'supercategory': 'PART', 'id': 17, 'name': 'bracket'}, {'supercategory': 'PART', 'id': 18, 'name': 'bridge'}, {'supercategory': 'PART', 'id': 19, 'name': 'brush'}, {'supercategory': 'PART', 'id': 20, 'name': 'brush_cap'}, {'supercategory': 'PART', 'id': 21, 'name': 'buckle'}, {'supercategory': 'PART', 'id': 22, 'name': 'bulb'}, {'supercategory': 'PART', 'id': 23, 'name': 'bumper'}, {'supercategory': 'PART', 'id': 24, 'name': 'button'}, {'supercategory': 'PART', 'id': 25, 'name': 'cable'}, {'supercategory': 'PART', 'id': 26, 'name': 'camera'}, {'supercategory': 'PART', 'id': 27, 'name': 'canopy'}, {'supercategory': 'PART', 'id': 28, 'name': 'cap'}, {'supercategory': 'PART', 'id': 29, 'name': 'capsule'}, {'supercategory': 'PART', 'id': 30, 'name': 'case'}, {'supercategory': 'PART', 'id': 31, 'name': 'clip'}, {'supercategory': 'PART', 'id': 32, 'name': 'closure'}, {'supercategory': 'PART', 'id': 33, 'name': 'colied_tube'}, {'supercategory': 'PART', 'id': 34, 'name': 'control_panel'}, {'supercategory': 'PART', 'id': 35, 'name': 'cover'}, {'supercategory': 'PART', 'id': 36, 'name': 'cuff'}, {'supercategory': 'PART', 'id': 37, 'name': 'cup'}, {'supercategory': 'PART', 'id': 38, 'name': 'decoration'}, {'supercategory': 'PART', 'id': 39, 'name': 'dial'}, {'supercategory': 'PART', 'id': 40, 'name': 'door_handle'}, {'supercategory': 'PART', 'id': 41, 'name': 'down_tube'}, {'supercategory': 'PART', 'id': 42, 'name': 'drawer'}, {'supercategory': 'PART', 'id': 43, 'name': 'drawing'}, {'supercategory': 'PART', 'id': 44, 'name': 'ear'}, {'supercategory': 'PART', 'id': 45, 'name': 'ear_pads'}, {'supercategory': 'PART', 'id': 46, 'name': 'embroidery'}, {'supercategory': 'PART', 'id': 47, 'name': 'end_tip'}, {'supercategory': 'PART', 'id': 48, 'name': 'eraser'}, {'supercategory': 'PART', 'id': 49, 'name': 'eye'}, {'supercategory': 'PART', 'id': 50, 'name': 'eyelet'}, {'supercategory': 'PART', 'id': 51, 'name': 'face'}, {'supercategory': 'PART', 'id': 52, 'name': 'face_shield'}, {'supercategory': 'PART', 'id': 53, 'name': 'fan_box'}, {'supercategory': 'PART', 'id': 54, 'name': 'fender'}, {'supercategory': 'PART', 'id': 55, 'name': 'ferrule'}, {'supercategory': 'PART', 'id': 56, 'name': 'finger_hole'}, {'supercategory': 'PART', 'id': 57, 'name': 'fingerboard'}, {'supercategory': 'PART', 'id': 58, 'name': 'finial'}, {'supercategory': 'PART', 'id': 59, 'name': 'flap'}, {'supercategory': 'PART', 'id': 60, 'name': 'food_cup'}, {'supercategory': 'PART', 'id': 61, 'name': 'foot'}, {'supercategory': 'PART', 'id': 62, 'name': 'footrest'}, {'supercategory': 'PART', 'id': 63, 'name': 'fork'}, {'supercategory': 'PART', 'id': 64, 'name': 'frame'}, {'supercategory': 'PART', 'id': 65, 'name': 'fringes'}, {'supercategory': 'PART', 'id': 66, 'name': 'gear'}, {'supercategory': 'PART', 'id': 67, 'name': 'grille'}, {'supercategory': 'PART', 'id': 68, 'name': 'grip'}, {'supercategory': 'PART', 'id': 69, 'name': 'hand'}, {'supercategory': 'PART', 'id': 70, 'name': 'handle'}, {'supercategory': 'PART', 'id': 71, 'name': 'handlebar'}, {'supercategory': 'PART', 'id': 72, 'name': 'head'}, {'supercategory': 'PART', 'id': 73, 'name': 'head_tube'}, {'supercategory': 'PART', 'id': 74, 'name': 'headband'}, {'supercategory': 'PART', 'id': 75, 'name': 'headlight'}, {'supercategory': 'PART', 'id': 76, 'name': 'headstock'}, {'supercategory': 'PART', 'id': 77, 'name': 'heel'}, {'supercategory': 'PART', 'id': 78, 'name': 'hem'}, {'supercategory': 'PART', 'id': 79, 'name': 'hole'}, {'supercategory': 'PART', 'id': 80, 'name': 'hood'}, {'supercategory': 'PART', 'id': 81, 'name': 'housing'}, {'supercategory': 'PART', 'id': 82, 'name': 'inner_body'}, {'supercategory': 'PART', 'id': 83, 'name': 'inner_side'}, {'supercategory': 'PART', 'id': 84, 'name': 'inner_wall'}, {'supercategory': 'PART', 'id': 85, 'name': 'insole'}, {'supercategory': 'PART', 'id': 86, 'name': 'jaw'}, {'supercategory': 'PART', 'id': 87, 'name': 'joint'}, {'supercategory': 'PART', 'id': 88, 'name': 'key'}, {'supercategory': 'PART', 'id': 89, 'name': 'keyboard'}, {'supercategory': 'PART', 'id': 90, 'name': 'label'}, {'supercategory': 'PART', 'id': 91, 'name': 'lace'}, {'supercategory': 'PART', 'id': 92, 'name': 'lead'}, {'supercategory': 'PART', 'id': 93, 'name': 'left_button'}, {'supercategory': 'PART', 'id': 94, 'name': 'leg'}, {'supercategory': 'PART', 'id': 95, 'name': 'lid'}, {'supercategory': 'PART', 'id': 96, 'name': 'light'}, {'supercategory': 'PART', 'id': 97, 'name': 'lining'}, {'supercategory': 'PART', 'id': 98, 'name': 'logo'}, {'supercategory': 'PART', 'id': 99, 'name': 'loop'}, {'supercategory': 'PART', 'id': 100, 'name': 'lower_bristles'}, {'supercategory': 'PART', 'id': 101, 'name': 'lug'}, {'supercategory': 'PART', 'id': 102, 'name': 'mirror'}, {'supercategory': 'PART', 'id': 103, 'name': 'motor'}, {'supercategory': 'PART', 'id': 104, 'name': 'mouth'}, {'supercategory': 'PART', 'id': 105, 'name': 'neck'}, {'supercategory': 'PART', 'id': 106, 'name': 'neckband'}, {'supercategory': 'PART', 'id': 107, 'name': 'nose'}, {'supercategory': 'PART', 'id': 108, 'name': 'nozzle'}, {'supercategory': 'PART', 'id': 109, 'name': 'nozzle_stem'}, {'supercategory': 'PART', 'id': 110, 'name': 'outer_side'}, {'supercategory': 'PART', 'id': 111, 'name': 'outsole'}, {'supercategory': 'PART', 'id': 112, 'name': 'page'}, {'supercategory': 'PART', 'id': 113, 'name': 'pedal'}, {'supercategory': 'PART', 'id': 114, 'name': 'pedestal_column'}, {'supercategory': 'PART', 'id': 115, 'name': 'pediment'}, {'supercategory': 'PART', 'id': 116, 'name': 'pickguard'}, {'supercategory': 'PART', 'id': 117, 'name': 'pipe'}, {'supercategory': 'PART', 'id': 118, 'name': 'pom_pom'}, {'supercategory': 'PART', 'id': 119, 'name': 'prong'}, {'supercategory': 'PART', 'id': 120, 'name': 'pull_tab'}, {'supercategory': 'PART', 'id': 121, 'name': 'punt'}, {'supercategory': 'PART', 'id': 122, 'name': 'push_pull_cap'}, {'supercategory': 'PART', 'id': 123, 'name': 'quarter'}, {'supercategory': 'PART', 'id': 124, 'name': 'rail'}, {'supercategory': 'PART', 'id': 125, 'name': 'right_button'}, {'supercategory': 'PART', 'id': 126, 'name': 'rim'}, {'supercategory': 'PART', 'id': 127, 'name': 'ring'}, {'supercategory': 'PART', 'id': 128, 'name': 'rod'}, {'supercategory': 'PART', 'id': 129, 'name': 'roll'}, {'supercategory': 'PART', 'id': 130, 'name': 'roof'}, {'supercategory': 'PART', 'id': 131, 'name': 'rough_surface'}, {'supercategory': 'PART', 'id': 132, 'name': 'runningboard'}, {'supercategory': 'PART', 'id': 133, 'name': 'saddle'}, {'supercategory': 'PART', 'id': 134, 'name': 'screen'}, {'supercategory': 'PART', 'id': 135, 'name': 'screw'}, {'supercategory': 'PART', 'id': 136, 'name': 'scroll_wheel'}, {'supercategory': 'PART', 'id': 137, 'name': 'seal_ring'}, {'supercategory': 'PART', 'id': 138, 'name': 'seat'}, {'supercategory': 'PART', 'id': 139, 'name': 'seat_stay'}, {'supercategory': 'PART', 'id': 140, 'name': 'seat_tube'}, {'supercategory': 'PART', 'id': 141, 'name': 'shade'}, {'supercategory': 'PART', 'id': 142, 'name': 'shade_cap'}, {'supercategory': 'PART', 'id': 143, 'name': 'shade_inner_side'}, {'supercategory': 'PART', 'id': 144, 'name': 'shaft'}, {'supercategory': 'PART', 'id': 145, 'name': 'shank'}, {'supercategory': 'PART', 'id': 146, 'name': 'shelf'}, {'supercategory': 'PART', 'id': 147, 'name': 'shoulder'}, {'supercategory': 'PART', 'id': 148, 'name': 'side'}, {'supercategory': 'PART', 'id': 149, 'name': 'side_button'}, {'supercategory': 'PART', 'id': 150, 'name': 'sign'}, {'supercategory': 'PART', 'id': 151, 'name': 'sipper'}, {'supercategory': 'PART', 'id': 152, 'name': 'skirt'}, {'supercategory': 'PART', 'id': 153, 'name': 'sleeve'}, {'supercategory': 'PART', 'id': 154, 'name': 'slider'}, {'supercategory': 'PART', 'id': 155, 'name': 'spindle'}, {'supercategory': 'PART', 'id': 156, 'name': 'splashboard'}, {'supercategory': 'PART', 'id': 157, 'name': 'spout'}, {'supercategory': 'PART', 'id': 158, 'name': 'steeringwheel'}, {'supercategory': 'PART', 'id': 159, 'name': 'stem'}, {'supercategory': 'PART', 'id': 160, 'name': 'step'}, {'supercategory': 'PART', 'id': 161, 'name': 'sticker'}, {'supercategory': 'PART', 'id': 162, 'name': 'stile'}, {'supercategory': 'PART', 'id': 163, 'name': 'strap'}, {'supercategory': 'PART', 'id': 164, 'name': 'stretcher'}, {'supercategory': 'PART', 'id': 165, 'name': 'string'}, {'supercategory': 'PART', 'id': 166, 'name': 'switch'}, {'supercategory': 'PART', 'id': 167, 'name': 'swivel'}, {'supercategory': 'PART', 'id': 168, 'name': 'table_top'}, {'supercategory': 'PART', 'id': 169, 'name': 'tail'}, {'supercategory': 'PART', 'id': 170, 'name': 'taillight'}, {'supercategory': 'PART', 'id': 171, 'name': 'tank'}, {'supercategory': 'PART', 'id': 172, 'name': 'tapering_top'}, {'supercategory': 'PART', 'id': 173, 'name': 'teeth'}, {'supercategory': 'PART', 'id': 174, 'name': 'terry_bar'}, {'supercategory': 'PART', 'id': 175, 'name': 'text'}, {'supercategory': 'PART', 'id': 176, 'name': 'throat'}, {'supercategory': 'PART', 'id': 177, 'name': 'time_display'}, {'supercategory': 'PART', 'id': 178, 'name': 'tip'}, {'supercategory': 'PART', 'id': 179, 'name': 'toe_box'}, {'supercategory': 'PART', 'id': 180, 'name': 'tongue'}, {'supercategory': 'PART', 'id': 181, 'name': 'top'}, {'supercategory': 'PART', 'id': 182, 'name': 'top_cap'}, {'supercategory': 'PART', 'id': 183, 'name': 'top_tube'}, {'supercategory': 'PART', 'id': 184, 'name': 'touchpad'}, {'supercategory': 'PART', 'id': 185, 'name': 'trunk'}, {'supercategory': 'PART', 'id': 186, 'name': 'turnsignal'}, {'supercategory': 'PART', 'id': 187, 'name': 'turntable'}, {'supercategory': 'PART', 'id': 188, 'name': 'vamp'}, {'supercategory': 'PART', 'id': 189, 'name': 'vapour_cover'}, {'supercategory': 'PART', 'id': 190, 'name': 'visor'}, {'supercategory': 'PART', 'id': 191, 'name': 'welt'}, {'supercategory': 'PART', 'id': 192, 'name': 'wheel'}, {'supercategory': 'PART', 'id': 193, 'name': 'window'}, {'supercategory': 'PART', 'id': 194, 'name': 'windowpane'}, {'supercategory': 'PART', 'id': 195, 'name': 'windshield'}, {'supercategory': 'PART', 'id': 196, 'name': 'wiper'}, {'supercategory': 'PART', 'id': 197, 'name': 'wire'}, {'supercategory': 'PART', 'id': 198, 'name': 'yoke'}, {'supercategory': 'PART', 'id': 199, 'name': 'zip'}]

PACO_ATTRIBUTES = [{'supercategory': 'ATTR', 'id': 0, 'name': 'black'}, {'supercategory': 'ATTR', 'id': 1, 'name': 'light_blue'}, {'supercategory': 'ATTR', 'id': 2, 'name': 'blue'}, {'supercategory': 'ATTR', 'id': 3, 'name': 'dark_blue'}, {'supercategory': 'ATTR', 'id': 4, 'name': 'light_brown'}, {'supercategory': 'ATTR', 'id': 5, 'name': 'brown'}, {'supercategory': 'ATTR', 'id': 6, 'name': 'dark_brown'}, {'supercategory': 'ATTR', 'id': 7, 'name': 'light_green'}, {'supercategory': 'ATTR', 'id': 8, 'name': 'green'}, {'supercategory': 'ATTR', 'id': 9, 'name': 'dark_green'}, {'supercategory': 'ATTR', 'id': 10, 'name': 'light_grey'}, {'supercategory': 'ATTR', 'id': 11, 'name': 'grey'}, {'supercategory': 'ATTR', 'id': 12, 'name': 'dark_grey'}, {'supercategory': 'ATTR', 'id': 13, 'name': 'light_orange'}, {'supercategory': 'ATTR', 'id': 14, 'name': 'orange'}, {'supercategory': 'ATTR', 'id': 15, 'name': 'dark_orange'}, {'supercategory': 'ATTR', 'id': 16, 'name': 'light_pink'}, {'supercategory': 'ATTR', 'id': 17, 'name': 'pink'}, {'supercategory': 'ATTR', 'id': 18, 'name': 'dark_pink'}, {'supercategory': 'ATTR', 'id': 19, 'name': 'light_purple'}, {'supercategory': 'ATTR', 'id': 20, 'name': 'purple'}, {'supercategory': 'ATTR', 'id': 21, 'name': 'dark_purple'}, {'supercategory': 'ATTR', 'id': 22, 'name': 'light_red'}, {'supercategory': 'ATTR', 'id': 23, 'name': 'red'}, {'supercategory': 'ATTR', 'id': 24, 'name': 'dark_red'}, {'supercategory': 'ATTR', 'id': 25, 'name': 'white'}, {'supercategory': 'ATTR', 'id': 26, 'name': 'light_yellow'}, {'supercategory': 'ATTR', 'id': 27, 'name': 'yellow'}, {'supercategory': 'ATTR', 'id': 28, 'name': 'dark_yellow'}, {'supercategory': 'ATTR', 'id': 29, 'name': 'other(color)'}, {'supercategory': 'ATTR', 'id': 30, 'name': 'plain'}, {'supercategory': 'ATTR', 'id': 31, 'name': 'striped'}, {'supercategory': 'ATTR', 'id': 32, 'name': 'dotted'}, {'supercategory': 'ATTR', 'id': 33, 'name': 'checkered'}, {'supercategory': 'ATTR', 'id': 34, 'name': 'woven'}, {'supercategory': 'ATTR', 'id': 35, 'name': 'studded'}, {'supercategory': 'ATTR', 'id': 36, 'name': 'perforated'}, {'supercategory': 'ATTR', 'id': 37, 'name': 'floral'}, {'supercategory': 'ATTR', 'id': 38, 'name': 'other(pattern_marking)'}, {'supercategory': 'ATTR', 'id': 39, 'name': 'logo'}, {'supercategory': 'ATTR', 'id': 40, 'name': 'text'}, {'supercategory': 'ATTR', 'id': 41, 'name': 'stone'}, {'supercategory': 'ATTR', 'id': 42, 'name': 'wood'}, {'supercategory': 'ATTR', 'id': 43, 'name': 'rattan'}, {'supercategory': 'ATTR', 'id': 44, 'name': 'fabric'}, {'supercategory': 'ATTR', 'id': 45, 'name': 'crochet'}, {'supercategory': 'ATTR', 'id': 46, 'name': 'wool'}, {'supercategory': 'ATTR', 'id': 47, 'name': 'leather'}, {'supercategory': 'ATTR', 'id': 48, 'name': 'velvet'}, {'supercategory': 'ATTR', 'id': 49, 'name': 'metal'}, {'supercategory': 'ATTR', 'id': 50, 'name': 'paper'}, {'supercategory': 'ATTR', 'id': 51, 'name': 'plastic'}, {'supercategory': 'ATTR', 'id': 52, 'name': 'glass'}, {'supercategory': 'ATTR', 'id': 53, 'name': 'ceramic'}, {'supercategory': 'ATTR', 'id': 54, 'name': 'other(material)'}, {'supercategory': 'ATTR', 'id': 55, 'name': 'opaque'}, {'supercategory': 'ATTR', 'id': 56, 'name': 'translucent'}, {'supercategory': 'ATTR', 'id': 57, 'name': 'transparent'}, {'supercategory': 'ATTR', 'id': 58, 'name': 'other(transparency)'}]
PACO_LVIS_CATEGORY_IMAGE_COUNT = [{'id': 23, 'image_count': 1791}, {'id': 35, 'image_count': 1775}, {'id': 41, 'image_count': 293}, {'id': 61, 'image_count': 1541}, {'id': 88, 'image_count': 1833}, {'id': 90, 'image_count': 1816}, {'id': 94, 'image_count': 1763}, {'id': 112, 'image_count': 233}, {'id': 127, 'image_count': 1819}, {'id': 133, 'image_count': 1791}, {'id': 139, 'image_count': 1822}, {'id': 143, 'image_count': 1730}, {'id': 156, 'image_count': 91}, {'id': 160, 'image_count': 680}, {'id': 184, 'image_count': 55}, {'id': 192, 'image_count': 425}, {'id': 207, 'image_count': 1820}, {'id': 220, 'image_count': 60}, {'id': 230, 'image_count': 1780}, {'id': 232, 'image_count': 1835}, {'id': 271, 'image_count': 1760}, {'id': 324, 'image_count': 237}, {'id': 344, 'image_count': 1440}, {'id': 378, 'image_count': 1823}, {'id': 396, 'image_count': 18}, {'id': 399, 'image_count': 27}, {'id': 409, 'image_count': 514}, {'id': 429, 'image_count': 549}, {'id': 498, 'image_count': 1830}, {'id': 521, 'image_count': 189}, {'id': 530, 'image_count': 24}, {'id': 544, 'image_count': 1828}, {'id': 556, 'image_count': 1816}, {'id': 591, 'image_count': 402}, {'id': 604, 'image_count': 95}, {'id': 615, 'image_count': 1778}, {'id': 621, 'image_count': 607}, {'id': 626, 'image_count': 1715}, {'id': 631, 'image_count': 1752}, {'id': 687, 'image_count': 948}, {'id': 694, 'image_count': 1814}, {'id': 705, 'image_count': 1277}, {'id': 708, 'image_count': 770}, {'id': 713, 'image_count': 1715}, {'id': 719, 'image_count': 426}, {'id': 751, 'image_count': 216}, {'id': 781, 'image_count': 322}, {'id': 782, 'image_count': 147}, {'id': 804, 'image_count': 1818}, {'id': 811, 'image_count': 1336}, {'id': 818, 'image_count': 1842}, {'id': 821, 'image_count': 28}, {'id': 881, 'image_count': 1039}, {'id': 898, 'image_count': 1392}, {'id': 921, 'image_count': 715}, {'id': 923, 'image_count': 676}, {'id': 926, 'image_count': 48}, {'id': 948, 'image_count': 1809}, {'id': 973, 'image_count': 56}, {'id': 979, 'image_count': 462}, {'id': 999, 'image_count': 83}, {'id': 1000, 'image_count': 1056}, {'id': 1018, 'image_count': 282}, {'id': 1042, 'image_count': 912}, {'id': 1050, 'image_count': 1757}, {'id': 1061, 'image_count': 129}, {'id': 1072, 'image_count': 740}, {'id': 1077, 'image_count': 1814}, {'id': 1093, 'image_count': 306}, {'id': 1108, 'image_count': 599}, {'id': 1117, 'image_count': 889}, {'id': 1139, 'image_count': 1772}, {'id': 1156, 'image_count': 109}, {'id': 1161, 'image_count': 1836}, {'id': 1196, 'image_count': 31}, {'id': 2000, 'image_count': 67}, {'id': 2001, 'image_count': 500}, {'id': 2002, 'image_count': 368}, {'id': 2003, 'image_count': 628}, {'id': 2004, 'image_count': 525}, {'id': 2005, 'image_count': 1688}, {'id': 2006, 'image_count': 5}, {'id': 2007, 'image_count': 320}, {'id': 2008, 'image_count': 656}, {'id': 2009, 'image_count': 1275}, {'id': 2010, 'image_count': 513}, {'id': 2011, 'image_count': 1200}, {'id': 2012, 'image_count': 1210}, {'id': 2013, 'image_count': 24}, {'id': 2014, 'image_count': 280}, {'id': 2015, 'image_count': 889}, {'id': 2016, 'image_count': 329}, {'id': 2017, 'image_count': 47}, {'id': 2018, 'image_count': 6}, {'id': 2019, 'image_count': 57}, {'id': 2020, 'image_count': 347}, {'id': 2021, 'image_count': 86}, {'id': 2022, 'image_count': 162}, {'id': 2023, 'image_count': 676}, {'id': 2024, 'image_count': 346}, {'id': 2025, 'image_count': 114}, {'id': 2026, 'image_count': 51}, {'id': 2027, 'image_count': 218}, {'id': 2028, 'image_count': 132}, {'id': 2029, 'image_count': 290}, {'id': 2030, 'image_count': 36}, {'id': 2031, 'image_count': 73}, {'id': 2032, 'image_count': 108}, {'id': 2033, 'image_count': 83}, {'id': 2034, 'image_count': 210}, {'id': 2035, 'image_count': 941}, {'id': 2036, 'image_count': 1258}, {'id': 2037, 'image_count': 1453}, {'id': 2038, 'image_count': 171}, {'id': 2039, 'image_count': 581}, {'id': 2040, 'image_count': 727}, {'id': 2041, 'image_count': 1653}, {'id': 2042, 'image_count': 355}, {'id': 2043, 'image_count': 10}, {'id': 2044, 'image_count': 13}, {'id': 2045, 'image_count': 551}, {'id': 2046, 'image_count': 1231}, {'id': 2047, 'image_count': 1671}, {'id': 2048, 'image_count': 146}, {'id': 2049, 'image_count': 1560}, {'id': 2050, 'image_count': 17}, {'id': 2051, 'image_count': 144}, {'id': 2052, 'image_count': 8}, {'id': 2053, 'image_count': 773}, {'id': 2054, 'image_count': 1712}, {'id': 2055, 'image_count': 713}, {'id': 2056, 'image_count': 635}, {'id': 2057, 'image_count': 1743}, {'id': 2058, 'image_count': 394}, {'id': 2059, 'image_count': 53}, {'id': 2060, 'image_count': 417}, {'id': 2061, 'image_count': 1254}, {'id': 2062, 'image_count': 759}, {'id': 2063, 'image_count': 400}, {'id': 2064, 'image_count': 279}, {'id': 2065, 'image_count': 595}, {'id': 2066, 'image_count': 95}, {'id': 2067, 'image_count': 1806}, {'id': 2068, 'image_count': 1735}, {'id': 2069, 'image_count': 1570}, {'id': 2070, 'image_count': 92}, {'id': 2071, 'image_count': 16}, {'id': 2072, 'image_count': 17}, {'id': 2073, 'image_count': 27}, {'id': 2074, 'image_count': 88}, {'id': 2075, 'image_count': 128}, {'id': 2076, 'image_count': 65}, {'id': 2077, 'image_count': 266}, {'id': 2078, 'image_count': 17}, {'id': 2079, 'image_count': 60}, {'id': 2080, 'image_count': 279}, {'id': 2081, 'image_count': 1345}, {'id': 2082, 'image_count': 23}, {'id': 2083, 'image_count': 621}, {'id': 2084, 'image_count': 125}, {'id': 2085, 'image_count': 1549}, {'id': 2086, 'image_count': 40}, {'id': 2087, 'image_count': 6}, {'id': 2088, 'image_count': 97}, {'id': 2089, 'image_count': 958}, {'id': 2090, 'image_count': 105}, {'id': 2091, 'image_count': 73}, {'id': 2092, 'image_count': 59}, {'id': 2093, 'image_count': 57}, {'id': 2094, 'image_count': 519}, {'id': 2095, 'image_count': 214}, {'id': 2096, 'image_count': 459}, {'id': 2097, 'image_count': 1274}, {'id': 2098, 'image_count': 437}, {'id': 2099, 'image_count': 737}, {'id': 2100, 'image_count': 319}, {'id': 2101, 'image_count': 564}, {'id': 2102, 'image_count': 4}, {'id': 2103, 'image_count': 40}, {'id': 2104, 'image_count': 136}, {'id': 2105, 'image_count': 275}, {'id': 2106, 'image_count': 150}, {'id': 2107, 'image_count': 3}, {'id': 2108, 'image_count': 376}, {'id': 2109, 'image_count': 138}, {'id': 2110, 'image_count': 190}, {'id': 2111, 'image_count': 198}, {'id': 2112, 'image_count': 24}, {'id': 2113, 'image_count': 1390}, {'id': 2114, 'image_count': 9}, {'id': 2115, 'image_count': 149}, {'id': 2116, 'image_count': 1391}, {'id': 2117, 'image_count': 1133}, {'id': 2118, 'image_count': 150}, {'id': 2119, 'image_count': 2}, {'id': 2120, 'image_count': 162}, {'id': 2121, 'image_count': 244}, {'id': 2122, 'image_count': 721}, {'id': 2123, 'image_count': 88}, {'id': 2124, 'image_count': 8}, {'id': 2125, 'image_count': 80}, {'id': 2126, 'image_count': 2}, {'id': 2127, 'image_count': 60}, {'id': 2128, 'image_count': 1746}, {'id': 2129, 'image_count': 582}, {'id': 2130, 'image_count': 69}, {'id': 2131, 'image_count': 15}, {'id': 2132, 'image_count': 137}, {'id': 2133, 'image_count': 156}, {'id': 2134, 'image_count': 407}, {'id': 2135, 'image_count': 968}, {'id': 2136, 'image_count': 30}, {'id': 2137, 'image_count': 244}, {'id': 2138, 'image_count': 1511}, {'id': 2139, 'image_count': 292}, {'id': 2140, 'image_count': 535}, {'id': 2141, 'image_count': 90}, {'id': 2142, 'image_count': 67}, {'id': 2143, 'image_count': 1202}, {'id': 2144, 'image_count': 168}, {'id': 2145, 'image_count': 14}, {'id': 2146, 'image_count': 345}, {'id': 2147, 'image_count': 19}, {'id': 2148, 'image_count': 1267}, {'id': 2149, 'image_count': 73}, {'id': 2150, 'image_count': 623}, {'id': 2151, 'image_count': 156}, {'id': 2152, 'image_count': 281}, {'id': 2153, 'image_count': 32}, {'id': 2154, 'image_count': 29}, {'id': 2155, 'image_count': 210}, {'id': 2156, 'image_count': 1176}, {'id': 2157, 'image_count': 1120}, {'id': 2158, 'image_count': 34}, {'id': 2159, 'image_count': 168}, {'id': 2160, 'image_count': 793}, {'id': 2161, 'image_count': 143}, {'id': 2162, 'image_count': 1344}, {'id': 2163, 'image_count': 187}, {'id': 2164, 'image_count': 395}, {'id': 2165, 'image_count': 616}, {'id': 2166, 'image_count': 2}, {'id': 2167, 'image_count': 67}, {'id': 2168, 'image_count': 83}, {'id': 2169, 'image_count': 1476}, {'id': 2170, 'image_count': 333}, {'id': 2171, 'image_count': 59}, {'id': 2172, 'image_count': 14}, {'id': 2173, 'image_count': 21}, {'id': 2174, 'image_count': 605}, {'id': 2175, 'image_count': 22}, {'id': 2176, 'image_count': 47}, {'id': 2177, 'image_count': 248}, {'id': 2178, 'image_count': 1459}, {'id': 2179, 'image_count': 30}, {'id': 2180, 'image_count': 26}, {'id': 2181, 'image_count': 441}, {'id': 2182, 'image_count': 690}, {'id': 2183, 'image_count': 92}, {'id': 2184, 'image_count': 28}, {'id': 2185, 'image_count': 539}, {'id': 2186, 'image_count': 1}, {'id': 2187, 'image_count': 317}, {'id': 2188, 'image_count': 93}, {'id': 2189, 'image_count': 1551}, {'id': 2190, 'image_count': 925}, {'id': 2191, 'image_count': 87}, {'id': 2192, 'image_count': 155}, {'id': 2193, 'image_count': 168}, {'id': 2194, 'image_count': 1144}, {'id': 2195, 'image_count': 1649}, {'id': 2196, 'image_count': 21}, {'id': 2197, 'image_count': 29}, {'id': 2198, 'image_count': 25}, {'id': 2199, 'image_count': 950}, {'id': 2200, 'image_count': 175}, {'id': 2201, 'image_count': 921}, {'id': 2202, 'image_count': 141}, {'id': 2203, 'image_count': 678}, {'id': 2204, 'image_count': 28}, {'id': 2205, 'image_count': 24}, {'id': 2206, 'image_count': 333}, {'id': 2207, 'image_count': 171}, {'id': 2208, 'image_count': 61}, {'id': 2209, 'image_count': 64}, {'id': 2210, 'image_count': 140}, {'id': 2211, 'image_count': 1075}, {'id': 2212, 'image_count': 173}, {'id': 2213, 'image_count': 59}, {'id': 2214, 'image_count': 347}, {'id': 2215, 'image_count': 219}, {'id': 2216, 'image_count': 112}, {'id': 2217, 'image_count': 535}, {'id': 2218, 'image_count': 22}, {'id': 2219, 'image_count': 48}, {'id': 2220, 'image_count': 1500}, {'id': 2221, 'image_count': 74}, {'id': 2222, 'image_count': 14}, {'id': 2223, 'image_count': 1}, {'id': 2224, 'image_count': 1208}, {'id': 2225, 'image_count': 319}, {'id': 2226, 'image_count': 785}, {'id': 2227, 'image_count': 1}, {'id': 2228, 'image_count': 1}, {'id': 2229, 'image_count': 173}, {'id': 2230, 'image_count': 133}, {'id': 2231, 'image_count': 162}, {'id': 2232, 'image_count': 697}, {'id': 2233, 'image_count': 36}, {'id': 2234, 'image_count': 167}, {'id': 2235, 'image_count': 841}, {'id': 2236, 'image_count': 12}, {'id': 2237, 'image_count': 727}, {'id': 2238, 'image_count': 1674}, {'id': 2239, 'image_count': 1}, {'id': 2240, 'image_count': 84}, {'id': 2241, 'image_count': 30}, {'id': 2242, 'image_count': 26}, {'id': 2243, 'image_count': 17}, {'id': 2244, 'image_count': 51}, {'id': 2245, 'image_count': 74}, {'id': 2246, 'image_count': 1348}, {'id': 2247, 'image_count': 186}, {'id': 2248, 'image_count': 1300}, {'id': 2249, 'image_count': 140}, {'id': 2250, 'image_count': 1173}, {'id': 2251, 'image_count': 69}, {'id': 2252, 'image_count': 823}, {'id': 2253, 'image_count': 524}, {'id': 2254, 'image_count': 1427}, {'id': 2255, 'image_count': 1108}, {'id': 2256, 'image_count': 1428}, {'id': 2257, 'image_count': 271}, {'id': 2258, 'image_count': 259}, {'id': 2259, 'image_count': 35}, {'id': 2260, 'image_count': 1127}, {'id': 2261, 'image_count': 321}, {'id': 2262, 'image_count': 21}, {'id': 2263, 'image_count': 11}, {'id': 2264, 'image_count': 889}, {'id': 2265, 'image_count': 84}, {'id': 2266, 'image_count': 150}, {'id': 2267, 'image_count': 260}, {'id': 2268, 'image_count': 15}, {'id': 2269, 'image_count': 246}, {'id': 2270, 'image_count': 225}, {'id': 2271, 'image_count': 286}, {'id': 2272, 'image_count': 4}, {'id': 2273, 'image_count': 287}, {'id': 2274, 'image_count': 156}, {'id': 2275, 'image_count': 680}, {'id': 2276, 'image_count': 200}, {'id': 2277, 'image_count': 137}, {'id': 2278, 'image_count': 3}, {'id': 2279, 'image_count': 23}, {'id': 2280, 'image_count': 177}, {'id': 2281, 'image_count': 24}, {'id': 2282, 'image_count': 1016}, {'id': 2283, 'image_count': 233}, {'id': 2284, 'image_count': 1336}, {'id': 2285, 'image_count': 1405}, {'id': 2286, 'image_count': 899}, {'id': 2287, 'image_count': 1171}, {'id': 2288, 'image_count': 144}, {'id': 2289, 'image_count': 1390}, {'id': 2290, 'image_count': 628}, {'id': 2291, 'image_count': 1339}, {'id': 2292, 'image_count': 150}, {'id': 2293, 'image_count': 143}, {'id': 2294, 'image_count': 380}, {'id': 2295, 'image_count': 1632}, {'id': 2296, 'image_count': 36}, {'id': 2297, 'image_count': 1415}, {'id': 2298, 'image_count': 746}, {'id': 2299, 'image_count': 82}, {'id': 2300, 'image_count': 130}, {'id': 2301, 'image_count': 10}, {'id': 2302, 'image_count': 46}, {'id': 2303, 'image_count': 1022}, {'id': 2304, 'image_count': 108}, {'id': 2305, 'image_count': 101}, {'id': 2306, 'image_count': 127}, {'id': 2307, 'image_count': 3}, {'id': 2308, 'image_count': 29}, {'id': 2309, 'image_count': 189}, {'id': 2310, 'image_count': 1585}, {'id': 2311, 'image_count': 471}, {'id': 2312, 'image_count': 417}, {'id': 2313, 'image_count': 781}, {'id': 2314, 'image_count': 292}, {'id': 2315, 'image_count': 451}, {'id': 2316, 'image_count': 795}, {'id': 2317, 'image_count': 150}, {'id': 2318, 'image_count': 645}, {'id': 2319, 'image_count': 1559}, {'id': 2320, 'image_count': 331}, {'id': 2321, 'image_count': 135}, {'id': 2322, 'image_count': 171}, {'id': 2323, 'image_count': 1070}, {'id': 2324, 'image_count': 1652}, {'id': 2325, 'image_count': 1315}, {'id': 2326, 'image_count': 774}, {'id': 2327, 'image_count': 21}, {'id': 2328, 'image_count': 428}, {'id': 2329, 'image_count': 1011}, {'id': 2330, 'image_count': 1}, {'id': 2331, 'image_count': 1236}, {'id': 2332, 'image_count': 1}, {'id': 2333, 'image_count': 13}, {'id': 2334, 'image_count': 253}, {'id': 2335, 'image_count': 45}, {'id': 2336, 'image_count': 23}, {'id': 2337, 'image_count': 66}, {'id': 2338, 'image_count': 1326}, {'id': 2339, 'image_count': 46}, {'id': 2340, 'image_count': 181}, {'id': 2341, 'image_count': 963}, {'id': 2342, 'image_count': 338}, {'id': 2343, 'image_count': 907}, {'id': 2344, 'image_count': 1236}, {'id': 2345, 'image_count': 447}, {'id': 2346, 'image_count': 699}, {'id': 2347, 'image_count': 109}, {'id': 2348, 'image_count': 1277}, {'id': 2349, 'image_count': 1642}, {'id': 2350, 'image_count': 269}, {'id': 2351, 'image_count': 64}, {'id': 2352, 'image_count': 604}, {'id': 2353, 'image_count': 920}, {'id': 2354, 'image_count': 1542}, {'id': 2355, 'image_count': 405}, {'id': 2356, 'image_count': 373}, {'id': 2357, 'image_count': 72}, {'id': 2358, 'image_count': 45}, {'id': 2359, 'image_count': 25}, {'id': 2360, 'image_count': 704}, {'id': 2361, 'image_count': 215}, {'id': 2362, 'image_count': 1532}, {'id': 2363, 'image_count': 235}, {'id': 2364, 'image_count': 73}, {'id': 2365, 'image_count': 1603}, {'id': 2366, 'image_count': 440}, {'id': 2367, 'image_count': 141}, {'id': 2368, 'image_count': 1355}, {'id': 2369, 'image_count': 56}, {'id': 2370, 'image_count': 1440}, {'id': 2371, 'image_count': 153}, {'id': 2372, 'image_count': 94}, {'id': 2373, 'image_count': 3}, {'id': 2374, 'image_count': 41}, {'id': 2375, 'image_count': 37}, {'id': 2376, 'image_count': 808}, {'id': 2377, 'image_count': 114}, {'id': 2378, 'image_count': 192}, {'id': 2379, 'image_count': 73}, {'id': 2380, 'image_count': 48}, {'id': 2381, 'image_count': 25}, {'id': 2382, 'image_count': 70}, {'id': 2383, 'image_count': 122}, {'id': 2384, 'image_count': 58}, {'id': 2385, 'image_count': 485}, {'id': 2386, 'image_count': 11}, {'id': 2387, 'image_count': 374}, {'id': 2388, 'image_count': 233}, {'id': 2389, 'image_count': 593}, {'id': 2390, 'image_count': 159}, {'id': 2391, 'image_count': 1611}, {'id': 2392, 'image_count': 419}, {'id': 2393, 'image_count': 5}, {'id': 2394, 'image_count': 1759}, {'id': 2395, 'image_count': 463}, {'id': 2396, 'image_count': 133}, {'id': 2397, 'image_count': 313}, {'id': 2398, 'image_count': 41}, {'id': 2399, 'image_count': 28}, {'id': 2400, 'image_count': 110}, {'id': 2401, 'image_count': 34}, {'id': 2402, 'image_count': 8}, {'id': 2403, 'image_count': 45}, {'id': 2404, 'image_count': 50}, {'id': 2405, 'image_count': 894}, {'id': 2406, 'image_count': 866}, {'id': 2407, 'image_count': 43}, {'id': 2408, 'image_count': 40}, {'id': 2409, 'image_count': 188}, {'id': 2410, 'image_count': 70}, {'id': 2411, 'image_count': 224}, {'id': 2412, 'image_count': 353}, {'id': 2413, 'image_count': 114}, {'id': 2414, 'image_count': 350}, {'id': 2415, 'image_count': 143}, {'id': 2416, 'image_count': 41}, {'id': 2417, 'image_count': 706}, {'id': 2418, 'image_count': 648}, {'id': 2419, 'image_count': 634}, {'id': 2420, 'image_count': 150}, {'id': 2421, 'image_count': 40}, {'id': 2422, 'image_count': 1536}, {'id': 2423, 'image_count': 32}, {'id': 2424, 'image_count': 875}, {'id': 2425, 'image_count': 234}, {'id': 2426, 'image_count': 337}, {'id': 2427, 'image_count': 9}, {'id': 2428, 'image_count': 1185}, {'id': 2429, 'image_count': 1656}, {'id': 2430, 'image_count': 30}, {'id': 2431, 'image_count': 41}, {'id': 2432, 'image_count': 890}, {'id': 2433, 'image_count': 1019}, {'id': 2434, 'image_count': 853}, {'id': 2435, 'image_count': 308}, {'id': 2436, 'image_count': 22}, {'id': 2437, 'image_count': 1580}, {'id': 2438, 'image_count': 50}, {'id': 2439, 'image_count': 91}, {'id': 2440, 'image_count': 777}, {'id': 2441, 'image_count': 610}, {'id': 2442, 'image_count': 67}, {'id': 2443, 'image_count': 52}, {'id': 2444, 'image_count': 1300}, {'id': 2445, 'image_count': 51}, {'id': 2446, 'image_count': 5}, {'id': 2447, 'image_count': 1547}, {'id': 2448, 'image_count': 213}, {'id': 2449, 'image_count': 1253}, {'id': 2450, 'image_count': 460}, {'id': 2451, 'image_count': 1366}, {'id': 2452, 'image_count': 326}, {'id': 2453, 'image_count': 233}, {'id': 2454, 'image_count': 767}, {'id': 2455, 'image_count': 138}]

PACO_LVIS_EGO4D_CATEGORY_IMAGE_COUNT = [{'id': 23, 'image_count': 1911}, {'id': 35, 'image_count': 2522}, {'id': 41, 'image_count': 411}, {'id': 61, 'image_count': 1718}, {'id': 88, 'image_count': 1864}, {'id': 90, 'image_count': 1891}, {'id': 94, 'image_count': 1952}, {'id': 112, 'image_count': 271}, {'id': 127, 'image_count': 2439}, {'id': 133, 'image_count': 3207}, {'id': 139, 'image_count': 2848}, {'id': 143, 'image_count': 2290}, {'id': 156, 'image_count': 197}, {'id': 160, 'image_count': 1430}, {'id': 184, 'image_count': 65}, {'id': 192, 'image_count': 625}, {'id': 207, 'image_count': 2171}, {'id': 220, 'image_count': 217}, {'id': 230, 'image_count': 1864}, {'id': 232, 'image_count': 2309}, {'id': 271, 'image_count': 1787}, {'id': 324, 'image_count': 262}, {'id': 344, 'image_count': 2037}, {'id': 378, 'image_count': 2018}, {'id': 396, 'image_count': 202}, {'id': 399, 'image_count': 60}, {'id': 409, 'image_count': 537}, {'id': 429, 'image_count': 588}, {'id': 498, 'image_count': 2088}, {'id': 521, 'image_count': 236}, {'id': 530, 'image_count': 232}, {'id': 544, 'image_count': 1874}, {'id': 556, 'image_count': 1865}, {'id': 591, 'image_count': 487}, {'id': 604, 'image_count': 211}, {'id': 615, 'image_count': 2356}, {'id': 621, 'image_count': 700}, {'id': 626, 'image_count': 1745}, {'id': 631, 'image_count': 2108}, {'id': 687, 'image_count': 1044}, {'id': 694, 'image_count': 1854}, {'id': 705, 'image_count': 1387}, {'id': 708, 'image_count': 863}, {'id': 713, 'image_count': 1800}, {'id': 719, 'image_count': 499}, {'id': 751, 'image_count': 540}, {'id': 781, 'image_count': 706}, {'id': 782, 'image_count': 353}, {'id': 804, 'image_count': 1885}, {'id': 811, 'image_count': 1500}, {'id': 818, 'image_count': 2549}, {'id': 821, 'image_count': 216}, {'id': 881, 'image_count': 1118}, {'id': 898, 'image_count': 1446}, {'id': 921, 'image_count': 721}, {'id': 923, 'image_count': 1127}, {'id': 926, 'image_count': 226}, {'id': 948, 'image_count': 1953}, {'id': 973, 'image_count': 103}, {'id': 979, 'image_count': 615}, {'id': 999, 'image_count': 284}, {'id': 1000, 'image_count': 1476}, {'id': 1018, 'image_count': 425}, {'id': 1042, 'image_count': 932}, {'id': 1050, 'image_count': 4927}, {'id': 1061, 'image_count': 283}, {'id': 1072, 'image_count': 2216}, {'id': 1077, 'image_count': 2028}, {'id': 1093, 'image_count': 545}, {'id': 1108, 'image_count': 1965}, {'id': 1117, 'image_count': 1314}, {'id': 1139, 'image_count': 1832}, {'id': 1156, 'image_count': 134}, {'id': 1161, 'image_count': 1891}, {'id': 1196, 'image_count': 105}, {'id': 2000, 'image_count': 89}, {'id': 2001, 'image_count': 617}, {'id': 2002, 'image_count': 803}, {'id': 2003, 'image_count': 879}, {'id': 2004, 'image_count': 526}, {'id': 2005, 'image_count': 2045}, {'id': 2006, 'image_count': 6}, {'id': 2007, 'image_count': 349}, {'id': 2008, 'image_count': 770}, {'id': 2009, 'image_count': 1286}, {'id': 2010, 'image_count': 1563}, {'id': 2011, 'image_count': 1241}, {'id': 2012, 'image_count': 1314}, {'id': 2013, 'image_count': 27}, {'id': 2014, 'image_count': 651}, {'id': 2015, 'image_count': 1268}, {'id': 2016, 'image_count': 495}, {'id': 2017, 'image_count': 50}, {'id': 2018, 'image_count': 6}, {'id': 2019, 'image_count': 106}, {'id': 2020, 'image_count': 352}, {'id': 2021, 'image_count': 101}, {'id': 2022, 'image_count': 229}, {'id': 2023, 'image_count': 765}, {'id': 2024, 'image_count': 354}, {'id': 2025, 'image_count': 121}, {'id': 2026, 'image_count': 69}, {'id': 2027, 'image_count': 231}, {'id': 2028, 'image_count': 153}, {'id': 2029, 'image_count': 394}, {'id': 2030, 'image_count': 73}, {'id': 2031, 'image_count': 90}, {'id': 2032, 'image_count': 137}, {'id': 2033, 'image_count': 210}, {'id': 2034, 'image_count': 235}, {'id': 2035, 'image_count': 962}, {'id': 2036, 'image_count': 1402}, {'id': 2037, 'image_count': 1685}, {'id': 2038, 'image_count': 174}, {'id': 2039, 'image_count': 1206}, {'id': 2040, 'image_count': 780}, {'id': 2041, 'image_count': 2203}, {'id': 2042, 'image_count': 365}, {'id': 2043, 'image_count': 11}, {'id': 2044, 'image_count': 127}, {'id': 2045, 'image_count': 973}, {'id': 2046, 'image_count': 1274}, {'id': 2047, 'image_count': 3010}, {'id': 2048, 'image_count': 184}, {'id': 2049, 'image_count': 2184}, {'id': 2050, 'image_count': 186}, {'id': 2051, 'image_count': 343}, {'id': 2052, 'image_count': 18}, {'id': 2053, 'image_count': 782}, {'id': 2054, 'image_count': 1827}, {'id': 2055, 'image_count': 719}, {'id': 2056, 'image_count': 1226}, {'id': 2057, 'image_count': 2071}, {'id': 2058, 'image_count': 567}, {'id': 2059, 'image_count': 62}, {'id': 2060, 'image_count': 577}, {'id': 2061, 'image_count': 1364}, {'id': 2062, 'image_count': 847}, {'id': 2063, 'image_count': 483}, {'id': 2064, 'image_count': 412}, {'id': 2065, 'image_count': 1740}, {'id': 2066, 'image_count': 209}, {'id': 2067, 'image_count': 2051}, {'id': 2068, 'image_count': 1794}, {'id': 2069, 'image_count': 1756}, {'id': 2070, 'image_count': 191}, {'id': 2071, 'image_count': 29}, {'id': 2072, 'image_count': 120}, {'id': 2073, 'image_count': 29}, {'id': 2074, 'image_count': 99}, {'id': 2075, 'image_count': 178}, {'id': 2076, 'image_count': 72}, {'id': 2077, 'image_count': 673}, {'id': 2078, 'image_count': 19}, {'id': 2079, 'image_count': 164}, {'id': 2080, 'image_count': 400}, {'id': 2081, 'image_count': 1870}, {'id': 2082, 'image_count': 25}, {'id': 2083, 'image_count': 926}, {'id': 2084, 'image_count': 152}, {'id': 2085, 'image_count': 1655}, {'id': 2086, 'image_count': 42}, {'id': 2087, 'image_count': 30}, {'id': 2088, 'image_count': 144}, {'id': 2089, 'image_count': 1319}, {'id': 2090, 'image_count': 108}, {'id': 2091, 'image_count': 84}, {'id': 2092, 'image_count': 129}, {'id': 2093, 'image_count': 120}, {'id': 2094, 'image_count': 537}, {'id': 2095, 'image_count': 231}, {'id': 2096, 'image_count': 473}, {'id': 2097, 'image_count': 1488}, {'id': 2098, 'image_count': 655}, {'id': 2099, 'image_count': 787}, {'id': 2100, 'image_count': 332}, {'id': 2101, 'image_count': 577}, {'id': 2102, 'image_count': 4}, {'id': 2103, 'image_count': 54}, {'id': 2104, 'image_count': 139}, {'id': 2105, 'image_count': 309}, {'id': 2106, 'image_count': 164}, {'id': 2107, 'image_count': 8}, {'id': 2108, 'image_count': 397}, {'id': 2109, 'image_count': 146}, {'id': 2110, 'image_count': 404}, {'id': 2111, 'image_count': 293}, {'id': 2112, 'image_count': 29}, {'id': 2113, 'image_count': 2539}, {'id': 2114, 'image_count': 13}, {'id': 2115, 'image_count': 208}, {'id': 2116, 'image_count': 1419}, {'id': 2117, 'image_count': 1157}, {'id': 2118, 'image_count': 301}, {'id': 2119, 'image_count': 5}, {'id': 2120, 'image_count': 200}, {'id': 2121, 'image_count': 318}, {'id': 2122, 'image_count': 756}, {'id': 2123, 'image_count': 218}, {'id': 2124, 'image_count': 9}, {'id': 2125, 'image_count': 88}, {'id': 2126, 'image_count': 2}, {'id': 2127, 'image_count': 70}, {'id': 2128, 'image_count': 2073}, {'id': 2129, 'image_count': 586}, {'id': 2130, 'image_count': 73}, {'id': 2131, 'image_count': 16}, {'id': 2132, 'image_count': 144}, {'id': 2133, 'image_count': 180}, {'id': 2134, 'image_count': 435}, {'id': 2135, 'image_count': 1073}, {'id': 2136, 'image_count': 55}, {'id': 2137, 'image_count': 267}, {'id': 2138, 'image_count': 1645}, {'id': 2139, 'image_count': 306}, {'id': 2140, 'image_count': 561}, {'id': 2141, 'image_count': 93}, {'id': 2142, 'image_count': 89}, {'id': 2143, 'image_count': 1272}, {'id': 2144, 'image_count': 183}, {'id': 2145, 'image_count': 146}, {'id': 2146, 'image_count': 345}, {'id': 2147, 'image_count': 19}, {'id': 2148, 'image_count': 1487}, {'id': 2149, 'image_count': 113}, {'id': 2150, 'image_count': 1031}, {'id': 2151, 'image_count': 193}, {'id': 2152, 'image_count': 283}, {'id': 2153, 'image_count': 34}, {'id': 2154, 'image_count': 37}, {'id': 2155, 'image_count': 237}, {'id': 2156, 'image_count': 1276}, {'id': 2157, 'image_count': 1148}, {'id': 2158, 'image_count': 67}, {'id': 2159, 'image_count': 229}, {'id': 2160, 'image_count': 871}, {'id': 2161, 'image_count': 147}, {'id': 2162, 'image_count': 1373}, {'id': 2163, 'image_count': 187}, {'id': 2164, 'image_count': 441}, {'id': 2165, 'image_count': 715}, {'id': 2166, 'image_count': 60}, {'id': 2167, 'image_count': 250}, {'id': 2168, 'image_count': 85}, {'id': 2169, 'image_count': 1495}, {'id': 2170, 'image_count': 337}, {'id': 2171, 'image_count': 181}, {'id': 2172, 'image_count': 140}, {'id': 2173, 'image_count': 221}, {'id': 2174, 'image_count': 1010}, {'id': 2175, 'image_count': 55}, {'id': 2176, 'image_count': 217}, {'id': 2177, 'image_count': 614}, {'id': 2178, 'image_count': 1685}, {'id': 2179, 'image_count': 94}, {'id': 2180, 'image_count': 200}, {'id': 2181, 'image_count': 489}, {'id': 2182, 'image_count': 762}, {'id': 2183, 'image_count': 96}, {'id': 2184, 'image_count': 36}, {'id': 2185, 'image_count': 663}, {'id': 2186, 'image_count': 4}, {'id': 2187, 'image_count': 628}, {'id': 2188, 'image_count': 190}, {'id': 2189, 'image_count': 2063}, {'id': 2190, 'image_count': 1304}, {'id': 2191, 'image_count': 359}, {'id': 2192, 'image_count': 170}, {'id': 2193, 'image_count': 173}, {'id': 2194, 'image_count': 1289}, {'id': 2195, 'image_count': 1820}, {'id': 2196, 'image_count': 201}, {'id': 2197, 'image_count': 93}, {'id': 2198, 'image_count': 33}, {'id': 2199, 'image_count': 1032}, {'id': 2200, 'image_count': 188}, {'id': 2201, 'image_count': 1062}, {'id': 2202, 'image_count': 167}, {'id': 2203, 'image_count': 695}, {'id': 2204, 'image_count': 28}, {'id': 2205, 'image_count': 26}, {'id': 2206, 'image_count': 334}, {'id': 2207, 'image_count': 495}, {'id': 2208, 'image_count': 62}, {'id': 2209, 'image_count': 74}, {'id': 2210, 'image_count': 145}, {'id': 2211, 'image_count': 1231}, {'id': 2212, 'image_count': 179}, {'id': 2213, 'image_count': 125}, {'id': 2214, 'image_count': 922}, {'id': 2215, 'image_count': 224}, {'id': 2216, 'image_count': 227}, {'id': 2217, 'image_count': 590}, {'id': 2218, 'image_count': 68}, {'id': 2219, 'image_count': 62}, {'id': 2220, 'image_count': 2387}, {'id': 2221, 'image_count': 103}, {'id': 2222, 'image_count': 27}, {'id': 2223, 'image_count': 7}, {'id': 2224, 'image_count': 1430}, {'id': 2225, 'image_count': 350}, {'id': 2226, 'image_count': 1216}, {'id': 2227, 'image_count': 1}, {'id': 2228, 'image_count': 8}, {'id': 2229, 'image_count': 183}, {'id': 2230, 'image_count': 152}, {'id': 2231, 'image_count': 177}, {'id': 2232, 'image_count': 980}, {'id': 2233, 'image_count': 50}, {'id': 2234, 'image_count': 433}, {'id': 2235, 'image_count': 972}, {'id': 2236, 'image_count': 89}, {'id': 2237, 'image_count': 1046}, {'id': 2238, 'image_count': 2307}, {'id': 2239, 'image_count': 1}, {'id': 2240, 'image_count': 160}, {'id': 2241, 'image_count': 73}, {'id': 2242, 'image_count': 158}, {'id': 2243, 'image_count': 128}, {'id': 2244, 'image_count': 60}, {'id': 2245, 'image_count': 90}, {'id': 2246, 'image_count': 1564}, {'id': 2247, 'image_count': 296}, {'id': 2248, 'image_count': 2206}, {'id': 2249, 'image_count': 164}, {'id': 2250, 'image_count': 1260}, {'id': 2251, 'image_count': 198}, {'id': 2252, 'image_count': 899}, {'id': 2253, 'image_count': 1207}, {'id': 2254, 'image_count': 1470}, {'id': 2255, 'image_count': 1387}, {'id': 2256, 'image_count': 1590}, {'id': 2257, 'image_count': 384}, {'id': 2258, 'image_count': 375}, {'id': 2259, 'image_count': 35}, {'id': 2260, 'image_count': 1483}, {'id': 2261, 'image_count': 382}, {'id': 2262, 'image_count': 47}, {'id': 2263, 'image_count': 69}, {'id': 2264, 'image_count': 949}, {'id': 2265, 'image_count': 185}, {'id': 2266, 'image_count': 154}, {'id': 2267, 'image_count': 333}, {'id': 2268, 'image_count': 15}, {'id': 2269, 'image_count': 249}, {'id': 2270, 'image_count': 248}, {'id': 2271, 'image_count': 290}, {'id': 2272, 'image_count': 4}, {'id': 2273, 'image_count': 363}, {'id': 2274, 'image_count': 176}, {'id': 2275, 'image_count': 746}, {'id': 2276, 'image_count': 203}, {'id': 2277, 'image_count': 227}, {'id': 2278, 'image_count': 4}, {'id': 2279, 'image_count': 55}, {'id': 2280, 'image_count': 180}, {'id': 2281, 'image_count': 31}, {'id': 2282, 'image_count': 1230}, {'id': 2283, 'image_count': 241}, {'id': 2284, 'image_count': 1392}, {'id': 2285, 'image_count': 2348}, {'id': 2286, 'image_count': 1252}, {'id': 2287, 'image_count': 1196}, {'id': 2288, 'image_count': 219}, {'id': 2289, 'image_count': 1519}, {'id': 2290, 'image_count': 631}, {'id': 2291, 'image_count': 1430}, {'id': 2292, 'image_count': 187}, {'id': 2293, 'image_count': 169}, {'id': 2294, 'image_count': 452}, {'id': 2295, 'image_count': 1755}, {'id': 2296, 'image_count': 74}, {'id': 2297, 'image_count': 1867}, {'id': 2298, 'image_count': 825}, {'id': 2299, 'image_count': 87}, {'id': 2300, 'image_count': 147}, {'id': 2301, 'image_count': 10}, {'id': 2302, 'image_count': 49}, {'id': 2303, 'image_count': 1026}, {'id': 2304, 'image_count': 110}, {'id': 2305, 'image_count': 107}, {'id': 2306, 'image_count': 147}, {'id': 2307, 'image_count': 5}, {'id': 2308, 'image_count': 33}, {'id': 2309, 'image_count': 241}, {'id': 2310, 'image_count': 1706}, {'id': 2311, 'image_count': 511}, {'id': 2312, 'image_count': 507}, {'id': 2313, 'image_count': 855}, {'id': 2314, 'image_count': 392}, {'id': 2315, 'image_count': 1072}, {'id': 2316, 'image_count': 812}, {'id': 2317, 'image_count': 202}, {'id': 2318, 'image_count': 719}, {'id': 2319, 'image_count': 2478}, {'id': 2320, 'image_count': 336}, {'id': 2321, 'image_count': 165}, {'id': 2322, 'image_count': 426}, {'id': 2323, 'image_count': 1253}, {'id': 2324, 'image_count': 2316}, {'id': 2325, 'image_count': 1538}, {'id': 2326, 'image_count': 1140}, {'id': 2327, 'image_count': 35}, {'id': 2328, 'image_count': 461}, {'id': 2329, 'image_count': 1458}, {'id': 2330, 'image_count': 1}, {'id': 2331, 'image_count': 1372}, {'id': 2332, 'image_count': 6}, {'id': 2333, 'image_count': 34}, {'id': 2334, 'image_count': 402}, {'id': 2335, 'image_count': 45}, {'id': 2336, 'image_count': 126}, {'id': 2337, 'image_count': 136}, {'id': 2338, 'image_count': 1520}, {'id': 2339, 'image_count': 105}, {'id': 2340, 'image_count': 244}, {'id': 2341, 'image_count': 1058}, {'id': 2342, 'image_count': 1642}, {'id': 2343, 'image_count': 983}, {'id': 2344, 'image_count': 1471}, {'id': 2345, 'image_count': 773}, {'id': 2346, 'image_count': 772}, {'id': 2347, 'image_count': 114}, {'id': 2348, 'image_count': 1646}, {'id': 2349, 'image_count': 1707}, {'id': 2350, 'image_count': 400}, {'id': 2351, 'image_count': 81}, {'id': 2352, 'image_count': 655}, {'id': 2353, 'image_count': 1004}, {'id': 2354, 'image_count': 1560}, {'id': 2355, 'image_count': 407}, {'id': 2356, 'image_count': 377}, {'id': 2357, 'image_count': 126}, {'id': 2358, 'image_count': 218}, {'id': 2359, 'image_count': 94}, {'id': 2360, 'image_count': 706}, {'id': 2361, 'image_count': 327}, {'id': 2362, 'image_count': 2712}, {'id': 2363, 'image_count': 257}, {'id': 2364, 'image_count': 86}, {'id': 2365, 'image_count': 2105}, {'id': 2366, 'image_count': 482}, {'id': 2367, 'image_count': 318}, {'id': 2368, 'image_count': 1498}, {'id': 2369, 'image_count': 192}, {'id': 2370, 'image_count': 1540}, {'id': 2371, 'image_count': 154}, {'id': 2372, 'image_count': 98}, {'id': 2373, 'image_count': 3}, {'id': 2374, 'image_count': 79}, {'id': 2375, 'image_count': 46}, {'id': 2376, 'image_count': 813}, {'id': 2377, 'image_count': 115}, {'id': 2378, 'image_count': 218}, {'id': 2379, 'image_count': 77}, {'id': 2380, 'image_count': 51}, {'id': 2381, 'image_count': 46}, {'id': 2382, 'image_count': 149}, {'id': 2383, 'image_count': 294}, {'id': 2384, 'image_count': 97}, {'id': 2385, 'image_count': 559}, {'id': 2386, 'image_count': 16}, {'id': 2387, 'image_count': 456}, {'id': 2388, 'image_count': 272}, {'id': 2389, 'image_count': 654}, {'id': 2390, 'image_count': 167}, {'id': 2391, 'image_count': 1660}, {'id': 2392, 'image_count': 435}, {'id': 2393, 'image_count': 50}, {'id': 2394, 'image_count': 1785}, {'id': 2395, 'image_count': 568}, {'id': 2396, 'image_count': 325}, {'id': 2397, 'image_count': 328}, {'id': 2398, 'image_count': 51}, {'id': 2399, 'image_count': 29}, {'id': 2400, 'image_count': 129}, {'id': 2401, 'image_count': 34}, {'id': 2402, 'image_count': 15}, {'id': 2403, 'image_count': 61}, {'id': 2404, 'image_count': 69}, {'id': 2405, 'image_count': 1023}, {'id': 2406, 'image_count': 1019}, {'id': 2407, 'image_count': 46}, {'id': 2408, 'image_count': 46}, {'id': 2409, 'image_count': 190}, {'id': 2410, 'image_count': 118}, {'id': 2411, 'image_count': 278}, {'id': 2412, 'image_count': 362}, {'id': 2413, 'image_count': 132}, {'id': 2414, 'image_count': 388}, {'id': 2415, 'image_count': 154}, {'id': 2416, 'image_count': 77}, {'id': 2417, 'image_count': 765}, {'id': 2418, 'image_count': 680}, {'id': 2419, 'image_count': 832}, {'id': 2420, 'image_count': 418}, {'id': 2421, 'image_count': 195}, {'id': 2422, 'image_count': 1664}, {'id': 2423, 'image_count': 45}, {'id': 2424, 'image_count': 970}, {'id': 2425, 'image_count': 360}, {'id': 2426, 'image_count': 385}, {'id': 2427, 'image_count': 11}, {'id': 2428, 'image_count': 1316}, {'id': 2429, 'image_count': 4572}, {'id': 2430, 'image_count': 92}, {'id': 2431, 'image_count': 78}, {'id': 2432, 'image_count': 999}, {'id': 2433, 'image_count': 1187}, {'id': 2434, 'image_count': 982}, {'id': 2435, 'image_count': 354}, {'id': 2436, 'image_count': 29}, {'id': 2437, 'image_count': 1710}, {'id': 2438, 'image_count': 56}, {'id': 2439, 'image_count': 95}, {'id': 2440, 'image_count': 796}, {'id': 2441, 'image_count': 623}, {'id': 2442, 'image_count': 75}, {'id': 2443, 'image_count': 75}, {'id': 2444, 'image_count': 1517}, {'id': 2445, 'image_count': 60}, {'id': 2446, 'image_count': 16}, {'id': 2447, 'image_count': 1721}, {'id': 2448, 'image_count': 226}, {'id': 2449, 'image_count': 1471}, {'id': 2450, 'image_count': 517}, {'id': 2451, 'image_count': 1616}, {'id': 2452, 'image_count': 384}, {'id': 2453, 'image_count': 278}, {'id': 2454, 'image_count': 769}, {'id': 2455, 'image_count': 186}]


def register_paco_instances(name, metadata, json_file, image_root):
    DatasetCatalog.register(name, lambda: load_json(json_file, image_root, name))
    MetadataCatalog.get(name).set(
        json_file=json_file, image_root=image_root, evaluator_type="lvis", **metadata
    )


def load_json(json_file, image_root, dataset_name=None, extra_annotation_keys=None):
    """
    Load a json file in LVIS's annotation format.

    Args:
        Same as D2 LVIS dataset
    Returns:
        list[dict]: a list of dicts in Detectron2 standard format. (See
        `Using Custom Datasets </tutorials/datasets.html>`_ )

    Notes:
        1. This function does not read the image files.
           The results do not have the "image" field.
    """
    from lvis import LVIS

    json_file = PathManager.get_local_path(json_file)

    timer = Timer()
    lvis_api = LVIS(json_file)
    if timer.seconds() > 1:
        logger.info(
            "Loading {} takes {:.2f} seconds.".format(json_file, timer.seconds())
        )

    if dataset_name is not None:
        meta = get_paco_instances_meta(dataset_name)
        MetadataCatalog.get(dataset_name).set(**meta)

    # sort indices for reproducible results
    img_ids = sorted(lvis_api.imgs.keys())
    # imgs is a list of dicts, each looks something like:
    # {'license': 4,
    #  'url': 'http://farm6.staticflickr.com/5454/9413846304_881d5e5c3b_z.jpg',
    #  'file_name': 'COCO_val2014_000000001268.jpg',
    #  'height': 427,
    #  'width': 640,
    #  'date_captured': '2013-11-17 05:57:24',
    #  'id': 1268}
    imgs = lvis_api.load_imgs(img_ids)
    # anns is a list[list[dict]], where each dict is an annotation
    # record for an object. The inner list enumerates the objects in an image
    # and the outer list enumerates over images. Example of anns[0]:
    # [{'segmentation': [[192.81,
    #     247.09,
    #     ...
    #     219.03,
    #     249.06]],
    #   'area': 1035.749,
    #   'image_id': 1268,
    #   'bbox': [192.81, 224.8, 74.73, 33.43],
    #   'category_id': 16,
    #   'id': 42986},
    #  ...]
    anns = [lvis_api.img_ann_map[img_id] for img_id in img_ids]

    # Sanity check that each annotation has a unique id
    ann_ids = [ann["id"] for anns_per_image in anns for ann in anns_per_image]
    assert len(set(ann_ids)) == len(
        ann_ids
    ), "Annotation ids in '{}' are not unique".format(json_file)

    imgs_anns = list(zip(imgs, anns))

    logger.info(
        "Loaded {} images in the LVIS format from {}".format(len(imgs_anns), json_file)
    )

    if extra_annotation_keys:
        logger.info(
            "The following extra annotation keys will be loaded: {} ".format(
                extra_annotation_keys
            )
        )
    else:
        extra_annotation_keys = []

    def get_file_name(img_root, img_dict):
        # Determine the path from the file_name field
        file_name = img_dict["file_name"]
        return os.path.join(img_root, file_name)

    dataset_dicts = []

    for (img_dict, anno_dict_list) in imgs_anns:
        record = {}

        record["file_name"] = get_file_name(image_root, img_dict)
        record["height"] = img_dict["height"]
        record["width"] = img_dict["width"]
        record["not_exhaustive_category_ids"] = img_dict.get(
            "not_exhaustive_category_ids", []
        )
        record["neg_category_ids"] = img_dict.get("neg_category_ids", [])
        image_id = record["image_id"] = img_dict["id"]

        objs = []
        for anno in anno_dict_list:
            # Check that the image_id in this annotation is the same as
            # the image_id we're looking at.
            # This fails only when the data parsing logic or the annotation
            # file is buggy.
            assert anno["image_id"] == image_id
            obj = {"bbox": anno["bbox"], "bbox_mode": BoxMode.XYWH_ABS}

            if dataset_name is not None and "thing_dataset_id_to_contiguous_id" in meta:
                obj["category_id"] = meta["thing_dataset_id_to_contiguous_id"][
                    anno["category_id"]
                ]
            else:
                obj["category_id"] = (
                    anno["category_id"] - 1
                )  # Convert 1-indexed to 0-indexed
            segm = anno["segmentation"]  # list[list[float]]

            if len(segm) == 0:
                continue
            assert len(segm) > 0, segm
            obj["segmentation"] = segm
            for extra_ann_key in extra_annotation_keys:
                obj[extra_ann_key] = anno[extra_ann_key]

            if "attribute_ids" in anno:
                obj["attr_labels"] = anno["attribute_ids"]
                obj["attr_ignores"] = [
                    anno["unknown_color"],
                    anno["unknown_pattern_marking"],
                    anno["unknown_material"],
                    anno["unknown_transparency"],
                ]
            else:
                obj["attr_labels"] = ATTR_TYPE_BG_IDXS
                obj["attr_ignores"] = [1, 1, 1, 1]
            obj['id'] = anno['id']
            objs.append(obj)

        record["annotations"] = objs
        dataset_dicts.append(record)

    return dataset_dicts


def get_paco_instances_meta(dataset_name):
    # we assume that ego4d is always trained in conjunction with lvis
    if "ego4d" in dataset_name or "joint" in dataset_name:
        return _get_lvis_ego4d_instances_meta()
    else:
        return _get_lvis_instances_meta()


def _get_object_and_attribute_classes():
    assert len(PACO_CATEGORIES) == PACO_CATEGORIES_COUNT

    # Ensure that the category list is sorted by id
    categories = sorted(PACO_CATEGORIES, key=lambda x: x["id"])
    attribute_categories = sorted(PACO_ATTRIBUTES, key=lambda x: x["id"])
    part_categories = sorted(PACO_PART_CATEGORIES, key=lambda x: x["id"])

    thing_dataset_id_to_contiguous_id = {k["id"]: _i for _i, k in enumerate(categories)}
    thing_classes = [k["name"] for k in categories]
    attribute_classes = [k["name"] for k in attribute_categories]
    part_classes = [k["name"] for k in part_categories]

    return {
        "thing_classes": thing_classes,
        "part_classes": part_classes,
        "attribute_classes": attribute_classes,
        "thing_dataset_id_to_contiguous_id": thing_dataset_id_to_contiguous_id,
    }


def _get_lvis_instances_meta():
    # Use this when training on PACO-LVIS and PACO-EGO4D jointly
    # we do not currently support training only with ego4d data
    metadata = _get_object_and_attribute_classes()
    metadata["class_image_count"] = PACO_LVIS_CATEGORY_IMAGE_COUNT
    return metadata


def _get_lvis_ego4d_instances_meta():
    metadata = _get_object_and_attribute_classes()
    metadata["class_image_count"] = PACO_LVIS_EGO4D_CATEGORY_IMAGE_COUNT
    return metadata