yuxuanw8 commited on
Commit
ed4d093
·
verified ·
1 Parent(s): 71137c0

Update BigEarthNet.py

Browse files
Files changed (1) hide show
  1. BigEarthNet.py +3 -0
BigEarthNet.py CHANGED
@@ -178,6 +178,9 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
178
 
179
  def _split_generators(self, dl_manager):
180
  print(dl_manager.download_config.cache_dir)
 
 
 
181
  if isinstance(self.DATA_URL, list):
182
  try:
183
  downloaded_files = dl_manager.download(self.DATA_URL)
 
178
 
179
  def _split_generators(self, dl_manager):
180
  print(dl_manager.download_config.cache_dir)
181
+ # Ensure cache directory is set
182
+ if dl_manager.download_config.cache_dir is None:
183
+ return []
184
  if isinstance(self.DATA_URL, list):
185
  try:
186
  downloaded_files = dl_manager.download(self.DATA_URL)