Datasets:
Tasks:
Image Classification
Modalities:
Image
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Use `tuple` instead of `list` in `gen_kwargs` to avoid `IterableDataset.shuffle` error
#3
by
mariosasko
- opened
- fashion_mnist.py +2 -2
fashion_mnist.py
CHANGED
@@ -111,14 +111,14 @@ class FashionMnist(datasets.GeneratorBasedBuilder):
|
|
111 |
datasets.SplitGenerator(
|
112 |
name=datasets.Split.TRAIN,
|
113 |
gen_kwargs={
|
114 |
-
"filepath":
|
115 |
"split": "train",
|
116 |
},
|
117 |
),
|
118 |
datasets.SplitGenerator(
|
119 |
name=datasets.Split.TEST,
|
120 |
gen_kwargs={
|
121 |
-
"filepath":
|
122 |
"split": "test",
|
123 |
},
|
124 |
),
|
|
|
111 |
datasets.SplitGenerator(
|
112 |
name=datasets.Split.TRAIN,
|
113 |
gen_kwargs={
|
114 |
+
"filepath": (downloaded_files["train_images"], downloaded_files["train_labels"]),
|
115 |
"split": "train",
|
116 |
},
|
117 |
),
|
118 |
datasets.SplitGenerator(
|
119 |
name=datasets.Split.TEST,
|
120 |
gen_kwargs={
|
121 |
+
"filepath": (downloaded_files["test_images"], downloaded_files["test_labels"]),
|
122 |
"split": "test",
|
123 |
},
|
124 |
),
|