yuxuanw8 commited on
Commit
fad204d
·
verified ·
1 Parent(s): d99d4cc

Update BigEarthNet.py

Browse files
Files changed (1) hide show
  1. BigEarthNet.py +4 -3
BigEarthNet.py CHANGED
@@ -120,9 +120,9 @@ S2_STD = [1108.02887453, 1155.15170768, 1183.6292542, 1368.11351514, 1370.265037
120
  S1_MEAN = [-12.54847273, -20.19237134]
121
  S1_STD = [5.25697717, 5.91150917]
122
 
123
- parts = [f"a{letter}" for letter in string.ascii_lowercase]
124
- parts.extend([f"b{letter}" for letter in string.ascii_lowercase[:8]])
125
- parts = ["aa", "ab"]
126
 
127
  class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
128
  VERSION = datasets.Version("1.0.0")
@@ -191,6 +191,7 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
191
  with open(part_file, 'rb') as infile:
192
  shutil.copyfileobj(infile, outfile)
193
  counter += 1
 
194
  data_dir = dl_manager.extract(combined_file)
195
  os.remove(combined_file)
196
  print(f"data_dir: {data_dir}")
 
120
  S1_MEAN = [-12.54847273, -20.19237134]
121
  S1_STD = [5.25697717, 5.91150917]
122
 
123
+ # parts = [f"a{letter}" for letter in string.ascii_lowercase]
124
+ # parts.extend([f"b{letter}" for letter in string.ascii_lowercase[:8]])
125
+ parts = ["aa"]
126
 
127
  class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
128
  VERSION = datasets.Version("1.0.0")
 
191
  with open(part_file, 'rb') as infile:
192
  shutil.copyfileobj(infile, outfile)
193
  counter += 1
194
+ print(f"extacting from {combined_file}")
195
  data_dir = dl_manager.extract(combined_file)
196
  os.remove(combined_file)
197
  print(f"data_dir: {data_dir}")