parquet-converter commited on
Commit
06a7b10
1 Parent(s): bbaf95d

Update parquet files

Browse files
README.md DELETED
@@ -1,404 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - crowdsourced
4
- language_creators:
5
- - crowdsourced
6
- language:
7
- - en
8
- license:
9
- - unknown
10
- multilinguality:
11
- - monolingual
12
- pretty_name: Food-101
13
- size_categories:
14
- - 10K<n<100K
15
- source_datasets:
16
- - extended|other-foodspotting
17
- task_categories:
18
- - image-classification
19
- task_ids:
20
- - multi-class-image-classification
21
- paperswithcode_id: food-101
22
- dataset_info:
23
- features:
24
- - name: image
25
- dtype: image
26
- - name: label
27
- dtype:
28
- class_label:
29
- names:
30
- 0: apple_pie
31
- 1: baby_back_ribs
32
- 2: baklava
33
- 3: beef_carpaccio
34
- 4: beef_tartare
35
- 5: beet_salad
36
- 6: beignets
37
- 7: bibimbap
38
- 8: bread_pudding
39
- 9: breakfast_burrito
40
- 10: bruschetta
41
- 11: caesar_salad
42
- 12: cannoli
43
- 13: caprese_salad
44
- 14: carrot_cake
45
- 15: ceviche
46
- 16: cheesecake
47
- 17: cheese_plate
48
- 18: chicken_curry
49
- 19: chicken_quesadilla
50
- 20: chicken_wings
51
- 21: chocolate_cake
52
- 22: chocolate_mousse
53
- 23: churros
54
- 24: clam_chowder
55
- 25: club_sandwich
56
- 26: crab_cakes
57
- 27: creme_brulee
58
- 28: croque_madame
59
- 29: cup_cakes
60
- 30: deviled_eggs
61
- 31: donuts
62
- 32: dumplings
63
- 33: edamame
64
- 34: eggs_benedict
65
- 35: escargots
66
- 36: falafel
67
- 37: filet_mignon
68
- 38: fish_and_chips
69
- 39: foie_gras
70
- 40: french_fries
71
- 41: french_onion_soup
72
- 42: french_toast
73
- 43: fried_calamari
74
- 44: fried_rice
75
- 45: frozen_yogurt
76
- 46: garlic_bread
77
- 47: gnocchi
78
- 48: greek_salad
79
- 49: grilled_cheese_sandwich
80
- 50: grilled_salmon
81
- 51: guacamole
82
- 52: gyoza
83
- 53: hamburger
84
- 54: hot_and_sour_soup
85
- 55: hot_dog
86
- 56: huevos_rancheros
87
- 57: hummus
88
- 58: ice_cream
89
- 59: lasagna
90
- 60: lobster_bisque
91
- 61: lobster_roll_sandwich
92
- 62: macaroni_and_cheese
93
- 63: macarons
94
- 64: miso_soup
95
- 65: mussels
96
- 66: nachos
97
- 67: omelette
98
- 68: onion_rings
99
- 69: oysters
100
- 70: pad_thai
101
- 71: paella
102
- 72: pancakes
103
- 73: panna_cotta
104
- 74: peking_duck
105
- 75: pho
106
- 76: pizza
107
- 77: pork_chop
108
- 78: poutine
109
- 79: prime_rib
110
- 80: pulled_pork_sandwich
111
- 81: ramen
112
- 82: ravioli
113
- 83: red_velvet_cake
114
- 84: risotto
115
- 85: samosa
116
- 86: sashimi
117
- 87: scallops
118
- 88: seaweed_salad
119
- 89: shrimp_and_grits
120
- 90: spaghetti_bolognese
121
- 91: spaghetti_carbonara
122
- 92: spring_rolls
123
- 93: steak
124
- 94: strawberry_shortcake
125
- 95: sushi
126
- 96: tacos
127
- 97: takoyaki
128
- 98: tiramisu
129
- 99: tuna_tartare
130
- 100: waffles
131
- splits:
132
- - name: train
133
- num_bytes: 3845865322
134
- num_examples: 75750
135
- - name: validation
136
- num_bytes: 1276249954
137
- num_examples: 25250
138
- download_size: 4998236572
139
- dataset_size: 5122115276
140
- ---
141
-
142
- # Dataset Card for Food-101
143
-
144
- ## Table of Contents
145
- - [Table of Contents](#table-of-contents)
146
- - [Dataset Description](#dataset-description)
147
- - [Dataset Summary](#dataset-summary)
148
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
149
- - [Languages](#languages)
150
- - [Dataset Structure](#dataset-structure)
151
- - [Data Instances](#data-instances)
152
- - [Data Fields](#data-fields)
153
- - [Data Splits](#data-splits)
154
- - [Dataset Creation](#dataset-creation)
155
- - [Curation Rationale](#curation-rationale)
156
- - [Source Data](#source-data)
157
- - [Annotations](#annotations)
158
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
159
- - [Considerations for Using the Data](#considerations-for-using-the-data)
160
- - [Social Impact of Dataset](#social-impact-of-dataset)
161
- - [Discussion of Biases](#discussion-of-biases)
162
- - [Other Known Limitations](#other-known-limitations)
163
- - [Additional Information](#additional-information)
164
- - [Dataset Curators](#dataset-curators)
165
- - [Licensing Information](#licensing-information)
166
- - [Citation Information](#citation-information)
167
- - [Contributions](#contributions)
168
-
169
- ## Dataset Description
170
-
171
- - **Homepage:** [Food-101 Dataset](https://data.vision.ee.ethz.ch/cvl/datasets_extra/food-101/)
172
- - **Repository:**
173
- - **Paper:** [Paper](https://data.vision.ee.ethz.ch/cvl/datasets_extra/food-101/static/bossard_eccv14_food-101.pdf)
174
- - **Leaderboard:**
175
- - **Point of Contact:**
176
-
177
- ### Dataset Summary
178
-
179
- This dataset consists of 101 food categories, with 101'000 images. For each class, 250 manually reviewed test images are provided as well as 750 training images. On purpose, the training images were not cleaned, and thus still contain some amount of noise. This comes mostly in the form of intense colors and sometimes wrong labels. All images were rescaled to have a maximum side length of 512 pixels.
180
-
181
- ### Supported Tasks and Leaderboards
182
-
183
- - `image-classification`: The goal of this task is to classify a given image of a dish into one of 101 classes. The leaderboard is available [here](https://paperswithcode.com/sota/fine-grained-image-classification-on-food-101).
184
-
185
- ### Languages
186
-
187
- English
188
-
189
- ## Dataset Structure
190
-
191
- ### Data Instances
192
-
193
- A sample from the training set is provided below:
194
-
195
- ```
196
- {
197
- 'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=384x512 at 0x276021C5EB8>,
198
- 'label': 23
199
- }
200
- ```
201
-
202
- ### Data Fields
203
-
204
- The data instances have the following fields:
205
-
206
- - `image`: A `PIL.Image.Image` object containing the image. Note that when accessing the image column: `dataset[0]["image"]` the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the `"image"` column, *i.e.* `dataset[0]["image"]` should **always** be preferred over `dataset["image"][0]`.
207
- - `label`: an `int` classification label.
208
-
209
- <details>
210
- <summary>Class Label Mappings</summary>
211
-
212
- ```json
213
- {
214
- "apple_pie": 0,
215
- "baby_back_ribs": 1,
216
- "baklava": 2,
217
- "beef_carpaccio": 3,
218
- "beef_tartare": 4,
219
- "beet_salad": 5,
220
- "beignets": 6,
221
- "bibimbap": 7,
222
- "bread_pudding": 8,
223
- "breakfast_burrito": 9,
224
- "bruschetta": 10,
225
- "caesar_salad": 11,
226
- "cannoli": 12,
227
- "caprese_salad": 13,
228
- "carrot_cake": 14,
229
- "ceviche": 15,
230
- "cheesecake": 16,
231
- "cheese_plate": 17,
232
- "chicken_curry": 18,
233
- "chicken_quesadilla": 19,
234
- "chicken_wings": 20,
235
- "chocolate_cake": 21,
236
- "chocolate_mousse": 22,
237
- "churros": 23,
238
- "clam_chowder": 24,
239
- "club_sandwich": 25,
240
- "crab_cakes": 26,
241
- "creme_brulee": 27,
242
- "croque_madame": 28,
243
- "cup_cakes": 29,
244
- "deviled_eggs": 30,
245
- "donuts": 31,
246
- "dumplings": 32,
247
- "edamame": 33,
248
- "eggs_benedict": 34,
249
- "escargots": 35,
250
- "falafel": 36,
251
- "filet_mignon": 37,
252
- "fish_and_chips": 38,
253
- "foie_gras": 39,
254
- "french_fries": 40,
255
- "french_onion_soup": 41,
256
- "french_toast": 42,
257
- "fried_calamari": 43,
258
- "fried_rice": 44,
259
- "frozen_yogurt": 45,
260
- "garlic_bread": 46,
261
- "gnocchi": 47,
262
- "greek_salad": 48,
263
- "grilled_cheese_sandwich": 49,
264
- "grilled_salmon": 50,
265
- "guacamole": 51,
266
- "gyoza": 52,
267
- "hamburger": 53,
268
- "hot_and_sour_soup": 54,
269
- "hot_dog": 55,
270
- "huevos_rancheros": 56,
271
- "hummus": 57,
272
- "ice_cream": 58,
273
- "lasagna": 59,
274
- "lobster_bisque": 60,
275
- "lobster_roll_sandwich": 61,
276
- "macaroni_and_cheese": 62,
277
- "macarons": 63,
278
- "miso_soup": 64,
279
- "mussels": 65,
280
- "nachos": 66,
281
- "omelette": 67,
282
- "onion_rings": 68,
283
- "oysters": 69,
284
- "pad_thai": 70,
285
- "paella": 71,
286
- "pancakes": 72,
287
- "panna_cotta": 73,
288
- "peking_duck": 74,
289
- "pho": 75,
290
- "pizza": 76,
291
- "pork_chop": 77,
292
- "poutine": 78,
293
- "prime_rib": 79,
294
- "pulled_pork_sandwich": 80,
295
- "ramen": 81,
296
- "ravioli": 82,
297
- "red_velvet_cake": 83,
298
- "risotto": 84,
299
- "samosa": 85,
300
- "sashimi": 86,
301
- "scallops": 87,
302
- "seaweed_salad": 88,
303
- "shrimp_and_grits": 89,
304
- "spaghetti_bolognese": 90,
305
- "spaghetti_carbonara": 91,
306
- "spring_rolls": 92,
307
- "steak": 93,
308
- "strawberry_shortcake": 94,
309
- "sushi": 95,
310
- "tacos": 96,
311
- "takoyaki": 97,
312
- "tiramisu": 98,
313
- "tuna_tartare": 99,
314
- "waffles": 100
315
- }
316
- ```
317
- </details>
318
-
319
-
320
- ### Data Splits
321
-
322
-
323
- | |train|validation|
324
- |----------|----:|---------:|
325
- |# of examples|75750|25250|
326
-
327
-
328
- ## Dataset Creation
329
-
330
- ### Curation Rationale
331
-
332
- [More Information Needed]
333
-
334
- ### Source Data
335
-
336
- #### Initial Data Collection and Normalization
337
-
338
- [More Information Needed]
339
-
340
- #### Who are the source language producers?
341
-
342
- [More Information Needed]
343
-
344
- ### Annotations
345
-
346
- #### Annotation process
347
-
348
- [More Information Needed]
349
-
350
- #### Who are the annotators?
351
-
352
- [More Information Needed]
353
-
354
- ### Personal and Sensitive Information
355
-
356
- [More Information Needed]
357
-
358
- ## Considerations for Using the Data
359
-
360
- ### Social Impact of Dataset
361
-
362
- [More Information Needed]
363
-
364
- ### Discussion of Biases
365
-
366
- [More Information Needed]
367
-
368
- ### Other Known Limitations
369
-
370
- [More Information Needed]
371
-
372
- ## Additional Information
373
-
374
- ### Dataset Curators
375
-
376
- [More Information Needed]
377
-
378
- ### Licensing Information
379
-
380
- LICENSE AGREEMENT
381
- =================
382
- - The Food-101 data set consists of images from Foodspotting [1] which are not
383
- property of the Federal Institute of Technology Zurich (ETHZ). Any use beyond
384
- scientific fair use must be negociated with the respective picture owners
385
- according to the Foodspotting terms of use [2].
386
-
387
- [1] http://www.foodspotting.com/
388
- [2] http://www.foodspotting.com/terms/
389
-
390
-
391
- ### Citation Information
392
-
393
- ```
394
- @inproceedings{bossard14,
395
- title = {Food-101 -- Mining Discriminative Components with Random Forests},
396
- author = {Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc},
397
- booktitle = {European Conference on Computer Vision},
398
- year = {2014}
399
- }
400
- ```
401
-
402
- ### Contributions
403
-
404
- Thanks to [@nateraw](https://github.com/nateraw) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "This dataset consists of 101 food categories, with 101'000 images. For each class, 250 manually reviewed test images are provided as well as 750 training images. On purpose, the training images were not cleaned, and thus still contain some amount of noise. This comes mostly in the form of intense colors and sometimes wrong labels. All images were rescaled to have a maximum side length of 512 pixels.", "citation": " @inproceedings{bossard14,\n title = {Food-101 -- Mining Discriminative Components with Random Forests},\n author = {Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc},\n booktitle = {European Conference on Computer Vision},\n year = {2014}\n}\n", "homepage": "https://data.vision.ee.ethz.ch/cvl/datasets_extra/food-101/", "license": "LICENSE AGREEMENT\n=================\n - The Food-101 data set consists of images from Foodspotting [1] which are not\n property of the Federal Institute of Technology Zurich (ETHZ). Any use beyond\n scientific fair use must be negociated with the respective picture owners\n according to the Foodspotting terms of use [2].\n\n[1] http://www.foodspotting.com/\n[2] http://www.foodspotting.com/terms/\n", "features": {"image": {"id": null, "_type": "Image"}, "label": {"num_classes": 101, "names": ["apple_pie", "baby_back_ribs", "baklava", "beef_carpaccio", "beef_tartare", "beet_salad", "beignets", "bibimbap", "bread_pudding", "breakfast_burrito", "bruschetta", "caesar_salad", "cannoli", "caprese_salad", "carrot_cake", "ceviche", "cheesecake", "cheese_plate", "chicken_curry", "chicken_quesadilla", "chicken_wings", "chocolate_cake", "chocolate_mousse", "churros", "clam_chowder", "club_sandwich", "crab_cakes", "creme_brulee", "croque_madame", "cup_cakes", "deviled_eggs", "donuts", "dumplings", "edamame", "eggs_benedict", "escargots", "falafel", "filet_mignon", "fish_and_chips", "foie_gras", "french_fries", "french_onion_soup", "french_toast", "fried_calamari", "fried_rice", "frozen_yogurt", "garlic_bread", "gnocchi", "greek_salad", "grilled_cheese_sandwich", "grilled_salmon", "guacamole", "gyoza", "hamburger", "hot_and_sour_soup", "hot_dog", "huevos_rancheros", "hummus", "ice_cream", "lasagna", "lobster_bisque", "lobster_roll_sandwich", "macaroni_and_cheese", "macarons", "miso_soup", "mussels", "nachos", "omelette", "onion_rings", "oysters", "pad_thai", "paella", "pancakes", "panna_cotta", "peking_duck", "pho", "pizza", "pork_chop", "poutine", "prime_rib", "pulled_pork_sandwich", "ramen", "ravioli", "red_velvet_cake", "risotto", "samosa", "sashimi", "scallops", "seaweed_salad", "shrimp_and_grits", "spaghetti_bolognese", "spaghetti_carbonara", "spring_rolls", "steak", "strawberry_shortcake", "sushi", "tacos", "takoyaki", "tiramisu", "tuna_tartare", "waffles"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "image", "output": "label"}, "task_templates": [{"task": "image-classification", "image_column": "image", "label_column": "label", "labels": ["apple_pie", "baby_back_ribs", "baklava", "beef_carpaccio", "beef_tartare", "beet_salad", "beignets", "bibimbap", "bread_pudding", "breakfast_burrito", "bruschetta", "caesar_salad", "cannoli", "caprese_salad", "carrot_cake", "ceviche", "cheese_plate", "cheesecake", "chicken_curry", "chicken_quesadilla", "chicken_wings", "chocolate_cake", "chocolate_mousse", "churros", "clam_chowder", "club_sandwich", "crab_cakes", "creme_brulee", "croque_madame", "cup_cakes", "deviled_eggs", "donuts", "dumplings", "edamame", "eggs_benedict", "escargots", "falafel", "filet_mignon", "fish_and_chips", "foie_gras", "french_fries", "french_onion_soup", "french_toast", "fried_calamari", "fried_rice", "frozen_yogurt", "garlic_bread", "gnocchi", "greek_salad", "grilled_cheese_sandwich", "grilled_salmon", "guacamole", "gyoza", "hamburger", "hot_and_sour_soup", "hot_dog", "huevos_rancheros", "hummus", "ice_cream", "lasagna", "lobster_bisque", "lobster_roll_sandwich", "macaroni_and_cheese", "macarons", "miso_soup", "mussels", "nachos", "omelette", "onion_rings", "oysters", "pad_thai", "paella", "pancakes", "panna_cotta", "peking_duck", "pho", "pizza", "pork_chop", "poutine", "prime_rib", "pulled_pork_sandwich", "ramen", "ravioli", "red_velvet_cake", "risotto", "samosa", "sashimi", "scallops", "seaweed_salad", "shrimp_and_grits", "spaghetti_bolognese", "spaghetti_carbonara", "spring_rolls", "steak", "strawberry_shortcake", "sushi", "tacos", "takoyaki", "tiramisu", "tuna_tartare", "waffles"]}], "builder_name": "food101", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3845865322, "num_examples": 75750, "dataset_name": "food101"}, "validation": {"name": "validation", "num_bytes": 1276249954, "num_examples": 25250, "dataset_name": "food101"}}, "download_checksums": {"http://data.vision.ee.ethz.ch/cvl/food-101.tar.gz": {"num_bytes": 4996278331, "checksum": "d97d15e438b7f4498f96086a4f7e2fa42a32f2712e87d3295441b2b6314053a4"}, "https://s3.amazonaws.com/datasets.huggingface.co/food101/meta/train.txt": {"num_bytes": 1468812, "checksum": "2920f7d55473974492b41a01241ccfd71df1b74d29d27b617337f840f58f77ab"}, "https://s3.amazonaws.com/datasets.huggingface.co/food101/meta/test.txt": {"num_bytes": 489429, "checksum": "440d53374697d019a972fe66e8e44031ae80267a126ecb814ad537ec1fd506db"}}, "download_size": 4998236572, "post_processing_size": null, "dataset_size": 5122115276, "size_in_bytes": 10120351848}}
 
 
default/food101-train-00000-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:758034bc77eb7aa93d93b0c6072ad5490d920359f1e420a19d5ed03c0acb81d1
3
+ size 496521971
default/food101-train-00001-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed472c47ca3521769f7e06eda4dd0754bb36a5037547f5db581a75f70b2c5f17
3
+ size 495337456
default/food101-train-00002-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dce8258f5e3ebd209ae7ecd93ec27403b89146167deab42c82b57578f85de44
3
+ size 497528922
default/food101-train-00003-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23dfd1d5eb46ff1759957f5a04ff1160dbd624025864cca8eb385519044e7d76
3
+ size 496596315
default/food101-train-00004-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bf8288e429fa37702695f9e0bf9d0c278c7e963846a67f8cc554dca0f1f8eb9
3
+ size 494883935
default/food101-train-00005-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe27740ff8235efdabfb62fd22e94de3233e615763685c5323ec657d701f377a
3
+ size 495336678
default/food101-train-00006-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d401c650bd3dc44315e6142704220ec7a5f9a2f9679fd90a6e1d49fbe8404f7b
3
+ size 494299728
default/food101-train-00007-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fae69b4db5b7003c18e8a7bb190c4a2bd4dbfea4b35f790da03a32e47e817455
3
+ size 328063993
default/food101-validation-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:020e72a6f5bb33ad9418f4493f67eb31ef54bba026e4da63cee5aa2b7a29ef70
3
+ size 495160084
default/food101-validation-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87e33b6ca2b9e03bf0fd60e8c9c9d3aaabea89fddbf4e323665dad4efc3f0766
3
+ size 496428516
default/food101-validation-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccd5d90dba4e33f414f4875b3f27da73dced732a8ff69ebe07ae696c3872d91c
3
+ size 269565971
food101.py DELETED
@@ -1,217 +0,0 @@
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 Food-101 dataset."""
16
-
17
- import datasets
18
- from datasets.tasks import ImageClassification
19
-
20
-
21
- _BASE_URL = "http://data.vision.ee.ethz.ch/cvl/food-101.tar.gz"
22
-
23
- _METADATA_URLS = {
24
- "train": "https://s3.amazonaws.com/datasets.huggingface.co/food101/meta/train.txt",
25
- "test": "https://s3.amazonaws.com/datasets.huggingface.co/food101/meta/test.txt",
26
- }
27
-
28
- _HOMEPAGE = "https://data.vision.ee.ethz.ch/cvl/datasets_extra/food-101/"
29
-
30
- _DESCRIPTION = (
31
- "This dataset consists of 101 food categories, with 101'000 images. For "
32
- "each class, 250 manually reviewed test images are provided as well as 750"
33
- " training images. On purpose, the training images were not cleaned, and "
34
- "thus still contain some amount of noise. This comes mostly in the form of"
35
- " intense colors and sometimes wrong labels. All images were rescaled to "
36
- "have a maximum side length of 512 pixels."
37
- )
38
-
39
- _CITATION = """\
40
- @inproceedings{bossard14,
41
- title = {Food-101 -- Mining Discriminative Components with Random Forests},
42
- author = {Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc},
43
- booktitle = {European Conference on Computer Vision},
44
- year = {2014}
45
- }
46
- """
47
-
48
- _LICENSE = """\
49
- LICENSE AGREEMENT
50
- =================
51
- - The Food-101 data set consists of images from Foodspotting [1] which are not
52
- property of the Federal Institute of Technology Zurich (ETHZ). Any use beyond
53
- scientific fair use must be negociated with the respective picture owners
54
- according to the Foodspotting terms of use [2].
55
-
56
- [1] http://www.foodspotting.com/
57
- [2] http://www.foodspotting.com/terms/
58
- """
59
-
60
- _NAMES = [
61
- "apple_pie",
62
- "baby_back_ribs",
63
- "baklava",
64
- "beef_carpaccio",
65
- "beef_tartare",
66
- "beet_salad",
67
- "beignets",
68
- "bibimbap",
69
- "bread_pudding",
70
- "breakfast_burrito",
71
- "bruschetta",
72
- "caesar_salad",
73
- "cannoli",
74
- "caprese_salad",
75
- "carrot_cake",
76
- "ceviche",
77
- "cheesecake",
78
- "cheese_plate",
79
- "chicken_curry",
80
- "chicken_quesadilla",
81
- "chicken_wings",
82
- "chocolate_cake",
83
- "chocolate_mousse",
84
- "churros",
85
- "clam_chowder",
86
- "club_sandwich",
87
- "crab_cakes",
88
- "creme_brulee",
89
- "croque_madame",
90
- "cup_cakes",
91
- "deviled_eggs",
92
- "donuts",
93
- "dumplings",
94
- "edamame",
95
- "eggs_benedict",
96
- "escargots",
97
- "falafel",
98
- "filet_mignon",
99
- "fish_and_chips",
100
- "foie_gras",
101
- "french_fries",
102
- "french_onion_soup",
103
- "french_toast",
104
- "fried_calamari",
105
- "fried_rice",
106
- "frozen_yogurt",
107
- "garlic_bread",
108
- "gnocchi",
109
- "greek_salad",
110
- "grilled_cheese_sandwich",
111
- "grilled_salmon",
112
- "guacamole",
113
- "gyoza",
114
- "hamburger",
115
- "hot_and_sour_soup",
116
- "hot_dog",
117
- "huevos_rancheros",
118
- "hummus",
119
- "ice_cream",
120
- "lasagna",
121
- "lobster_bisque",
122
- "lobster_roll_sandwich",
123
- "macaroni_and_cheese",
124
- "macarons",
125
- "miso_soup",
126
- "mussels",
127
- "nachos",
128
- "omelette",
129
- "onion_rings",
130
- "oysters",
131
- "pad_thai",
132
- "paella",
133
- "pancakes",
134
- "panna_cotta",
135
- "peking_duck",
136
- "pho",
137
- "pizza",
138
- "pork_chop",
139
- "poutine",
140
- "prime_rib",
141
- "pulled_pork_sandwich",
142
- "ramen",
143
- "ravioli",
144
- "red_velvet_cake",
145
- "risotto",
146
- "samosa",
147
- "sashimi",
148
- "scallops",
149
- "seaweed_salad",
150
- "shrimp_and_grits",
151
- "spaghetti_bolognese",
152
- "spaghetti_carbonara",
153
- "spring_rolls",
154
- "steak",
155
- "strawberry_shortcake",
156
- "sushi",
157
- "tacos",
158
- "takoyaki",
159
- "tiramisu",
160
- "tuna_tartare",
161
- "waffles",
162
- ]
163
-
164
- _IMAGES_DIR = "food-101/images/"
165
-
166
-
167
- class Food101(datasets.GeneratorBasedBuilder):
168
- """Food-101 Images dataset."""
169
-
170
- def _info(self):
171
- return datasets.DatasetInfo(
172
- description=_DESCRIPTION,
173
- features=datasets.Features(
174
- {
175
- "image": datasets.Image(),
176
- "label": datasets.ClassLabel(names=_NAMES),
177
- }
178
- ),
179
- supervised_keys=("image", "label"),
180
- homepage=_HOMEPAGE,
181
- citation=_CITATION,
182
- license=_LICENSE,
183
- task_templates=[ImageClassification(image_column="image", label_column="label")],
184
- )
185
-
186
- def _split_generators(self, dl_manager):
187
- archive_path = dl_manager.download(_BASE_URL)
188
- split_metadata_paths = dl_manager.download(_METADATA_URLS)
189
- return [
190
- datasets.SplitGenerator(
191
- name=datasets.Split.TRAIN,
192
- gen_kwargs={
193
- "images": dl_manager.iter_archive(archive_path),
194
- "metadata_path": split_metadata_paths["train"],
195
- },
196
- ),
197
- datasets.SplitGenerator(
198
- name=datasets.Split.VALIDATION,
199
- gen_kwargs={
200
- "images": dl_manager.iter_archive(archive_path),
201
- "metadata_path": split_metadata_paths["test"],
202
- },
203
- ),
204
- ]
205
-
206
- def _generate_examples(self, images, metadata_path):
207
- """Generate images and labels for splits."""
208
- with open(metadata_path, encoding="utf-8") as f:
209
- files_to_keep = set(f.read().split("\n"))
210
- for file_path, file_obj in images:
211
- if file_path.startswith(_IMAGES_DIR):
212
- if file_path[len(_IMAGES_DIR) : -len(".jpg")] in files_to_keep:
213
- label = file_path.split("/")[2]
214
- yield file_path, {
215
- "image": {"path": file_path, "bytes": file_obj.read()},
216
- "label": label,
217
- }