Datasets:
iterator adjustments
Browse files- ark_example.py +2 -2
ark_example.py
CHANGED
@@ -155,11 +155,11 @@ class ArkExample(datasets.GeneratorBasedBuilder):
|
|
155 |
|
156 |
image_data = tifffile.imread(fp, key=0)
|
157 |
if self.config.name == "base_dataset":
|
158 |
-
yield fp.
|
159 |
"chan": image_data,
|
160 |
"path": fp
|
161 |
}
|
162 |
-
|
163 |
# with open(filepath, encoding="utf-8") as f:
|
164 |
# for key, row in enumerate(f):
|
165 |
# data = json.loads(row)
|
|
|
155 |
|
156 |
image_data = tifffile.imread(fp, key=0)
|
157 |
if self.config.name == "base_dataset":
|
158 |
+
yield fp.stem(), {
|
159 |
"chan": image_data,
|
160 |
"path": fp
|
161 |
}
|
162 |
+
|
163 |
# with open(filepath, encoding="utf-8") as f:
|
164 |
# for key, row in enumerate(f):
|
165 |
# data = json.loads(row)
|