yuxuanw8 commited on
Commit
5b5d61e
·
verified ·
1 Parent(s): 35d3f85

Update BigEarthNet.py

Browse files
Files changed (1) hide show
  1. BigEarthNet.py +1 -1
BigEarthNet.py CHANGED
@@ -200,7 +200,7 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
200
  print(f"extacting from {combined_file}")
201
  # data_dir = dl_manager.extract(combined_file)
202
  data_dir = os.path.join(dl_manager.download_config.cache_dir, "extracted")
203
- os.makedirs(extracted_dir, exist_ok=True)
204
  with tarfile.open(combined_file, "r:gz") as tar:
205
  tar.extractall(path=data_dir)
206
  os.remove(combined_file)
 
200
  print(f"extacting from {combined_file}")
201
  # data_dir = dl_manager.extract(combined_file)
202
  data_dir = os.path.join(dl_manager.download_config.cache_dir, "extracted")
203
+ os.makedirs(data_dir, exist_ok=True)
204
  with tarfile.open(combined_file, "r:gz") as tar:
205
  tar.extractall(path=data_dir)
206
  os.remove(combined_file)