Fix indentation error
Browse files- cell_benchmark.py +9 -9
cell_benchmark.py
CHANGED
@@ -67,15 +67,15 @@ class Cellsegmentation(datasets.GeneratorBasedBuilder):
|
|
67 |
return splits
|
68 |
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
|
80 |
|
81 |
|
|
|
67 |
return splits
|
68 |
|
69 |
|
70 |
+
def _generate_examples(self, files, masks, split):
|
71 |
+
mask_path = os.path.basename(masks)
|
72 |
+
for i, path in enumereate(files):
|
73 |
+
file_name = os.path.basename(path)
|
74 |
+
yield i, {
|
75 |
+
"image": path,
|
76 |
+
"masks": mask_path + "mask_" + file_name.replace("jpg", "png"),
|
77 |
+
"path": path,
|
78 |
+
}
|
79 |
|
80 |
|
81 |
|