yuxuanw8 commited on
Commit
0c2f6d8
·
verified ·
1 Parent(s): 9ed315f

Update BigEarthNet.py

Browse files
Files changed (1) hide show
  1. BigEarthNet.py +5 -3
BigEarthNet.py CHANGED
@@ -120,8 +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
 
126
  class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
127
  VERSION = datasets.Version("1.0.0")
@@ -180,7 +181,8 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
180
  print("Downloading data files from HF")
181
  downloaded_files = dl_manager.download(self.DATA_URL)
182
  print("Downloading Finished")
183
- combined_file = os.path.join(dl_manager.download_config.cache_dir, "combined.tar.gz")
 
184
  with open(combined_file, 'wb') as outfile:
185
  counter = 0
186
  for part_file in downloaded_files:
 
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", "ac"]
126
 
127
  class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
128
  VERSION = datasets.Version("1.0.0")
 
181
  print("Downloading data files from HF")
182
  downloaded_files = dl_manager.download(self.DATA_URL)
183
  print("Downloading Finished")
184
+ combined_file = os.path.join(dl_manager.download_config.cache_dir, "combined.tar.gz")
185
+ print(f"copying files to {combined_file}")
186
  with open(combined_file, 'wb') as outfile:
187
  counter = 0
188
  for part_file in downloaded_files: