Datasets:
Tasks:
Image Classification
Modalities:
Image
Formats:
parquet
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
10K - 100K
License:
Use `tuple` instead of `list` in `gen_kwargs` to avoid `IterableDataset.shuffle` error
Browse filesSame change as mariosasko's PR here: https://huggingface.co/datasets/fashion_mnist/discussions/3
mnist.py
CHANGED
@@ -87,14 +87,14 @@ class MNIST(datasets.GeneratorBasedBuilder):
|
|
87 |
datasets.SplitGenerator(
|
88 |
name=datasets.Split.TRAIN,
|
89 |
gen_kwargs={
|
90 |
-
"filepath":
|
91 |
"split": "train",
|
92 |
},
|
93 |
),
|
94 |
datasets.SplitGenerator(
|
95 |
name=datasets.Split.TEST,
|
96 |
gen_kwargs={
|
97 |
-
"filepath":
|
98 |
"split": "test",
|
99 |
},
|
100 |
),
|
|
|
87 |
datasets.SplitGenerator(
|
88 |
name=datasets.Split.TRAIN,
|
89 |
gen_kwargs={
|
90 |
+
"filepath": (downloaded_files["train_images"], downloaded_files["train_labels"]),
|
91 |
"split": "train",
|
92 |
},
|
93 |
),
|
94 |
datasets.SplitGenerator(
|
95 |
name=datasets.Split.TEST,
|
96 |
gen_kwargs={
|
97 |
+
"filepath": (downloaded_files["test_images"], downloaded_files["test_labels"]),
|
98 |
"split": "test",
|
99 |
},
|
100 |
),
|