Datasets:

Modalities:
Image
Languages:
English
DOI:
Libraries:
Datasets
License:
xhagrg commited on
Commit
1864285
1 Parent(s): 49234dc

Use without rasterio.

Browse files
Files changed (1) hide show
  1. 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}, #, "data": rasterio.open(filename).read()},
94
- "annotation": {"path": annotation_filename}#, "data": rasterio.open(annotation_filename).read()},
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
  }