mrdbourke commited on
Commit
0b998a2
1 Parent(s): af96178

update annotations

Browse files
Files changed (3) hide show
  1. README.md +4 -4
  2. annotations.csv +0 -0
  3. food_vision_199_classes.py +4 -2
README.md CHANGED
@@ -2,7 +2,7 @@
2
  dataset_info:
3
  features:
4
  - name: image
5
- dtype: image
6
  - name: label
7
  dtype:
8
  class_label:
@@ -208,11 +208,11 @@ dataset_info:
208
  '198': zucchini
209
  splits:
210
  - name: train
211
- num_bytes: 1413273
212
  num_examples: 19747
213
  - name: test
214
- num_bytes: 349131
215
  num_examples: 4941
216
  download_size: 2778026
217
- dataset_size: 1762404
218
  ---
 
2
  dataset_info:
3
  features:
4
  - name: image
5
+ dtype: string
6
  - name: label
7
  dtype:
8
  class_label:
 
208
  '198': zucchini
209
  splits:
210
  - name: train
211
+ num_bytes: 1331816
212
  num_examples: 19747
213
  - name: test
214
+ num_bytes: 328749
215
  num_examples: 4941
216
  download_size: 2778026
217
+ dataset_size: 1660565
218
  ---
annotations.csv CHANGED
The diff for this file is too large to render. See raw diff
 
food_vision_199_classes.py CHANGED
@@ -257,11 +257,13 @@ class Food199(datasets.GeneratorBasedBuilder):
257
  df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
258
 
259
  return [
260
- datasets.SplitGenerator(name=datasets.Split.TRAIN,
 
261
  gen_kwargs={
262
  "annotations": df_train_annotations,
263
  }),
264
- datasets.SplitGenerator(name=datasets.Split.TEST,
 
265
  gen_kwargs={
266
  "annotations": df_test_annotations,
267
  })]
 
257
  df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
258
 
259
  return [
260
+ datasets.SplitGenerator(
261
+ name=datasets.Split.TRAIN,
262
  gen_kwargs={
263
  "annotations": df_train_annotations,
264
  }),
265
+ datasets.SplitGenerator(
266
+ name=datasets.Split.TEST,
267
  gen_kwargs={
268
  "annotations": df_test_annotations,
269
  })]