task_categories:image-classification size_categories:100K<n<1M license:apache-2.0 region:us
---
license: apache-2.0
task_categories:
- image-classification
pretty_name: legobricks
size_categories:
- 100K<n<1M
dataset_info:
  features:
  - name: image
    dtype: image
  - name: label
    dtype:
      class_label:
        names:
          '0': '10190'
          '1': '10197'
          '2': '10201'
          '3': '10202'
          '4': '10247'
          '5': '10314'
          '6': '10884'
          '7': '10928'
          '8': '11090'
          '9': '11127'
          '10': '11153'
          '11': '11203'
          '12': '11208'
          '13': '11209'
          '14': '11211'
          '15': '11212'
          '16': '11213'
          '17': '11214'
          '18': '11215'
          '19': '11253'
          '20': '11458'
          '21': '11476'
          '22': '11477'
          '23': '11478'
          '24': '11609'
          '25': '11610'
          '26': '11618'
          '27': '11833'
          '28': '11946'
          '29': '11947'
          '30': 122c01
          '31': '12825'
          '32': '13547'
          '33': '13548'
          '34': '13564'
          '35': '13731'
          '36': '13965'
          '37': '13971'
          '38': '14395'
          '39': '14417'
          '40': '14418'
          '41': '14419'
          '42': '14696'
          '43': '14704'
          '44': '14716'
          '45': '14718'
          '46': '14719'
          '47': '14720'
          '48': '14769'
          '49': '15068'
          '50': '15070'
          '51': '15100'
          '52': '15207'
          '53': '15208'
          '54': '15209'
          '55': '15210'
          '56': '15254'
          '57': '15303'
          '58': '15332'
          '59': '15379'
          '60': '15391'
          '61': '15392'
          '62': '15395'
          '63': '15400'
          '64': '15403'
          '65': '15456'
          '66': '15458'
          '67': '15461'
          '68': '15462'
          '69': '15470'
          '70': '15533'
          '71': '15535'
          '72': '15571'
          '73': '15573'
          '74': '15672'
          '75': '15706'
          '76': '15712'
          '77': '16577'
          '78': '16770'
          '79': '17485'
          '80': '18041'
          '81': '18575'
          '82': '18646'
          '83': '18649'
          '84': '18651'
          '85': '18653'
          '86': '18654'
          '87': '18671'
          '88': '18674'
          '89': '18677'
          '90': '18853'
          '91': '18946'
          '92': '18976'
          '93': '18977'
          '94': '18980'
          '95': '19119'
          '96': '19220'
          '97': '20310'
          '98': '20482'
          '99': '21459'
          '100': '2214'
          '101': '22385'
          '102': '22388'
          '103': '22484'
          '104': '22667'
          '105': '22885'
          '106': '22886'
          '107': '22888'
          '108': '22889'
          '109': '22890'
          '110': '22961'
          '111': '2300'
          '112': '2301'
          '113': '2302'
          '114': '2335'
          '115': '2339'
          '116': '2340'
          '117': '2343'
          '118': '23443'
          '119': '2346'
          '120': '2357'
          '121': 2362a
          '122': '2377'
          '123': '23950'
          '124': '23969'
          '125': '24122'
          '126': 2412a
          '127': 2412b
          '128': '2413'
          '129': '2417'
          '130': '2419'
          '131': '2420'
          '132': '24201'
          '133': '2423'
          '134': '24246'
          '135': '24299'
          '136': '24307'
          '137': '24309'
          '138': '2431'
          '139': '24316'
          '140': '2432'
          '141': '2436'
          '142': '2437'
          '143': '24375'
          '144': '2444'
          '145': '2445'
          '146': '2446'
          '147': '2447'
          '148': '2449'
          '149': '2450'
          '150': '24505'
          '151': '2452'
          '152': 2453a
          '153': 2453b
          '154': 2454a
          '155': 2454b
          '156': '2456'
          '157': '2458'
          '158': '2460'
          '159': '2462'
          '160': '2465'
          '161': 2476a
          '162': '2479'
          '163': '24855'
          '164': '2486'
          '165': '24866'
          '166': '2489'
          '167': '2496'
          '168': '25214'
          '169': '25269'
          '170': '2530'
          '171': '2540'
          '172': '2555'
          '173': '2566'
          '174': '2569'
          '175': '2577'
          '176': '25893'
          '177': '26047'
          '178': '2639'
          '179': '2653'
          '180': '2654'
          '181': '2655'
          '182': '26601'
          '183': '26603'
          '184': '26604'
          '185': '2723'
          '186': '27261'
          '187': '27263'
          '188': '273'
          '189': '2730'
          '190': '2736'
          '191': '2744'
          '192': '27507'
          '193': '2780'
          '194': '27925'
          '195': '27940'
          '196': '2815'
          '197': '2817'
          '198': '28192'
          '199': '2825'
          '200': 2850a
          '201': 2850b
          '202': '2851'
          '203': '2852'
          '204': '2853'
          '205': '2854'
          '206': '2877'
          '207': 2878c01
          '208': '28802'
          '209': '28974'
          '210': '2905'
          '211': '29119'
          '212': '29120'
          '213': '2921'
          '214': '2926'
          '215': '30000'
          '216': '3001'
          '217': '3002'
          '218': 30027b
          '219': '30028'
          '220': '3003'
          '221': '30031'
          '222': '3004'
          '223': '30043'
          '224': '30044'
          '225': '30046'
          '226': '3005'
          '227': '30055'
          '228': '3006'
          '229': '3007'
          '230': '3008'
          '231': 30089b
          '232': '3009'
          '233': '30093'
          '234': '30099'
          '235': '3010'
          '236': '3011'
          '237': '30132'
          '238': '30136'
          '239': '30137'
          '240': '30145'
          '241': '30150'
          '242': '30153'
          '243': '30157'
          '244': '30162'
          '245': '30165'
          '246': 30173b
          '247': '30176'
          '248': '3020'
          '249': '3021'
          '250': '3022'
          '251': '3023'
          '252': '30236'
          '253': '3024'
          '254': '3027'
          '255': '3028'
          '256': '30285'
          '257': '3029'
          '258': '3030'
          '259': '3031'
          '260': '3032'
          '261': '3033'
          '262': '3034'
          '263': '30340'
          '264': '3035'
          '265': 30350b
          '266': '30355'
          '267': '30356'
          '268': '30357'
          '269': 30359b
          '270': '3036'
          '271': '30363'
          '272': '30364'
          '273': '30365'
          '274': 30367b
          '275': 30367c
          '276': '3037'
          '277': '30374'
          '278': '30377'
          '279': '3038'
          '280': '30383'
          '281': '30385'
          '282': '30386'
          '283': '3039'
          '284': '30391'
          '285': '30395'
          '286': 3040a
          '287': 3040b
          '288': '3041'
          '289': '30414'
          '290': '3043'
          '291': 3044c
          '292': '3045'
          '293': 3049d
          '294': '30503'
          '295': '30504'
          '296': '30526'
          '297': '30552'
          '298': '30553'
          '299': 30554b
          '300': '30562'
          '301': '30565'
          '302': '30586'
          '303': '30592'
          '304': '30602'
          '305': 3062a
          '306': 3062b
          '307': 3063b
          '308': '30648'
          '309': '3065'
          '310': '30663'
          '311': 3068a
          '312': 3068b
          '313': 3069a
          '314': 3069b
          '315': 3070b
          '316': 3081bc01
          '317': 3081cc01
          '318': '31000'
          '319': '31110'
          '320': 3137c01
          '321': '3139'
          '322': '3176'
          '323': '3184'
          '324': '3185'
          '325': '32000'
          '326': '32001'
          '327': '32002'
          '328': '32009'
          '329': '32013'
          '330': '32014'
          '331': '32015'
          '332': '32016'
          '333': '32017'
          '334': '32018'
          '335': '32028'
          '336': '32034'
          '337': '32039'
          '338': '32054'
          '339': '32056'
          '340': '32059'
          '341': '32062'
          '342': '32063'
          '343': 32064a
          '344': 32064b
          '345': '32065'
          '346': '32072'
          '347': '32073'
          '348': 32123a
          '349': 32123b
          '350': '32124'
          '351': '32126'
          '352': '32138'
          '353': '32140'
          '354': '32174'
          '355': '32184'
          '356': '32187'
          '357': '32192'
          '358': '32198'
          '359': '32200'
          '360': '32209'
          '361': '32211'
          '362': '32249'
          '363': '32250'
          '364': '32269'
          '365': '32270'
          '366': '32271'
          '367': '32278'
          '368': 3228a
          '369': '32291'
          '370': 3229a
          '371': 3230a
          '372': '32316'
          '373': '32324'
          '374': '32348'
          '375': '32449'
          '376': 3245b
          '377': 3245c
          '378': '32474'
          '379': '32523'
          '380': '32524'
          '381': '32525'
          '382': '32526'
          '383': '32529'
          '384': '32530'
          '385': '32531'
          '386': '32532'
          '387': '32555'
          '388': '32556'
          '389': '32557'
          '390': '32606'
          '391': '32607'
          '392': '32803'
          '393': '32828'
          '394': '32952'
          '395': '3297'
          '396': '3298'
          '397': '3299'
          '398': '3300'
          '399': '33051'
          '400': '3307'
          '401': '33078'
          '402': '3308'
          '403': '33085'
          '404': '33172'
          '405': '33183'
          '406': '33243'
          '407': '33286'
          '408': '33291'
          '409': 33299a
          '410': 33299b
          '411': '33303'
          '412': '33320'
          '413': '33909'
          '414': '34103'
          '415': '34337'
          '416': '3437'
          '417': '3455'
          '418': '3456'
          '419': '3460'
          '420': '3464'
          '421': 3475b
          '422': '34816'
          '423': '3482'
          '424': '3483'
          '425': '35044'
          '426': '35459'
          '427': '35464'
          '428': '35480'
          '429': '35787'
          '430': '3581'
          '431': '3582'
          '432': '3612'
          '433': '3613'
          '434': '3622'
          '435': '3623'
          '436': '3624'
          '437': 3626b
          '438': 3626c
          '439': '3633'
          '440': '3634'
          '441': '3641'
          '442': '3647'
          '443': 3648a
          '444': 3648b
          '445': '3649'
          '446': 3650c
          '447': '3651'
          '448': '3659'
          '449': '3660'
          '450': '3665'
          '451': '3666'
          '452': '3673'
          '453': '3675'
          '454': 36752a
          '455': '3676'
          '456': 3678b
          '457': '3679'
          '458': '3680'
          '459': '3684'
          '460': '36840'
          '461': '36841'
          '462': '3685'
          '463': '3700'
          '464': '3701'
          '465': '3702'
          '466': '3703'
          '467': '3704'
          '468': '3705'
          '469': '3706'
          '470': '3707'
          '471': '3708'
          '472': '3709'
          '473': '3710'
          '474': '3713'
          '475': '37352'
          '476': '3737'
          '477': '3738'
          '478': '3741'
          '479': '3742'
          '480': '3743'
          '481': 3747a
          '482': 3747b
          '483': '3749'
          '484': '37695'
          '485': '37762'
          '486': '37775'
          '487': '3788'
          '488': 3794a
          '489': 3794b
          '490': '3795'
          '491': '3821'
          '492': '3822'
          '493': '3823'
          '494': 3829c01
          '495': '3830'
          '496': '3831'
          '497': '3832'
          '498': '38320'
          '499': '3833'
          '500': '3835'
          '501': '3836'
          '502': '3837'
          '503': 3839b
          '504': '3849'
          '505': '3853'
          '506': '3854'
          '507': '3856'
          '508': '3857'
          '509': 3861b
          '510': '3873'
          '511': '3894'
          '512': '3895'
          '513': '3899'
          '514': '3900'
          '515': '3901'
          '516': '3937'
          '517': '3938'
          '518': '3941'
          '519': 3942c
          '520': 3943b
          '521': '3956'
          '522': 3957a
          '523': 3957b
          '524': '3958'
          '525': '3959'
          '526': '3960'
          '527': 3962b
          '528': '3963'
          '529': '39739'
          '530': '39789'
          '531': '39793'
          '532': '4006'
          '533': '4019'
          '534': '4022'
          '535': 4032a
          '536': '4033'
          '537': '4034'
          '538': '40378'
          '539': '40379'
          '540': '40490'
          '541': '40666'
          '542': '4070'
          '543': '4079'
          '544': 4081b
          '545': '4083'
          '546': '4084'
          '547': 4085b
          '548': 4085c
          '549': '4095'
          '550': '41239'
          '551': '4132'
          '552': '4133'
          '553': '4143'
          '554': '4150'
          '555': '41531'
          '556': '41532'
          '557': '41539'
          '558': '4161'
          '559': '4162'
          '560': '4166'
          '561': '41669'
          '562': '41677'
          '563': '41678'
          '564': '41682'
          '565': '41740'
          '566': '41747'
          '567': '41748'
          '568': '4175'
          '569': '4176'
          '570': '41767'
          '571': '41768'
          '572': '41769'
          '573': '41770'
          '574': '4185'
          '575': '41854'
          '576': '41862'
          '577': 41879a
          '578': '4199'
          '579': '42003'
          '580': '42022'
          '581': '42023'
          '582': '4213'
          '583': 4215b
          '584': '4216'
          '585': '4218'
          '586': '42446'
          '587': '42610'
          '588': 4265a
          '589': 4265b
          '590': 4273b
          '591': '4274'
          '592': 4275b
          '593': 4276b
          '594': '4282'
          '595': 4285b
          '596': '4286'
          '597': 4287a
          '598': 4287b
          '599': 4287c
          '600': '42924'
          '601': '43093'
          '602': '4315'
          '603': '43337'
          '604': 4345b
          '605': '4346'
          '606': '4349'
          '607': '43710'
          '608': '43711'
          '609': '43712'
          '610': '43713'
          '611': '43719'
          '612': '43722'
          '613': '43723'
          '614': '43857'
          '615': '43888'
          '616': '43898'
          '617': '44126'
          '618': '44294'
          '619': '44300'
          '620': 44301a
          '621': 44301b
          '622': 44302a
          '623': '44309'
          '624': 44375b
          '625': '4445'
          '626': '4449'
          '627': '44524'
          '628': 44567a
          '629': 44567b
          '630': '44568'
          '631': '44570'
          '632': '4459'
          '633': 4460a
          '634': 4460b
          '635': '44674'
          '636': '44676'
          '637': '44728'
          '638': '4477'
          '639': '44809'
          '640': '4485'
          '641': '44861'
          '642': '44874'
          '643': '4488'
          '644': '4490'
          '645': 4495a
          '646': 4495b
          '647': '4497'
          '648': '4510'
          '649': '4515'
          '650': '4519'
          '651': '4522'
          '652': '4528'
          '653': '4531'
          '654': '4532'
          '655': '4533'
          '656': '4536'
          '657': '45590'
          '658': '45677'
          '659': '458'
          '660': '4588'
          '661': '4589'
          '662': '4590'
          '663': '4595'
          '664': 4599a
          '665': 4599b
          '666': '4600'
          '667': '46212'
          '668': '4623'
          '669': '4624'
          '670': '4625'
          '671': '4672'
          '672': 4697b
          '673': '4716'
          '674': '4727'
          '675': '4728'
          '676': '4733'
          '677': '4735'
          '678': 4738a
          '679': '47397'
          '680': '47398'
          '681': 4739a
          '682': '4740'
          '683': '47455'
          '684': '47456'
          '685': '47457'
          '686': '47458'
          '687': '47753'
          '688': '47755'
          '689': '47847'
          '690': '47905'
          '691': '48092'
          '692': '48169'
          '693': '48170'
          '694': '48171'
          '695': '48336'
          '696': '4854'
          '697': '4855'
          '698': '4859'
          '699': '4862'
          '700': 4864a
          '701': 4864b
          '702': 4865a
          '703': 4865b
          '704': '4870'
          '705': '4871'
          '706': 48729a
          '707': 48729b
          '708': '48989'
          '709': '49307'
          '710': '49668'
          '711': '50254'
          '712': '50304'
          '713': '50305'
          '714': '50745'
          '715': '50861'
          '716': '50862'
          '717': '50923'
          '718': '50943'
          '719': '50950'
          '720': '50951'
          '721': '51739'
          '722': '52031'
          '723': '52107'
          '724': '52501'
          '725': '53400'
          '726': '53451'
          '727': '53585'
          '728': '53989'
          '729': '54200'
          '730': '54383'
          '731': '54384'
          '732': '54657'
          '733': '54821'
          '734': '55013'
          '735': '55236'
          '736': '55615'
          '737': '55981'
          '738': '55982'
          '739': '56145'
          '740': '56902'
          '741': '57518'
          '742': '57585'
          '743': '57878'
          '744': '57895'
          '745': '58090'
          '746': '58176'
          '747': '58247'
          '748': '59230'
          '749': '59275'
          '750': '59349'
          '751': '59426'
          '752': '59443'
          '753': '59895'
          '754': '59900'
          '755': '6003'
          '756': '60032'
          '757': '6005'
          '758': '6015'
          '759': '60169'
          '760': '60176'
          '761': '6019'
          '762': '6020'
          '763': '60208'
          '764': '60212'
          '765': '60219'
          '766': '6041'
          '767': 60470a
          '768': 60470b
          '769': '60471'
          '770': '60474'
          '771': 60475a
          '772': 60475b
          '773': '60476'
          '774': '60477'
          '775': '60478'
          '776': '60479'
          '777': '60481'
          '778': '60483'
          '779': '60484'
          '780': '60485'
          '781': '60581'
          '782': 60583b
          '783': '60592'
          '784': '60593'
          '785': '60594'
          '786': '60596'
          '787': '6060'
          '788': '60601'
          '789': '60602'
          '790': '60603'
          '791': '60607'
          '792': '60608'
          '793': 60616b
          '794': '60623'
          '795': '6064'
          '796': '60700'
          '797': '6081'
          '798': '60849'
          '799': '60897'
          '800': '6091'
          '801': '6106'
          '802': '61072'
          '803': '6111'
          '804': '6112'
          '805': '61184'
          '806': '61252'
          '807': '61254'
          '808': 6126a
          '809': 6126b
          '810': '61332'
          '811': '6134'
          '812': '61345'
          '813': '6140'
          '814': '61409'
          '815': '6141'
          '816': '6148'
          '817': '61482'
          '818': '61485'
          '819': '6157'
          '820': '61678'
          '821': '61780'
          '822': '6179'
          '823': '6180'
          '824': '6182'
          '825': '6183'
          '826': '6187'
          '827': '6190'
          '828': '61903'
          '829': '6191'
          '830': '6192'
          '831': '62113'
          '832': '6215'
          '833': '6222'
          '834': '6223'
          '835': '6231'
          '836': '6232'
          '837': '6233'
          '838': '62361'
          '839': '6239'
          '840': '62462'
          '841': '6248'
          '842': '6249'
          '843': '62531'
          '844': '6254'
          '845': '6256'
          '846': '6259'
          '847': '6266'
          '848': '62810'
          '849': '63082'
          '850': '6378'
          '851': '63864'
          '852': '63868'
          '853': '63869'
          '854': '63965'
          '855': '64179'
          '856': '64225'
          '857': '64448'
          '858': '64570'
          '859': '64644'
          '860': '64647'
          '861': '64648'
          '862': '64727'
          '863': '6474'
          '864': '64782'
          '865': '64799'
          '866': '6510'
          '867': '6536'
          '868': 6538b
          '869': '6541'
          '870': '65487'
          '871': '65509'
          '872': '6553'
          '873': '65578'
          '874': '6558'
          '875': '6564'
          '876': '6565'
          '877': '6575'
          '878': '6583'
          '879': '6587'
          '880': '6589'
          '881': '6628'
          '882': '6629'
          '883': '6632'
          '884': '6636'
          '885': '66792'
          '886': '66906'
          '887': '67329'
          '888': '69729'
          '889': '7039'
          '890': '72454'
          '891': '73092'
          '892': '73230'
          '893': '73825'
          '894': '74261'
          '895': '74967'
          '896': '75535'
          '897': '75937'
          '898': '76371'
          '899': '76766'
          '900': '78258'
          '901': '78329'
          '902': '79389'
          '903': '85080'
          '904': '85543'
          '905': '85544'
          '906': '85861'
          '907': '85941'
          '908': '85943'
          '909': '85975'
          '910': '85984'
          '911': '86035'
          '912': '86996'
          '913': '87079'
          '914': '87081'
          '915': '87082'
          '916': '87083'
          '917': '87087'
          '918': '87414'
          '919': '87544'
          '920': '87552'
          '921': '87580'
          '922': '87609'
          '923': '87617'
          '924': '87618'
          '925': '87620'
          '926': '87697'
          '927': '87747'
          '928': '87994'
          '929': '88072'
          '930': '88292'
          '931': '88293'
          '932': '88323'
          '933': '88393'
          '934': '88646'
          '935': '88930'
          '936': '89201'
          '937': '89522'
          '938': '89678'
          '939': '90194'
          '940': '90195'
          '941': '90258'
          '942': '90398'
          '943': '90609'
          '944': '90617'
          '945': '90640'
          '946': '90641'
          '947': '91405'
          '948': '91501'
          '949': '91988'
          '950': '92013'
          '951': '92099'
          '952': '92220'
          '953': '92280'
          '954': '92402'
          '955': '92409'
          '956': '92410'
          '957': '92438'
          '958': '9244'
          '959': '92582'
          '960': '92593'
          '961': '92690'
          '962': '92692'
          '963': '92738'
          '964': '92851'
          '965': '92907'
          '966': '92946'
          '967': '92947'
          '968': '92950'
          '969': '93061'
          '970': '93095'
          '971': '93160'
          '972': '93273'
          '973': '93274'
          '974': '93555'
          '975': '93594'
          '976': '93606'
          '977': '93609'
          '978': '94925'
          '979': '95344'
          '980': '96874'
          '981': '98100'
          '982': '98138'
          '983': '98139'
          '984': '98223'
          '985': '98233'
          '986': '98282'
          '987': '98283'
          '988': '98313'
          '989': '98585'
          '990': '98721'
          '991': '98834'
          '992': '99008'
          '993': '99021'
          '994': '99206'
          '995': '99207'
          '996': '99563'
          '997': '99773'
          '998': '99780'
          '999': '99781'
  splits:
  - name: train
    num_bytes: 25066440000.0
    num_examples: 400000
  download_size: 13152000872
  dataset_size: 25066440000.0
---

# Dataset Card for LegoBricks


### Dataset Summary

3D images of LEGO Parts. Dataset contains the 1000 most common LEGO parts (according to the [rebrickable database](https://rebrickable.com/help/lego-database/)). 
Each part has 400 images of different rotation angles and colors. Colors are sampled randomly, weighted by number of occurences for that part and color in the database.

The dataset contains a train split with 1000 classes, each represented by 400 images.
Class names are the LEGO part IDs. These ids can be used to reference the part on [BrickLink](https://www.bricklink.com/) or [Rebrickable](https://rebrickable.com)
Note that identical parts can be present under multipe IDs, due to mold updates by LEGO.
Alternative IDs can be found on Bricklink.

## Dataset Creation

Parts IDs and statistics were extracted from [rebrickable](https://rebrickable.com/) database. Images generated using [ldraw](https://www.ldraw.org/).
This dataset is not created or endorsed by LEGO. LEGO® is a trademark of the LEGO Group of companies
 