update annotations
Browse files- README.md +4 -4
- annotations.csv +0 -0
- food_vision_199_classes.py +4 -2
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
dataset_info:
|
3 |
features:
|
4 |
- name: image
|
5 |
-
dtype:
|
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:
|
212 |
num_examples: 19747
|
213 |
- name: test
|
214 |
-
num_bytes:
|
215 |
num_examples: 4941
|
216 |
download_size: 2778026
|
217 |
-
dataset_size:
|
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(
|
|
|
261 |
gen_kwargs={
|
262 |
"annotations": df_train_annotations,
|
263 |
}),
|
264 |
-
datasets.SplitGenerator(
|
|
|
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 |
})]
|