Update hls_burn_scars.py
Browse files- hls_burn_scars.py +0 -2
hls_burn_scars.py
CHANGED
@@ -86,11 +86,9 @@ class HLSBurnScars(datasets.GeneratorBasedBuilder):
|
|
86 |
|
87 |
def _generate_examples(self, data, split):
|
88 |
files = glob(f"{data}/*_merged.tif")
|
89 |
-
print("!!!!", type(data))
|
90 |
for idx, filename in enumerate(files):
|
91 |
if filename.endswith("_merged.tif"):
|
92 |
annotation_filename = filename.replace('_merged.tif', '.mask.tif')
|
93 |
-
print("!!!!", type(filename))
|
94 |
yield idx, {
|
95 |
"image": {"path": filename, "data": rasterio.open(filename).read()},
|
96 |
"annotation": {"path": annotation_filename, "data": rasterio.open(annotation_filename).read()},
|
|
|
86 |
|
87 |
def _generate_examples(self, data, split):
|
88 |
files = glob(f"{data}/*_merged.tif")
|
|
|
89 |
for idx, filename in enumerate(files):
|
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()},
|