Update BigEarthNet.py
Browse files- BigEarthNet.py +4 -2
BigEarthNet.py
CHANGED
|
@@ -8,6 +8,8 @@ import datasets
|
|
| 8 |
import numpy as np
|
| 9 |
import pandas as pd
|
| 10 |
|
|
|
|
|
|
|
| 11 |
class_sets = {
|
| 12 |
19: [
|
| 13 |
'Urban fabric',
|
|
@@ -186,8 +188,8 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
|
|
| 186 |
os.makedirs(target_dir, exist_ok=True) # Create only the directory
|
| 187 |
with open(combined_file, 'wb') as outfile:
|
| 188 |
counter = 0
|
| 189 |
-
for part_file in downloaded_files:
|
| 190 |
-
print(f"copying {counter}-th file: {part_file}")
|
| 191 |
with open(part_file, 'rb') as infile:
|
| 192 |
shutil.copyfileobj(infile, outfile)
|
| 193 |
counter += 1
|
|
|
|
| 8 |
import numpy as np
|
| 9 |
import pandas as pd
|
| 10 |
|
| 11 |
+
from tqdm import tqdm
|
| 12 |
+
|
| 13 |
class_sets = {
|
| 14 |
19: [
|
| 15 |
'Urban fabric',
|
|
|
|
| 188 |
os.makedirs(target_dir, exist_ok=True) # Create only the directory
|
| 189 |
with open(combined_file, 'wb') as outfile:
|
| 190 |
counter = 0
|
| 191 |
+
for part_file in tqdm(downloaded_files, desc="Copying files", unit="file"):
|
| 192 |
+
# print(f"copying {counter}-th file: {part_file}")
|
| 193 |
with open(part_file, 'rb') as infile:
|
| 194 |
shutil.copyfileobj(infile, outfile)
|
| 195 |
counter += 1
|