update annotations and loading script
Browse files- README.md +2 -5
- annotations.csv +1 -1
- food_vision_199_classes.py +1 -1
README.md
CHANGED
@@ -210,9 +210,6 @@ dataset_info:
|
|
210 |
- name: train
|
211 |
num_bytes: 1331816
|
212 |
num_examples: 19747
|
213 |
-
|
214 |
-
|
215 |
-
num_examples: 4941
|
216 |
-
download_size: 2778026
|
217 |
-
dataset_size: 1660565
|
218 |
---
|
|
|
210 |
- name: train
|
211 |
num_bytes: 1331816
|
212 |
num_examples: 19747
|
213 |
+
download_size: 2863352
|
214 |
+
dataset_size: 1331816
|
|
|
|
|
|
|
215 |
---
|
annotations.csv
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
filename,image_name,
|
2 |
test/pain_au_chocolat/4fd7cb42-bd7f-48f1-bfdc-607c2f54b788.jpg,4fd7cb42-bd7f-48f1-bfdc-607c2f54b788.jpg,pain_au_chocolat,121,test
|
3 |
test/pain_au_chocolat/2062f52a-781c-4e4f-b8a7-0a108934f453.jpg,2062f52a-781c-4e4f-b8a7-0a108934f453.jpg,pain_au_chocolat,121,test
|
4 |
test/pain_au_chocolat/8003e0f6-37e8-460d-9c14-e7c6fe44a37f.jpg,8003e0f6-37e8-460d-9c14-e7c6fe44a37f.jpg,pain_au_chocolat,121,test
|
|
|
1 |
+
filename,image_name,class_name,label,split
|
2 |
test/pain_au_chocolat/4fd7cb42-bd7f-48f1-bfdc-607c2f54b788.jpg,4fd7cb42-bd7f-48f1-bfdc-607c2f54b788.jpg,pain_au_chocolat,121,test
|
3 |
test/pain_au_chocolat/2062f52a-781c-4e4f-b8a7-0a108934f453.jpg,2062f52a-781c-4e4f-b8a7-0a108934f453.jpg,pain_au_chocolat,121,test
|
4 |
test/pain_au_chocolat/8003e0f6-37e8-460d-9c14-e7c6fe44a37f.jpg,8003e0f6-37e8-460d-9c14-e7c6fe44a37f.jpg,pain_au_chocolat,121,test
|
food_vision_199_classes.py
CHANGED
@@ -254,7 +254,7 @@ class Food199(datasets.GeneratorBasedBuilder):
|
|
254 |
csv = dl_manager.download("annotations.csv")
|
255 |
df = pd.read_csv(csv)
|
256 |
print("Downloaded annotations.csv")
|
257 |
-
df_train_annotations = df[["filename", "
|
258 |
# df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
|
259 |
|
260 |
return [
|
|
|
254 |
csv = dl_manager.download("annotations.csv")
|
255 |
df = pd.read_csv(csv)
|
256 |
print("Downloaded annotations.csv")
|
257 |
+
df_train_annotations = df[["filename", "class_name"]][df["split"] == "train"].to_dict(orient="records")
|
258 |
# df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
|
259 |
|
260 |
return [
|