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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: unknown
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pretty_name: Food-500
|
| 8 |
+
size_categories:
|
| 9 |
+
- 100K<n<1M
|
| 10 |
+
dataset_info:
|
| 11 |
+
features:
|
| 12 |
+
- name: image
|
| 13 |
+
dtype: image
|
| 14 |
+
- name: label
|
| 15 |
+
dtype:
|
| 16 |
+
class_label:
|
| 17 |
+
names:
|
| 18 |
+
'0': Abalone
|
| 19 |
+
'1': Aburaage
|
| 20 |
+
'2': Æbleflæsk
|
| 21 |
+
'3': Agedashi_tofu
|
| 22 |
+
'4': Aligot
|
| 23 |
+
'5': Almond_biscuit
|
| 24 |
+
'6': Aloo_gobi
|
| 25 |
+
'7': Ambrosia_(fruit_salad)
|
| 26 |
+
'8': Anago
|
| 27 |
+
'9': Andong_jjimdak
|
| 28 |
+
'10': Ants_climbing_a_tree
|
| 29 |
+
'11': Anzac_biscuit
|
| 30 |
+
'12': Apple_cobbler
|
| 31 |
+
'13': Apple_crisp
|
| 32 |
+
'14': Apple_dumpling
|
| 33 |
+
'15': Apple_pie
|
| 34 |
+
'16': Apple_sauce
|
| 35 |
+
'17': Apple_strudel
|
| 36 |
+
'18': Applesauce_cake
|
| 37 |
+
'19': Arab_salad
|
| 38 |
+
'20': Arancini
|
| 39 |
+
'21': Arròs_negre
|
| 40 |
+
'22': Asam_pedas
|
| 41 |
+
'23': Avocado_bread
|
| 42 |
+
'24': Avocado_fries
|
| 43 |
+
'25': Avocado_key_lime_pie
|
| 44 |
+
'26': Avocado_sauce
|
| 45 |
+
'27': Avocado_toast
|
| 46 |
+
'28': Ayam_bakar
|
| 47 |
+
'29': Ayam_betutu
|
| 48 |
+
'30': Ayam_goreng
|
| 49 |
+
'31': Babi_panggang
|
| 50 |
+
'32': Bacon_and_eggs
|
| 51 |
+
'33': Bacon_egg_and_cheese_sandwich
|
| 52 |
+
'34': Bacon_explosion
|
| 53 |
+
'35': Bacon_sandwich
|
| 54 |
+
'36': Baingan_bharta
|
| 55 |
+
'37': Baked_beans
|
| 56 |
+
'38': Banana_bread
|
| 57 |
+
'39': Banana_pancakes
|
| 58 |
+
'40': Banana_pudding
|
| 59 |
+
'41': Banana_salad
|
| 60 |
+
'42': Banana_split
|
| 61 |
+
'43': Bandeja_paisa
|
| 62 |
+
'44': Bangers_and_mash
|
| 63 |
+
'45': Banh_bo
|
| 64 |
+
'46': Bánh_canh
|
| 65 |
+
'47': Bánh_chuối
|
| 66 |
+
'48': Bean_pie
|
| 67 |
+
'49': Bean_salad
|
| 68 |
+
'50': Beef_bun
|
| 69 |
+
'51': Beef_chow_fun
|
| 70 |
+
'52': Beef_noodle_soup
|
| 71 |
+
'53': Beef_Wellington
|
| 72 |
+
'54': Beignet
|
| 73 |
+
'55': Bibimbap
|
| 74 |
+
'56': Bibingka
|
| 75 |
+
'57': Biryani
|
| 76 |
+
'58': Bisque_food
|
| 77 |
+
'59': Bistek
|
| 78 |
+
'60': Black_Forest_gateau
|
| 79 |
+
'61': Black_pepper_crab
|
| 80 |
+
'62': Blackberry_pie
|
| 81 |
+
'63': Blancmange
|
| 82 |
+
'64': BLT_sandwich
|
| 83 |
+
'65': Blueberry_pie
|
| 84 |
+
'66': Boiled_beef
|
| 85 |
+
'67': Boiled_peanuts
|
| 86 |
+
'68': Bon_bon_chicken
|
| 87 |
+
'69': Borscht
|
| 88 |
+
'70': Botan-ebi
|
| 89 |
+
'71': Botifarra
|
| 90 |
+
'72': Bouillabaisse
|
| 91 |
+
'73': Bourbon_chicken
|
| 92 |
+
'74': Bread_roll
|
| 93 |
+
'75': Broccoli_slaw
|
| 94 |
+
'76': Brown_stew_chicken
|
| 95 |
+
'77': Bruschetta
|
| 96 |
+
'78': Bubur_ayam
|
| 97 |
+
'79': Bubur_kacang_hijau
|
| 98 |
+
'80': Bugnes
|
| 99 |
+
'81': Bun_bo_hue
|
| 100 |
+
'82': Bún_ốc
|
| 101 |
+
'83': Bún_riêu
|
| 102 |
+
'84': Burrito
|
| 103 |
+
'85': Butadon
|
| 104 |
+
'86': Butter_cake
|
| 105 |
+
'87': Butter_pecan
|
| 106 |
+
'88': Butter_pie
|
| 107 |
+
'89': Buttercream
|
| 108 |
+
'90': Buttery_bread
|
| 109 |
+
'91': Cabbage_soup
|
| 110 |
+
'92': Caesar_salad
|
| 111 |
+
'93': Café_liégeois
|
| 112 |
+
'94': Calamari
|
| 113 |
+
'95': Caldo_verde
|
| 114 |
+
'96': Caprese_salad
|
| 115 |
+
'97': Carpaccio
|
| 116 |
+
'98': Carrot_bread
|
| 117 |
+
'99': Carrot_cake
|
| 118 |
+
'100': Carrot_cake_cookie
|
| 119 |
+
'101': Carrot_chips
|
| 120 |
+
'102': Carrot_juice
|
| 121 |
+
'103': Carrot_salad
|
| 122 |
+
'104': Carrot_soup
|
| 123 |
+
'105': Cassoulet
|
| 124 |
+
'106': Cebolada
|
| 125 |
+
'107': Ceviche
|
| 126 |
+
'108': Chakli
|
| 127 |
+
'109': Champurrado
|
| 128 |
+
'110': Char_kway_teow
|
| 129 |
+
'111': Charqui
|
| 130 |
+
'112': Chazuke
|
| 131 |
+
'113': Cheese_and_tomato_sandwich
|
| 132 |
+
'114': Cheese_bun
|
| 133 |
+
'115': Cheese_fries
|
| 134 |
+
'116': Cheese_maki
|
| 135 |
+
'117': Cheese_pudding
|
| 136 |
+
'118': Cheese_roll
|
| 137 |
+
'119': Cheesecake
|
| 138 |
+
'120': Cherry_cake
|
| 139 |
+
'121': Cherry_ice_cream
|
| 140 |
+
'122': Cherry_pie
|
| 141 |
+
'123': Chicken_and_waffles
|
| 142 |
+
'124': Chicken_cacciatore
|
| 143 |
+
'125': Chicken_curry
|
| 144 |
+
'126': Chicken_fingers
|
| 145 |
+
'127': Chicken_Kiev
|
| 146 |
+
'128': Chicken_marsala
|
| 147 |
+
'129': Chicken_noodle_soup
|
| 148 |
+
'130': Chicken_nugget
|
| 149 |
+
'131': Chicken_parmigiana
|
| 150 |
+
'132': Chicken_salad
|
| 151 |
+
'133': Chicken_soup
|
| 152 |
+
'134': Chiles_en_nogada
|
| 153 |
+
'135': Chili_con_carne
|
| 154 |
+
'136': Chilli_crab
|
| 155 |
+
'137': Chinese_chicken_salad
|
| 156 |
+
'138': Chocolate_covered_strawberries
|
| 157 |
+
'139': Chocolate_marshmallow_pie
|
| 158 |
+
'140': Chow_mein
|
| 159 |
+
'141': Chowder
|
| 160 |
+
'142': Christmas_cake
|
| 161 |
+
'143': Churro
|
| 162 |
+
'144': Ciambelle
|
| 163 |
+
'145': Çiğ_köfte
|
| 164 |
+
'146': Clam_chowder
|
| 165 |
+
'147': Claypot_chicken_rice
|
| 166 |
+
'148': Club_sandwich
|
| 167 |
+
'149': Cobbler_food
|
| 168 |
+
'150': Coconut_cake
|
| 169 |
+
'151': Coconut_cream
|
| 170 |
+
'152': Coconut_shrimp
|
| 171 |
+
'153': Coda_alla_vaccinara
|
| 172 |
+
'154': Coffee_jelly
|
| 173 |
+
'155': Colcannon
|
| 174 |
+
'156': Coleslaw
|
| 175 |
+
'157': Congee
|
| 176 |
+
'158': Corn_chip
|
| 177 |
+
'159': Corn_crab_soup
|
| 178 |
+
'160': Corn_dog
|
| 179 |
+
'161': Corn_soup
|
| 180 |
+
'162': Corn_stew
|
| 181 |
+
'163': Corn_tortilla
|
| 182 |
+
'164': Corned_beef_sandwich
|
| 183 |
+
'165': Cotoletta
|
| 184 |
+
'166': Crab_cake
|
| 185 |
+
'167': Crab_dip
|
| 186 |
+
'168': Crab_in_Padang_sauce
|
| 187 |
+
'169': Crab_puff
|
| 188 |
+
'170': Crab_rangoon
|
| 189 |
+
'171': Cream_of_broccoli_soup
|
| 190 |
+
'172': Cream_of_mushroom_soup
|
| 191 |
+
'173': Cream_pie
|
| 192 |
+
'174': Creamed_eggs_on_toast
|
| 193 |
+
'175': Croissant
|
| 194 |
+
'176': Crudo
|
| 195 |
+
'177': Crumble
|
| 196 |
+
'178': Cucumber_soup
|
| 197 |
+
'179': Cured_salmon
|
| 198 |
+
'180': Curry_goat
|
| 199 |
+
'181': Curry_Mee
|
| 200 |
+
'182': Curry_rice
|
| 201 |
+
'183': Currywurst
|
| 202 |
+
'184': Dandan_noodles
|
| 203 |
+
'185': Deep-fried_peanuts
|
| 204 |
+
'186': Denver_omelette
|
| 205 |
+
'187': Denver_sandwich
|
| 206 |
+
'188': Dhokla
|
| 207 |
+
'189': Di_san_xian
|
| 208 |
+
'190': Dinuguan
|
| 209 |
+
'191': Dirty_Rice
|
| 210 |
+
'192': Dong'an_chicken
|
| 211 |
+
'193': Doufunao
|
| 212 |
+
'194': Doughnut
|
| 213 |
+
'195': Drunken_chicken
|
| 214 |
+
'196': Drunken_shrimp
|
| 215 |
+
'197': Duck_soup_noodles
|
| 216 |
+
'198': Edamame
|
| 217 |
+
'199': Eggplant_omelette
|
| 218 |
+
'200': Eisbein
|
| 219 |
+
'201': Es_campur
|
| 220 |
+
'202': Es_pisang_ijo
|
| 221 |
+
'203': Filet_mignon
|
| 222 |
+
'204': Fish_ball
|
| 223 |
+
'205': Fish_chowder
|
| 224 |
+
'206': Fish_head_casserole
|
| 225 |
+
'207': Fish_head_curry
|
| 226 |
+
'208': Fish_soup
|
| 227 |
+
'209': Fish_steak
|
| 228 |
+
'210': Fishcake
|
| 229 |
+
'211': Fondue
|
| 230 |
+
'212': Francesinha
|
| 231 |
+
'213': Frappe
|
| 232 |
+
'214': French_onion_soup
|
| 233 |
+
'215': French_toast
|
| 234 |
+
'216': Fricassee
|
| 235 |
+
'217': Fried_aubergine
|
| 236 |
+
'218': Fried_cheese
|
| 237 |
+
'219': Fried_chicken
|
| 238 |
+
'220': Fried_noodles
|
| 239 |
+
'221': Fried_onion
|
| 240 |
+
'222': Fried_rice
|
| 241 |
+
'223': Fried_Tofu
|
| 242 |
+
'224': Fruit_curd
|
| 243 |
+
'225': Fuqi_feipian
|
| 244 |
+
'226': Galbi
|
| 245 |
+
'227': Garlic_bread
|
| 246 |
+
'228': Gejang
|
| 247 |
+
'229': Ginger_beef
|
| 248 |
+
'230': Gołąbki
|
| 249 |
+
'231': Goulash
|
| 250 |
+
'232': Gravlax
|
| 251 |
+
'233': Greek_salad
|
| 252 |
+
'234': Green_bean_casserole
|
| 253 |
+
'235': Green_papaya_salad
|
| 254 |
+
'236': Grits
|
| 255 |
+
'237': Gulai_Ayam
|
| 256 |
+
'238': Gyutan
|
| 257 |
+
'239': Hae_mee
|
| 258 |
+
'240': Hainanese_chicken_rice
|
| 259 |
+
'241': Ham_and_cheese_sandwich
|
| 260 |
+
'242': Ham_salad
|
| 261 |
+
'243': Ham_sandwich
|
| 262 |
+
'244': hamburgers
|
| 263 |
+
'245': Har_gow
|
| 264 |
+
'246': Hiyayakko
|
| 265 |
+
'247': Hokkien_mee
|
| 266 |
+
'248': Hongshao_rou
|
| 267 |
+
'249': Hoppin'_John
|
| 268 |
+
'250': Hot_and_sour_soup
|
| 269 |
+
'251': Huangqiao_sesame_cake
|
| 270 |
+
'252': Huevos_rancheros
|
| 271 |
+
'253': Hummus
|
| 272 |
+
'254': Ikan_bakar
|
| 273 |
+
'255': Ikan_goreng
|
| 274 |
+
'256': Israeli_salad
|
| 275 |
+
'257': Italian_tomato_pie
|
| 276 |
+
'258': Jajangmyeon
|
| 277 |
+
'259': Jambalaya
|
| 278 |
+
'260': Jambonneau
|
| 279 |
+
'261': Japchae
|
| 280 |
+
'262': Jewish_apple_cake
|
| 281 |
+
'263': Jiuniang
|
| 282 |
+
'264': Kachori
|
| 283 |
+
'265': Kadhi
|
| 284 |
+
'266': Kakuni
|
| 285 |
+
'267': Katsudon
|
| 286 |
+
'268': kebab
|
| 287 |
+
'269': Kedgeree
|
| 288 |
+
'270': Key_lime_pie
|
| 289 |
+
'271': Konnyaku
|
| 290 |
+
'272': Korean_fried_chicken
|
| 291 |
+
'273': Kung_Pao_chicken
|
| 292 |
+
'274': Kwetiau_goreng
|
| 293 |
+
'275': Laddu
|
| 294 |
+
'276': Laksa
|
| 295 |
+
'277': Lamb_chop
|
| 296 |
+
'278': Lasagna
|
| 297 |
+
'279': Lebkuchen
|
| 298 |
+
'280': Leek_soup
|
| 299 |
+
'281': Lemon_chicken
|
| 300 |
+
'282': Lemon_ice_box_pie
|
| 301 |
+
'283': Lemon_meringue_pie
|
| 302 |
+
'284': Lemon_tart
|
| 303 |
+
'285': Lemonade
|
| 304 |
+
'286': Lentil_soup
|
| 305 |
+
'287': Lettuce_soup
|
| 306 |
+
'288': Lo_mein
|
| 307 |
+
'289': Lobster_bisque
|
| 308 |
+
'290': Lohikeitto
|
| 309 |
+
'291': Macaron
|
| 310 |
+
'292': Mango_pomelo_sago
|
| 311 |
+
'293': Mango_pudding
|
| 312 |
+
'294': Mapo_doufu
|
| 313 |
+
'295': Meatloaf
|
| 314 |
+
'296': Mee_pok
|
| 315 |
+
'297': Mee_siam
|
| 316 |
+
'298': Melt_sandwich
|
| 317 |
+
'299': Menudo
|
| 318 |
+
'300': Mì_Quảng
|
| 319 |
+
'301': Michigan_hot_dog
|
| 320 |
+
'302': Mie_goreng
|
| 321 |
+
'303': Milk_Shake
|
| 322 |
+
'304': Minestrone
|
| 323 |
+
'305': Mirchi_ka_salan
|
| 324 |
+
'306': Mission_burrito
|
| 325 |
+
'307': Mongolian_beef
|
| 326 |
+
'308': Mousse
|
| 327 |
+
'309': Mozzarella_sticks
|
| 328 |
+
'310': Mushroom_gravy
|
| 329 |
+
'311': Mushy_peas
|
| 330 |
+
'312': Mutton_handi
|
| 331 |
+
'313': Mutton_korma
|
| 332 |
+
'314': Nachos
|
| 333 |
+
'315': Naengmyeon
|
| 334 |
+
'316': Nasi_goreng
|
| 335 |
+
'317': Nasi_kuning
|
| 336 |
+
'318': Nasi_liwet
|
| 337 |
+
'319': Nattō
|
| 338 |
+
'320': Noodle_soup
|
| 339 |
+
'321': Nuomici
|
| 340 |
+
'322': Okinawa_soba
|
| 341 |
+
'323': Olivier_salad
|
| 342 |
+
'324': Onigiri
|
| 343 |
+
'325': Onion_ring
|
| 344 |
+
'326': Orange_chicken
|
| 345 |
+
'327': Oyster_omelette
|
| 346 |
+
'328': Oysters_Rockefeller
|
| 347 |
+
'329': Pączki
|
| 348 |
+
'330': Paella
|
| 349 |
+
'331': Pakora
|
| 350 |
+
'332': Panzanella
|
| 351 |
+
'333': Pappa_al_pomodoro
|
| 352 |
+
'334': Parmigiana
|
| 353 |
+
'335': Pasta
|
| 354 |
+
'336': Pasta_al_pomodoro
|
| 355 |
+
'337': Pasta_alla_Norma
|
| 356 |
+
'338': Pasteis_de_Bacalhau
|
| 357 |
+
'339': Paupiette
|
| 358 |
+
'340': Payasam
|
| 359 |
+
'341': Pea_soup
|
| 360 |
+
'342': Peanut_butter_cookie
|
| 361 |
+
'343': Peanut_soup
|
| 362 |
+
'344': Pho
|
| 363 |
+
'345': Pickled_cucumber
|
| 364 |
+
'346': Pig's_ear
|
| 365 |
+
'347': Pig's_organ_soup
|
| 366 |
+
'348': Pig's_trotters
|
| 367 |
+
'349': Pineapple_tart
|
| 368 |
+
'350': Pipikaula
|
| 369 |
+
'351': Pizza_carbonara
|
| 370 |
+
'352': Pizza_pugliese
|
| 371 |
+
'353': Plateau_de_fruits_de_mer
|
| 372 |
+
'354': Plum_cake
|
| 373 |
+
'355': Pommes_dauphine
|
| 374 |
+
'356': Poori
|
| 375 |
+
'357': Porchetta
|
| 376 |
+
'358': Pork_ball
|
| 377 |
+
'359': Pork_blood_soup
|
| 378 |
+
'360': Pork_knuckle
|
| 379 |
+
'361': Pork_Knuckles_and_Ginger_Stew
|
| 380 |
+
'362': Pork_ribs
|
| 381 |
+
'363': Pork_tenderloin
|
| 382 |
+
'364': Pork_tenderloin_sandwich
|
| 383 |
+
'365': Pot_roast
|
| 384 |
+
'366': Potato_salad
|
| 385 |
+
'367': Poutine
|
| 386 |
+
'368': Prawn_cocktail
|
| 387 |
+
'369': Prawn_soup
|
| 388 |
+
'370': Princess_cake
|
| 389 |
+
'371': Profiterole
|
| 390 |
+
'372': Pudding_corn
|
| 391 |
+
'373': Pulled_pork
|
| 392 |
+
'374': Pumpkin_bread
|
| 393 |
+
'375': Pumpkin_pie
|
| 394 |
+
'376': Quesadilla
|
| 395 |
+
'377': Queso_flameado
|
| 396 |
+
'378': Quiche_Lorraine
|
| 397 |
+
'379': Rack_of_lamb
|
| 398 |
+
'380': Raita
|
| 399 |
+
'381': Ramen
|
| 400 |
+
'382': Red_bean_cake
|
| 401 |
+
'383': Red_bean_ice
|
| 402 |
+
'384': Red_beans_and_rice
|
| 403 |
+
'385': Red_slaw
|
| 404 |
+
'386': Refried_beans
|
| 405 |
+
'387': Rendang
|
| 406 |
+
'388': Rice_and_peas
|
| 407 |
+
'389': Rice_ball
|
| 408 |
+
'390': Rice_cakes
|
| 409 |
+
'391': Rice_pudding
|
| 410 |
+
'392': Rogan_josh
|
| 411 |
+
'393': Rou_jia_mo
|
| 412 |
+
'394': Rouladen
|
| 413 |
+
'395': Salmon_pie
|
| 414 |
+
'396': Sambar
|
| 415 |
+
'397': Samgyetang
|
| 416 |
+
'398': Samosa
|
| 417 |
+
'399': Sapo_tahu
|
| 418 |
+
'400': Sardine
|
| 419 |
+
'401': Sashimi
|
| 420 |
+
'402': Sauerbraten
|
| 421 |
+
'403': Sausage_and_peppers
|
| 422 |
+
'404': Sausage_bun
|
| 423 |
+
'405': Sausage_roll
|
| 424 |
+
'406': Sausage_sandwich
|
| 425 |
+
'407': Sauteed_mushrooms
|
| 426 |
+
'408': Scampi
|
| 427 |
+
'409': Schweinshaxe
|
| 428 |
+
'410': Seafood_boil
|
| 429 |
+
'411': Seafood_pizza
|
| 430 |
+
'412': Sesame_chicken
|
| 431 |
+
'413': Shaker_Lemon_Pie
|
| 432 |
+
'414': Shanghai_fried_noodles
|
| 433 |
+
'415': She-crab_soup
|
| 434 |
+
'416': Sheep's_trotters
|
| 435 |
+
'417': Shrimp_ball
|
| 436 |
+
'418': Shrimp_toast
|
| 437 |
+
'419': Shuizhu
|
| 438 |
+
'420': Sicilian_orange_salad
|
| 439 |
+
'421': Sliced_fish_soup
|
| 440 |
+
'422': Smoked_salmon
|
| 441 |
+
'423': Soba
|
| 442 |
+
'424': Soft-shell_crab
|
| 443 |
+
'425': Sopa_de_Mandioca
|
| 444 |
+
'426': Soused_herring
|
| 445 |
+
'427': Spanish_rice
|
| 446 |
+
'428': Spatzle
|
| 447 |
+
'429': Spiced_beef
|
| 448 |
+
'430': Spinach_salad
|
| 449 |
+
'431': Spinach_soup
|
| 450 |
+
'432': Squash_soup
|
| 451 |
+
'433': Steak_tartare
|
| 452 |
+
'434': Steamed_clams
|
| 453 |
+
'435': Steamed_meatball
|
| 454 |
+
'436': Steamed_rice
|
| 455 |
+
'437': Stew_peas
|
| 456 |
+
'438': Stinky_tofu
|
| 457 |
+
'439': Stir-fried_tomato_and_scrambled_eggs
|
| 458 |
+
'440': Strawberry_cake
|
| 459 |
+
'441': Strawberry_cheesecake
|
| 460 |
+
'442': Strawberry_ice_cream
|
| 461 |
+
'443': Strawberry_jam
|
| 462 |
+
'444': Strawberry_pie
|
| 463 |
+
'445': Strawberry_sundae
|
| 464 |
+
'446': Strawberry_tart
|
| 465 |
+
'447': Stuffed_avocado
|
| 466 |
+
'448': Stuffed_eggplant
|
| 467 |
+
'449': Stuffed_mushrooms
|
| 468 |
+
'450': Stuffed_peppers
|
| 469 |
+
'451': Stuffed_tomatoes
|
| 470 |
+
'452': Suanmeitang
|
| 471 |
+
'453': Succotash
|
| 472 |
+
'454': Suckling_pig
|
| 473 |
+
'455': Svíčková
|
| 474 |
+
'456': Sweet_potato_pie
|
| 475 |
+
'457': Sweet_saffron_rice
|
| 476 |
+
'458': Syrniki
|
| 477 |
+
'459': Tabbouleh
|
| 478 |
+
'460': Tacos
|
| 479 |
+
'461': Tafelspitz
|
| 480 |
+
'462': Takoyaki
|
| 481 |
+
'463': Taro_dumpling
|
| 482 |
+
'464': Tinga_dish
|
| 483 |
+
'465': Tiramisu
|
| 484 |
+
'466': Toad_in_the_hole
|
| 485 |
+
'467': Tobiko
|
| 486 |
+
'468': Tomato_and_egg_soup
|
| 487 |
+
'469': Tomato_bredie
|
| 488 |
+
'470': Tomato_omelette
|
| 489 |
+
'471': Tomato_soup
|
| 490 |
+
'472': Tonkatsu
|
| 491 |
+
'473': Tonkotsu_ramen
|
| 492 |
+
'474': Torta_caprese
|
| 493 |
+
'475': Tostada
|
| 494 |
+
'476': Tourtière
|
| 495 |
+
'477': Tsukemono
|
| 496 |
+
'478': Tuna_fish_sandwich
|
| 497 |
+
'479': Tuna_salad
|
| 498 |
+
'480': Turnip_cake
|
| 499 |
+
'481': Twix
|
| 500 |
+
'482': Unagi
|
| 501 |
+
'483': Vegetarian_chili
|
| 502 |
+
'484': Vichyssoise
|
| 503 |
+
'485': Vindaloo
|
| 504 |
+
'486': Vitello_tonnato
|
| 505 |
+
'487': Wakame
|
| 506 |
+
'488': Wenchang_chicken
|
| 507 |
+
'489': White_boiled_shrimp
|
| 508 |
+
'490': White_cut_chicken
|
| 509 |
+
'491': Whitebait
|
| 510 |
+
'492': Wonton_noodles
|
| 511 |
+
'493': Wotou
|
| 512 |
+
'494': Yeung_Chow_fried_rice
|
| 513 |
+
'495': Youtiao
|
| 514 |
+
'496': Yuxiangrousi
|
| 515 |
+
'497': Zhajiangmian
|
| 516 |
+
'498': Zongzi
|
| 517 |
+
'499': Zurcher_Geschnetzeltes
|
| 518 |
+
---
|
food500.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
"""Dataset class for ISIA Food-500 dataset."""
|
| 16 |
+
|
| 17 |
+
import datasets
|
| 18 |
+
from datasets.tasks import ImageClassification
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
_BASE_URL = "http://123.57.42.89/Dataset_ict/ISIA_Food500_Dir/dataset/ISIA_Food500.zip"
|
| 22 |
+
|
| 23 |
+
_METADATA_URL = "http://123.57.42.89/Dataset_ict/ISIA_Food500_Dir/dataset/metadata_ISIAFood_500.zip"
|
| 24 |
+
|
| 25 |
+
_HOMEPAGE = "http://123.57.42.89/FoodComputing-Dataset/ISIA-Food500.html"
|
| 26 |
+
|
| 27 |
+
_DESCRIPTION = "ABCDescription"
|
| 28 |
+
|
| 29 |
+
_CITATION = "ABCCitation"
|
| 30 |
+
|
| 31 |
+
_LICENSE = "ABCLicense"
|
| 32 |
+
|
| 33 |
+
_NAMES = ['Abalone', 'Aburaage', 'Æbleflæsk', 'Agedashi_tofu', 'Aligot', 'Almond_biscuit', 'Aloo_gobi', 'Ambrosia_(fruit_salad)', 'Anago', 'Andong_jjimdak', 'Ants_climbing_a_tree', 'Anzac_biscuit', 'Apple_cobbler', 'Apple_crisp', 'Apple_dumpling', 'Apple_pie', 'Apple_sauce', 'Apple_strudel', 'Applesauce_cake', 'Arab_salad', 'Arancini', 'Arròs_negre', 'Asam_pedas', 'Avocado_bread', 'Avocado_fries', 'Avocado_key_lime_pie', 'Avocado_sauce', 'Avocado_toast', 'Ayam_bakar', 'Ayam_betutu', 'Ayam_goreng', 'Babi_panggang', 'Bacon_and_eggs', 'Bacon_egg_and_cheese_sandwich', 'Bacon_explosion', 'Bacon_sandwich', 'Baingan_bharta', 'Baked_beans', 'Banana_bread', 'Banana_pancakes', 'Banana_pudding', 'Banana_salad', 'Banana_split', 'Bandeja_paisa', 'Bangers_and_mash', 'Banh_bo', 'Bánh_canh', 'Bánh_chuối', 'Bean_pie', 'Bean_salad', 'Beef_bun', 'Beef_chow_fun', 'Beef_noodle_soup', 'Beef_Wellington', 'Beignet', 'Bibimbap', 'Bibingka', 'Biryani', 'Bisque_food', 'Bistek', 'Black_Forest_gateau', 'Black_pepper_crab', 'Blackberry_pie', 'Blancmange', 'BLT_sandwich', 'Blueberry_pie', 'Boiled_beef', 'Boiled_peanuts', 'Bon_bon_chicken', 'Borscht', 'Botan-ebi', 'Botifarra', 'Bouillabaisse', 'Bourbon_chicken', 'Bread_roll', 'Broccoli_slaw', 'Brown_stew_chicken', 'Bruschetta', 'Bubur_ayam', 'Bubur_kacang_hijau', 'Bugnes', 'Bun_bo_hue', 'Bún_ốc', 'Bún_riêu', 'Burrito', 'Butadon', 'Butter_cake', 'Butter_pecan', 'Butter_pie', 'Buttercream', 'Buttery_bread', 'Cabbage_soup', 'Caesar_salad', 'Café_liégeois', 'Calamari', 'Caldo_verde', 'Caprese_salad', 'Carpaccio', 'Carrot_bread', 'Carrot_cake', 'Carrot_cake_cookie', 'Carrot_chips', 'Carrot_juice', 'Carrot_salad', 'Carrot_soup', 'Cassoulet', 'Cebolada', 'Ceviche', 'Chakli', 'Champurrado', 'Char_kway_teow', 'Charqui', 'Chazuke', 'Cheese_and_tomato_sandwich', 'Cheese_bun', 'Cheese_fries', 'Cheese_maki', 'Cheese_pudding', 'Cheese_roll', 'Cheesecake', 'Cherry_cake', 'Cherry_ice_cream', 'Cherry_pie', 'Chicken_and_waffles', 'Chicken_cacciatore', 'Chicken_curry', 'Chicken_fingers', 'Chicken_Kiev', 'Chicken_marsala', 'Chicken_noodle_soup', 'Chicken_nugget', 'Chicken_parmigiana', 'Chicken_salad', 'Chicken_soup', 'Chiles_en_nogada', 'Chili_con_carne', 'Chilli_crab', 'Chinese_chicken_salad', 'Chocolate_covered_strawberries', 'Chocolate_marshmallow_pie', 'Chow_mein', 'Chowder', 'Christmas_cake', 'Churro', 'Ciambelle', 'Çiğ_köfte', 'Clam_chowder', 'Claypot_chicken_rice', 'Club_sandwich', 'Cobbler_food', 'Coconut_cake', 'Coconut_cream', 'Coconut_shrimp', 'Coda_alla_vaccinara', 'Coffee_jelly', 'Colcannon', 'Coleslaw', 'Congee', 'Corn_chip', 'Corn_crab_soup', 'Corn_dog', 'Corn_soup', 'Corn_stew', 'Corn_tortilla', 'Corned_beef_sandwich', 'Cotoletta', 'Crab_cake', 'Crab_dip', 'Crab_in_Padang_sauce', 'Crab_puff', 'Crab_rangoon', 'Cream_of_broccoli_soup', 'Cream_of_mushroom_soup', 'Cream_pie', 'Creamed_eggs_on_toast', 'Croissant', 'Crudo', 'Crumble', 'Cucumber_soup', 'Cured_salmon', 'Curry_goat', 'Curry_Mee', 'Curry_rice', 'Currywurst', 'Dandan_noodles', 'Deep-fried_peanuts', 'Denver_omelette', 'Denver_sandwich', 'Dhokla', 'Di_san_xian', 'Dinuguan', 'Dirty_Rice', "Dong'an_chicken", 'Doufunao', 'Doughnut', 'Drunken_chicken', 'Drunken_shrimp', 'Duck_soup_noodles', 'Edamame', 'Eggplant_omelette', 'Eisbein', 'Es_campur', 'Es_pisang_ijo', 'Filet_mignon', 'Fish_ball', 'Fish_chowder', 'Fish_head_casserole', 'Fish_head_curry', 'Fish_soup', 'Fish_steak', 'Fishcake', 'Fondue', 'Francesinha', 'Frappe', 'French_onion_soup', 'French_toast', 'Fricassee', 'Fried_aubergine', 'Fried_cheese', 'Fried_chicken', 'Fried_noodles', 'Fried_onion', 'Fried_rice', 'Fried_Tofu', 'Fruit_curd', 'Fuqi_feipian', 'Galbi', 'Garlic_bread', 'Gejang', 'Ginger_beef', 'Gołąbki', 'Goulash', 'Gravlax', 'Greek_salad', 'Green_bean_casserole', 'Green_papaya_salad', 'Grits', 'Gulai_Ayam', 'Gyutan', 'Hae_mee', 'Hainanese_chicken_rice', 'Ham_and_cheese_sandwich', 'Ham_salad', 'Ham_sandwich', 'hamburgers', 'Har_gow', 'Hiyayakko', 'Hokkien_mee', 'Hongshao_rou', "Hoppin'_John", 'Hot_and_sour_soup', 'Huangqiao_sesame_cake', 'Huevos_rancheros', 'Hummus', 'Ikan_bakar', 'Ikan_goreng', 'Israeli_salad', 'Italian_tomato_pie', 'Jajangmyeon', 'Jambalaya', 'Jambonneau', 'Japchae', 'Jewish_apple_cake', 'Jiuniang', 'Kachori', 'Kadhi', 'Kakuni', 'Katsudon', 'kebab', 'Kedgeree', 'Key_lime_pie', 'Konnyaku', 'Korean_fried_chicken', 'Kung_Pao_chicken', 'Kwetiau_goreng', 'Laddu', 'Laksa', 'Lamb_chop', 'Lasagna', 'Lebkuchen', 'Leek_soup', 'Lemon_chicken', 'Lemon_ice_box_pie', 'Lemon_meringue_pie', 'Lemon_tart', 'Lemonade', 'Lentil_soup', 'Lettuce_soup', 'Lo_mein', 'Lobster_bisque', 'Lohikeitto', 'Macaron', 'Mango_pomelo_sago', 'Mango_pudding', 'Mapo_doufu', 'Meatloaf', 'Mee_pok', 'Mee_siam', 'Melt_sandwich', 'Menudo', 'Mì_Quảng', 'Michigan_hot_dog', 'Mie_goreng', 'Milk_Shake', 'Minestrone', 'Mirchi_ka_salan', 'Mission_burrito', 'Mongolian_beef', 'Mousse', 'Mozzarella_sticks', 'Mushroom_gravy', 'Mushy_peas', 'Mutton_handi', 'Mutton_korma', 'Nachos', 'Naengmyeon', 'Nasi_goreng', 'Nasi_kuning', 'Nasi_liwet', 'Nattō', 'Noodle_soup', 'Nuomici', 'Okinawa_soba', 'Olivier_salad', 'Onigiri', 'Onion_ring', 'Orange_chicken', 'Oyster_omelette', 'Oysters_Rockefeller', 'Pączki', 'Paella', 'Pakora', 'Panzanella', 'Pappa_al_pomodoro', 'Parmigiana', 'Pasta', 'Pasta_al_pomodoro', 'Pasta_alla_Norma', 'Pasteis_de_Bacalhau', 'Paupiette', 'Payasam', 'Pea_soup', 'Peanut_butter_cookie', 'Peanut_soup', 'Pho', 'Pickled_cucumber', "Pig's_ear", "Pig's_organ_soup", "Pig's_trotters", 'Pineapple_tart', 'Pipikaula', 'Pizza_carbonara', 'Pizza_pugliese', 'Plateau_de_fruits_de_mer', 'Plum_cake', 'Pommes_dauphine', 'Poori', 'Porchetta', 'Pork_ball', 'Pork_blood_soup', 'Pork_knuckle', 'Pork_Knuckles_and_Ginger_Stew', 'Pork_ribs', 'Pork_tenderloin', 'Pork_tenderloin_sandwich', 'Pot_roast', 'Potato_salad', 'Poutine', 'Prawn_cocktail', 'Prawn_soup', 'Princess_cake', 'Profiterole', 'Pudding_corn', 'Pulled_pork', 'Pumpkin_bread', 'Pumpkin_pie', 'Quesadilla', 'Queso_flameado', 'Quiche_Lorraine', 'Rack_of_lamb', 'Raita', 'Ramen', 'Red_bean_cake', 'Red_bean_ice', 'Red_beans_and_rice', 'Red_slaw', 'Refried_beans', 'Rendang', 'Rice_and_peas', 'Rice_ball', 'Rice_cakes', 'Rice_pudding', 'Rogan_josh', 'Rou_jia_mo', 'Rouladen', 'Salmon_pie', 'Sambar', 'Samgyetang', 'Samosa', 'Sapo_tahu', 'Sardine', 'Sashimi', 'Sauerbraten', 'Sausage_and_peppers', 'Sausage_bun', 'Sausage_roll', 'Sausage_sandwich', 'Sauteed_mushrooms', 'Scampi', 'Schweinshaxe', 'Seafood_boil', 'Seafood_pizza', 'Sesame_chicken', 'Shaker_Lemon_Pie', 'Shanghai_fried_noodles', 'She-crab_soup', "Sheep's_trotters", 'Shrimp_ball', 'Shrimp_toast', 'Shuizhu', 'Sicilian_orange_salad', 'Sliced_fish_soup', 'Smoked_salmon', 'Soba', 'Soft-shell_crab', 'Sopa_de_Mandioca', 'Soused_herring', 'Spanish_rice', 'Spatzle', 'Spiced_beef', 'Spinach_salad', 'Spinach_soup', 'Squash_soup', 'Steak_tartare', 'Steamed_clams', 'Steamed_meatball', 'Steamed_rice', 'Stew_peas', 'Stinky_tofu', 'Stir-fried_tomato_and_scrambled_eggs', 'Strawberry_cake', 'Strawberry_cheesecake', 'Strawberry_ice_cream', 'Strawberry_jam', 'Strawberry_pie', 'Strawberry_sundae', 'Strawberry_tart', 'Stuffed_avocado', 'Stuffed_eggplant', 'Stuffed_mushrooms', 'Stuffed_peppers', 'Stuffed_tomatoes', 'Suanmeitang', 'Succotash', 'Suckling_pig', 'Svíčková', 'Sweet_potato_pie', 'Sweet_saffron_rice', 'Syrniki', 'Tabbouleh', 'Tacos', 'Tafelspitz', 'Takoyaki', 'Taro_dumpling', 'Tinga_dish', 'Tiramisu', 'Toad_in_the_hole', 'Tobiko', 'Tomato_and_egg_soup', 'Tomato_bredie', 'Tomato_omelette', 'Tomato_soup', 'Tonkatsu', 'Tonkotsu_ramen', 'Torta_caprese', 'Tostada', 'Tourtière', 'Tsukemono', 'Tuna_fish_sandwich', 'Tuna_salad', 'Turnip_cake', 'Twix', 'Unagi', 'Vegetarian_chili', 'Vichyssoise', 'Vindaloo', 'Vitello_tonnato', 'Wakame', 'Wenchang_chicken', 'White_boiled_shrimp', 'White_cut_chicken', 'Whitebait', 'Wonton_noodles', 'Wotou', 'Yeung_Chow_fried_rice', 'Youtiao', 'Yuxiangrousi', 'Zhajiangmian', 'Zongzi', 'Zurcher_Geschnetzeltes']
|
| 34 |
+
|
| 35 |
+
_IMAGES_DIR = "ISIA_Food500/images"
|
| 36 |
+
|
| 37 |
+
_TRAIN_DIR = "train_feature.txt"
|
| 38 |
+
|
| 39 |
+
_VALID_DIR = "val_feature.txt"
|
| 40 |
+
|
| 41 |
+
_TEST_DIR = "test_feature.txt"
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
class Food500(datasets.GeneratorBasedBuilder):
|
| 45 |
+
"""Food-500 Images dataset."""
|
| 46 |
+
|
| 47 |
+
def _info(self):
|
| 48 |
+
|
| 49 |
+
return datasets.DatasetInfo(
|
| 50 |
+
description=_DESCRIPTION,
|
| 51 |
+
features=datasets.Features(
|
| 52 |
+
{
|
| 53 |
+
"image": datasets.Image(),
|
| 54 |
+
"label": datasets.ClassLabel(names=_NAMES),
|
| 55 |
+
}
|
| 56 |
+
),
|
| 57 |
+
supervised_keys=("image", "label"),
|
| 58 |
+
homepage=_HOMEPAGE,
|
| 59 |
+
citation=_CITATION,
|
| 60 |
+
license=_LICENSE,
|
| 61 |
+
task_templates=[ImageClassification(image_column="image", label_column="label")],
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
def _split_generators(self, dl_manager):
|
| 65 |
+
archive_path = dl_manager.download(_BASE_URL)
|
| 66 |
+
split_metadata_path = dl_manager.download_and_extract(_METADATA_URL)
|
| 67 |
+
return [
|
| 68 |
+
datasets.SplitGenerator(
|
| 69 |
+
name=datasets.Split.TRAIN,
|
| 70 |
+
gen_kwargs={
|
| 71 |
+
"images": dl_manager.iter_archive(archive_path),
|
| 72 |
+
"metadata_path": split_metadata_path + _TRAIN_DIR,
|
| 73 |
+
},
|
| 74 |
+
),
|
| 75 |
+
datasets.SplitGenerator(
|
| 76 |
+
name=datasets.Split.VALIDATION,
|
| 77 |
+
gen_kwargs={
|
| 78 |
+
"images": dl_manager.iter_archive(archive_path),
|
| 79 |
+
"metadata_path": split_metadata_path + _VALID_DIR,
|
| 80 |
+
},
|
| 81 |
+
),
|
| 82 |
+
datasets.SplitGenerator(
|
| 83 |
+
name=datasets.Split.TEST,
|
| 84 |
+
gen_kwargs={
|
| 85 |
+
"images": dl_manager.iter_archive(archive_path),
|
| 86 |
+
"metadata_path": split_metadata_path + _TEST_DIR,
|
| 87 |
+
},
|
| 88 |
+
),
|
| 89 |
+
]
|
| 90 |
+
|
| 91 |
+
def _generate_examples(self, images, metadata_path):
|
| 92 |
+
"""Generate images and labels for splits."""
|
| 93 |
+
with open(metadata_path, encoding="utf-8") as f:
|
| 94 |
+
files_to_keep = set(f.read().split("\n"))
|
| 95 |
+
for file_path, file_obj in images:
|
| 96 |
+
if file_path.startswith(_IMAGES_DIR):
|
| 97 |
+
if file_path[len(_IMAGES_DIR) : -len(".jpg")] in files_to_keep:
|
| 98 |
+
label = file_path.split("/")[2]
|
| 99 |
+
yield file_path, {
|
| 100 |
+
"image": {"path": file_path, "bytes": file_obj.read()},
|
| 101 |
+
"label": label,
|
| 102 |
+
}
|