Update BigEarthNet.py
Browse files- BigEarthNet.py +4 -3
BigEarthNet.py
CHANGED
|
@@ -120,9 +120,9 @@ S2_STD = [1108.02887453, 1155.15170768, 1183.6292542, 1368.11351514, 1370.265037
|
|
| 120 |
S1_MEAN = [-12.54847273, -20.19237134]
|
| 121 |
S1_STD = [5.25697717, 5.91150917]
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
parts = ["aa", "ab", "ac"]
|
| 126 |
|
| 127 |
class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
|
| 128 |
VERSION = datasets.Version("1.0.0")
|
|
@@ -176,6 +176,7 @@ class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
|
|
| 176 |
)
|
| 177 |
|
| 178 |
def _split_generators(self, dl_manager):
|
|
|
|
| 179 |
if isinstance(self.DATA_URL, list):
|
| 180 |
try:
|
| 181 |
print("Downloading data files from HF")
|
|
|
|
| 120 |
S1_MEAN = [-12.54847273, -20.19237134]
|
| 121 |
S1_STD = [5.25697717, 5.91150917]
|
| 122 |
|
| 123 |
+
parts = [f"a{letter}" for letter in string.ascii_lowercase]
|
| 124 |
+
parts.extend([f"b{letter}" for letter in string.ascii_lowercase[:8]])
|
| 125 |
+
# parts = ["aa", "ab", "ac"]
|
| 126 |
|
| 127 |
class BigEarthNetDataset(datasets.GeneratorBasedBuilder):
|
| 128 |
VERSION = datasets.Version("1.0.0")
|
|
|
|
| 176 |
)
|
| 177 |
|
| 178 |
def _split_generators(self, dl_manager):
|
| 179 |
+
print(f"cache_dir is {dl_manager.download_config.cache_dir}")
|
| 180 |
if isinstance(self.DATA_URL, list):
|
| 181 |
try:
|
| 182 |
print("Downloading data files from HF")
|