Update BigEarthNet.py
Browse files- BigEarthNet.py +3 -1
BigEarthNet.py
CHANGED
|
@@ -9,6 +9,7 @@ import numpy as np
|
|
| 9 |
import pandas as pd
|
| 10 |
|
| 11 |
from tqdm import tqdm
|
|
|
|
| 12 |
|
| 13 |
class_sets = {
|
| 14 |
19: [
|
|
@@ -197,7 +198,8 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
|
|
| 197 |
shutil.copyfileobj(infile, outfile)
|
| 198 |
counter += 1
|
| 199 |
print(f"extacting from {combined_file}")
|
| 200 |
-
data_dir = dl_manager.extract(combined_file)
|
|
|
|
| 201 |
os.remove(combined_file)
|
| 202 |
print(f"data_dir: {data_dir}")
|
| 203 |
except Exception as e:
|
|
|
|
| 9 |
import pandas as pd
|
| 10 |
|
| 11 |
from tqdm import tqdm
|
| 12 |
+
from datasets.utils.extract import extract
|
| 13 |
|
| 14 |
class_sets = {
|
| 15 |
19: [
|
|
|
|
| 198 |
shutil.copyfileobj(infile, outfile)
|
| 199 |
counter += 1
|
| 200 |
print(f"extacting from {combined_file}")
|
| 201 |
+
# data_dir = dl_manager.extract(combined_file)
|
| 202 |
+
data_dir = extract(combined_file)
|
| 203 |
os.remove(combined_file)
|
| 204 |
print(f"data_dir: {data_dir}")
|
| 205 |
except Exception as e:
|