yuxuanw8 commited on
Commit
409f88a
·
verified ·
1 Parent(s): 89c246a

Update BigEarthNet.py

Browse files
Files changed (1) hide show
  1. BigEarthNet.py +1 -1
BigEarthNet.py CHANGED
@@ -185,7 +185,7 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
185
  print("Downloading Finished")
186
  print(f"downloaded files: {downloaded_files}")
187
  combined_file = os.path.join(dl_manager.download_config.cache_dir, "combined.tar.gz")
188
- os.makedirs(os.path.dirname(combined_file), exist_ok=True)
189
  print(f"copying files to {combined_file}")
190
  with open(combined_file, 'wb') as outfile:
191
  counter = 0
 
185
  print("Downloading Finished")
186
  print(f"downloaded files: {downloaded_files}")
187
  combined_file = os.path.join(dl_manager.download_config.cache_dir, "combined.tar.gz")
188
+ os.makedirs(dl_manager.download_config.cache_dir, exist_ok=True)
189
  print(f"copying files to {combined_file}")
190
  with open(combined_file, 'wb') as outfile:
191
  counter = 0