tejasmishra77 EduardoPacheco commited on
Commit
8e90f75
·
0 Parent(s):

Duplicate from EduardoPacheco/FoodSeg103

Browse files

Co-authored-by: Eduardo Pacheco <EduardoPacheco@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ size_categories:
4
+ - n<1K
5
+ task_categories:
6
+ - image-segmentation
7
+ task_ids:
8
+ - semantic-segmentation
9
+ dataset_info:
10
+ features:
11
+ - name: image
12
+ dtype: image
13
+ - name: label
14
+ dtype: image
15
+ - name: classes_on_image
16
+ sequence: int64
17
+ - name: id
18
+ dtype: int64
19
+ splits:
20
+ - name: train
21
+ num_bytes: 1140887299.125
22
+ num_examples: 4983
23
+ - name: validation
24
+ num_bytes: 115180784.125
25
+ num_examples: 2135
26
+ download_size: 1254703923
27
+ dataset_size: 1256068083.25
28
+ configs:
29
+ - config_name: default
30
+ data_files:
31
+ - split: train
32
+ path: data/train-*
33
+ - split: validation
34
+ path: data/validation-*
35
+ ---
36
+
37
+ # Dataset Card for FoodSeg103
38
+
39
+ ## Table of Contents
40
+ - [Dataset Card for FoodSeg103](#dataset-card-for-foodseg103)
41
+ - [Table of Contents](#table-of-contents)
42
+ - [Dataset Description](#dataset-description)
43
+ - [Dataset Summary](#dataset-summary)
44
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
45
+ - [Dataset Structure](#dataset-structure)
46
+ - [Data categories](#data-categories)
47
+ - [Data Splits](#data-splits)
48
+ - [Dataset Creation](#dataset-creation)
49
+ - [Curation Rationale](#curation-rationale)
50
+ - [Source Data](#source-data)
51
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
52
+ - [Annotations](#annotations)
53
+ - [Annotation process](#annotation-process)
54
+ - [Refinement process](#refinement-process)
55
+ - [Who are the annotators?](#who-are-the-annotators)
56
+ - [Additional Information](#additional-information)
57
+ - [Dataset Curators](#dataset-curators)
58
+ - [Licensing Information](#licensing-information)
59
+ - [Citation Information](#citation-information)
60
+
61
+ ## Dataset Description
62
+
63
+ - **Homepage:** [Dataset homepage](https://xiongweiwu.github.io/foodseg103.html)
64
+ - **Repository:** [FoodSeg103-Benchmark-v1](https://github.com/LARC-CMU-SMU/FoodSeg103-Benchmark-v1)
65
+ - **Paper:** [A Large-Scale Benchmark for Food Image Segmentation](https://arxiv.org/pdf/2105.05409.pdf)
66
+ - **Point of Contact:** [Not Defined]
67
+
68
+ ### Dataset Summary
69
+
70
+ FoodSeg103 is a large-scale benchmark for food image segmentation. It contains 103 food categories and 7118 images with ingredient level pixel-wise annotations. The dataset is a curated sample from [Recipe1M](https://github.com/facebookresearch/inversecooking) and annotated and refined by human annotators. The dataset is split into 2 subsets: training set, validation set. The training set contains 4983 images and the validation set contains 2135 images.
71
+
72
+ ### Supported Tasks and Leaderboards
73
+
74
+ No leaderboard is available for this dataset at the moment.
75
+
76
+ ## Dataset Structure
77
+
78
+ ### Data categories
79
+
80
+ | id | ingridient |
81
+ | --- | ---- |
82
+ | 0 | background |
83
+ | 1 | candy |
84
+ | 2 | egg tart |
85
+ | 3 | french fries |
86
+ | 4 | chocolate |
87
+ | 5 | biscuit |
88
+ | 6 | popcorn |
89
+ | 7 | pudding |
90
+ | 8 | ice cream |
91
+ | 9 | cheese butter |
92
+ | 10 | cake |
93
+ | 11 | wine |
94
+ | 12 | milkshake |
95
+ | 13 | coffee |
96
+ | 14 | juice |
97
+ | 15 | milk |
98
+ | 16 | tea |
99
+ | 17 | almond |
100
+ | 18 | red beans |
101
+ | 19 | cashew |
102
+ | 20 | dried cranberries |
103
+ | 21 | soy |
104
+ | 22 | walnut |
105
+ | 23 | peanut |
106
+ | 24 | egg |
107
+ | 25 | apple |
108
+ | 26 | date |
109
+ | 27 | apricot |
110
+ | 28 | avocado |
111
+ | 29 | banana |
112
+ | 30 | strawberry |
113
+ | 31 | cherry |
114
+ | 32 | blueberry |
115
+ | 33 | raspberry |
116
+ | 34 | mango |
117
+ | 35 | olives |
118
+ | 36 | peach |
119
+ | 37 | lemon |
120
+ | 38 | pear |
121
+ | 39 | fig |
122
+ | 40 | pineapple |
123
+ | 41 | grape |
124
+ | 42 | kiwi |
125
+ | 43 | melon |
126
+ | 44 | orange |
127
+ | 45 | watermelon |
128
+ | 46 | steak |
129
+ | 47 | pork |
130
+ | 48 | chicken duck |
131
+ | 49 | sausage |
132
+ | 50 | fried meat |
133
+ | 51 | lamb |
134
+ | 52 | sauce |
135
+ | 53 | crab |
136
+ | 54 | fish |
137
+ | 55 | shellfish |
138
+ | 56 | shrimp |
139
+ | 57 | soup |
140
+ | 58 | bread |
141
+ | 59 | corn |
142
+ | 60 | hamburg |
143
+ | 61 | pizza |
144
+ | 62 | hanamaki baozi |
145
+ | 63 | wonton dumplings |
146
+ | 64 | pasta |
147
+ | 65 | noodles |
148
+ | 66 | rice |
149
+ | 67 | pie |
150
+ | 68 | tofu |
151
+ | 69 | eggplant |
152
+ | 70 | potato |
153
+ | 71 | garlic |
154
+ | 72 | cauliflower |
155
+ | 73 | tomato |
156
+ | 74 | kelp |
157
+ | 75 | seaweed |
158
+ | 76 | spring onion |
159
+ | 77 | rape |
160
+ | 78 | ginger |
161
+ | 79 | okra |
162
+ | 80 | lettuce |
163
+ | 81 | pumpkin |
164
+ | 82 | cucumber |
165
+ | 83 | white radish |
166
+ | 84 | carrot |
167
+ | 85 | asparagus |
168
+ | 86 | bamboo shoots |
169
+ | 87 | broccoli |
170
+ | 88 | celery stick |
171
+ | 89 | cilantro mint |
172
+ | 90 | snow peas |
173
+ | 91 | cabbage |
174
+ | 92 | bean sprouts |
175
+ | 93 | onion |
176
+ | 94 | pepper |
177
+ | 95 | green beans |
178
+ | 96 | French beans |
179
+ | 97 | king oyster mushroom |
180
+ | 98 | shiitake |
181
+ | 99 | enoki mushroom |
182
+ | 100 | oyster mushroom |
183
+ | 101 | white button mushroom |
184
+ | 102 | salad |
185
+ | 103 | other ingredients |
186
+
187
+ ### Data Splits
188
+
189
+ This dataset only contains two splits. A training split and a validation split with 4983 and 2135 images respectively.
190
+
191
+ ## Dataset Creation
192
+
193
+ ### Curation Rationale
194
+
195
+ Select images from a large-scale recipe dataset and annotate them with pixel-wise segmentation masks.
196
+
197
+ ### Source Data
198
+
199
+ The dataset is a curated sample from [Recipe1M](https://github.com/facebookresearch/inversecooking).
200
+
201
+ #### Initial Data Collection and Normalization
202
+
203
+ After selecting the source of the data two more steps were added before image selection.
204
+
205
+ 1. Recipe1M contains 1.5k ingredient categoris, but only the top 124 categories were selected + a 'other' category (further became 103).
206
+ 2. Images should contain between 2 and 16 ingredients.
207
+ 3. Ingredients should be visible and easy to annotate.
208
+
209
+ Which then resulted in 7118 images.
210
+
211
+ ### Annotations
212
+
213
+ #### Annotation process
214
+
215
+ Third party annotators were hired to annotate the images respecting the following guidelines:
216
+
217
+ 1. Tag ingredients with appropriate categories.
218
+ 2. Draw pixel-wise masks for each ingredient.
219
+ 3. Ignore tiny regions (even if contains ingredients) with area covering less than 5% of the image.
220
+
221
+ #### Refinement process
222
+
223
+ The refinement process implemented the following steps:
224
+
225
+ 1. Correct mislabelled ingredients.
226
+ 2. Deleting unpopular categories that are assigned to less than 5 images (resulting in 103 categories in the final dataset).
227
+ 3. Merging visually similar ingredient categories (e.g. orange and citrus)
228
+
229
+ #### Who are the annotators?
230
+
231
+ A third party company that was not mentioned in the paper.
232
+
233
+ ## Additional Information
234
+
235
+ ### Dataset Curators
236
+
237
+ Authors of the paper [A Large-Scale Benchmark for Food Image Segmentation](https://arxiv.org/pdf/2105.05409.pdf).
238
+
239
+ ### Licensing Information
240
+
241
+ [Apache 2.0 license.](https://github.com/LARC-CMU-SMU/FoodSeg103-Benchmark-v1/blob/main/LICENSE)
242
+
243
+ ### Citation Information
244
+
245
+ ```bibtex
246
+ @inproceedings{wu2021foodseg,
247
+ title={A Large-Scale Benchmark for Food Image Segmentation},
248
+ author={Wu, Xiongwei and Fu, Xin and Liu, Ying and Lim, Ee-Peng and Hoi, Steven CH and Sun, Qianru},
249
+ booktitle={Proceedings of ACM international conference on Multimedia},
250
+ year={2021}
251
+ }
252
+ ```
data/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7288a62861c06f1c0f677674fd9564aae277a727a146bf31688cf86befa452b7
3
+ size 351240914
data/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:814ef4e25036a9073a4017e8d05bad80b213df74cc9cd60e972136b5ae2e0ab9
3
+ size 356813558
data/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b16b566c273e049a10d651caf6d28951f6cdf730fba6596e832b451230d6ac1
3
+ size 431463278
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73d4d49abc2ef135dfccbce86f395d8e39215cf656d2954b516a88572f24b0e6
3
+ size 115186173
id2label.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"0": "background", "1": "candy", "2": "egg tart", "3": "french fries", "4": "chocolate", "5": "biscuit", "6": "popcorn", "7": "pudding", "8": "ice cream", "9": "cheese butter", "10": "cake", "11": "wine", "12": "milkshake", "13": "coffee", "14": "juice", "15": "milk", "16": "tea", "17": "almond", "18": "red beans", "19": "cashew", "20": "dried cranberries", "21": "soy", "22": "walnut", "23": "peanut", "24": "egg", "25": "apple", "26": "date", "27": "apricot", "28": "avocado", "29": "banana", "30": "strawberry", "31": "cherry", "32": "blueberry", "33": "raspberry", "34": "mango", "35": "olives", "36": "peach", "37": "lemon", "38": "pear", "39": "fig", "40": "pineapple", "41": "grape", "42": "kiwi", "43": "melon", "44": "orange", "45": "watermelon", "46": "steak", "47": "pork", "48": "chicken duck", "49": "sausage", "50": "fried meat", "51": "lamb", "52": "sauce", "53": "crab", "54": "fish", "55": "shellfish", "56": "shrimp", "57": "soup", "58": "bread", "59": "corn", "60": "hamburg", "61": "pizza", "62": " hanamaki baozi", "63": "wonton dumplings", "64": "pasta", "65": "noodles", "66": "rice", "67": "pie", "68": "tofu", "69": "eggplant", "70": "potato", "71": "garlic", "72": "cauliflower", "73": "tomato", "74": "kelp", "75": "seaweed", "76": "spring onion", "77": "rape", "78": "ginger", "79": "okra", "80": "lettuce", "81": "pumpkin", "82": "cucumber", "83": "white radish", "84": "carrot", "85": "asparagus", "86": "bamboo shoots", "87": "broccoli", "88": "celery stick", "89": "cilantro mint", "90": "snow peas", "91": " cabbage", "92": "bean sprouts", "93": "onion", "94": "pepper", "95": "green beans", "96": "French beans", "97": "king oyster mushroom", "98": "shiitake", "99": "enoki mushroom", "100": "oyster mushroom", "101": "white button mushroom", "102": "salad", "103": "other ingredients"}