Update BigEarthNet.py
Browse files- BigEarthNet.py +1 -1
BigEarthNet.py
CHANGED
|
@@ -178,6 +178,7 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
|
|
| 178 |
def _split_generators(self, dl_manager):
|
| 179 |
print(f"config:{dl_manager.download_config}")
|
| 180 |
print(f"cache_dir is {dl_manager.download_config.cache_dir}")
|
|
|
|
| 181 |
if isinstance(self.DATA_URL, list):
|
| 182 |
try:
|
| 183 |
print("Downloading data files from HF")
|
|
@@ -185,7 +186,6 @@ 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(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
|
|
|
|
| 178 |
def _split_generators(self, dl_manager):
|
| 179 |
print(f"config:{dl_manager.download_config}")
|
| 180 |
print(f"cache_dir is {dl_manager.download_config.cache_dir}")
|
| 181 |
+
os.makedirs(dl_manager.download_config.cache_dir, exist_ok=True)
|
| 182 |
if isinstance(self.DATA_URL, list):
|
| 183 |
try:
|
| 184 |
print("Downloading data files from HF")
|
|
|
|
| 186 |
print("Downloading Finished")
|
| 187 |
print(f"downloaded files: {downloaded_files}")
|
| 188 |
combined_file = os.path.join(dl_manager.download_config.cache_dir, "combined.tar.gz")
|
|
|
|
| 189 |
print(f"copying files to {combined_file}")
|
| 190 |
with open(combined_file, 'wb') as outfile:
|
| 191 |
counter = 0
|