remove test split
Browse files
food_vision_199_classes.py
CHANGED
|
@@ -255,7 +255,7 @@ class Food199(datasets.GeneratorBasedBuilder):
|
|
| 255 |
df = pd.read_csv(csv)
|
| 256 |
print("Downloaded annotations.csv")
|
| 257 |
df_train_annotations = df[["filename", "label"]][df["split"] == "train"].to_dict(orient="records")
|
| 258 |
-
df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
|
| 259 |
|
| 260 |
return [
|
| 261 |
datasets.SplitGenerator(
|
|
@@ -263,11 +263,12 @@ class Food199(datasets.GeneratorBasedBuilder):
|
|
| 263 |
gen_kwargs={
|
| 264 |
"annotations": df_train_annotations,
|
| 265 |
}),
|
| 266 |
-
datasets.SplitGenerator(
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
|
|
|
| 271 |
|
| 272 |
|
| 273 |
def _generate_examples(self, annotations):
|
|
|
|
| 255 |
df = pd.read_csv(csv)
|
| 256 |
print("Downloaded annotations.csv")
|
| 257 |
df_train_annotations = df[["filename", "label"]][df["split"] == "train"].to_dict(orient="records")
|
| 258 |
+
# df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
|
| 259 |
|
| 260 |
return [
|
| 261 |
datasets.SplitGenerator(
|
|
|
|
| 263 |
gen_kwargs={
|
| 264 |
"annotations": df_train_annotations,
|
| 265 |
}),
|
| 266 |
+
# datasets.SplitGenerator(
|
| 267 |
+
# name=datasets.Split.TEST,
|
| 268 |
+
# gen_kwargs={
|
| 269 |
+
# "annotations": df_test_annotations,
|
| 270 |
+
# })
|
| 271 |
+
]
|
| 272 |
|
| 273 |
|
| 274 |
def _generate_examples(self, annotations):
|