Use without rasterio.
Browse files- hls_burn_scars.py +2 -4
hls_burn_scars.py
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
import os
|
2 |
from glob import glob
|
3 |
import datasets
|
4 |
-
import rasterio
|
5 |
-
|
6 |
|
7 |
_CITATION = """\
|
8 |
@software{HLS_Foundation_2023,
|
@@ -90,6 +88,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},
|
94 |
-
"annotation": {"path": annotation_filename}
|
95 |
}
|
|
|
1 |
import os
|
2 |
from glob import glob
|
3 |
import datasets
|
|
|
|
|
4 |
|
5 |
_CITATION = """\
|
6 |
@software{HLS_Foundation_2023,
|
|
|
88 |
if filename.endswith("_merged.tif"):
|
89 |
annotation_filename = filename.replace('_merged.tif', '.mask.tif')
|
90 |
yield idx, {
|
91 |
+
"image": {"path": filename},
|
92 |
+
"annotation": {"path": annotation_filename}
|
93 |
}
|