Update test3.py
Browse files
test3.py
CHANGED
|
@@ -55,7 +55,7 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
| 55 |
"image_data": bytes
|
| 56 |
}
|
| 57 |
),
|
| 58 |
-
supervised_keys=("
|
| 59 |
homepage=_HOMEPAGE,
|
| 60 |
citation=_CITATION,
|
| 61 |
task_templates=[ImageClassification(image_column="image_data", label_column="label")],
|
|
@@ -77,7 +77,6 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
| 77 |
def _generate_examples(self, files):
|
| 78 |
for path in files.itertuples():
|
| 79 |
yield {
|
| 80 |
-
"filename": path.file_name,
|
| 81 |
"label": path.label,
|
| 82 |
"image_data": path.image_data,
|
| 83 |
}
|
|
|
|
| 55 |
"image_data": bytes
|
| 56 |
}
|
| 57 |
),
|
| 58 |
+
supervised_keys=("label","image_data"),
|
| 59 |
homepage=_HOMEPAGE,
|
| 60 |
citation=_CITATION,
|
| 61 |
task_templates=[ImageClassification(image_column="image_data", label_column="label")],
|
|
|
|
| 77 |
def _generate_examples(self, files):
|
| 78 |
for path in files.itertuples():
|
| 79 |
yield {
|
|
|
|
| 80 |
"label": path.label,
|
| 81 |
"image_data": path.image_data,
|
| 82 |
}
|