Update BigEarthNet.py
Browse files- 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)
|