Try without rasterio.
Browse files- hls_burn_scars.py +2 -2
hls_burn_scars.py
CHANGED
@@ -90,6 +90,6 @@ class HLSBurnScars(datasets.GeneratorBasedBuilder):
|
|
90 |
if filename.endswith("_merged.tif"):
|
91 |
annotation_filename = filename.replace('_merged.tif', '.mask.tif')
|
92 |
yield idx, {
|
93 |
-
"image": {"path": filename, "data": rasterio.open(filename).read()},
|
94 |
-
"annotation": {"path": annotation_filename
|
95 |
}
|
|
|
90 |
if filename.endswith("_merged.tif"):
|
91 |
annotation_filename = filename.replace('_merged.tif', '.mask.tif')
|
92 |
yield idx, {
|
93 |
+
"image": {"path": filename}, #, "data": rasterio.open(filename).read()},
|
94 |
+
"annotation": {"path": annotation_filename}#, "data": rasterio.open(annotation_filename).read()},
|
95 |
}
|