Upload EuroSAT.py with huggingface_hub
Browse files- EuroSAT.py +1 -1
EuroSAT.py
CHANGED
|
@@ -33,7 +33,7 @@ class EuroSATConfig(datasets.BuilderConfig):
|
|
| 33 |
def __init__(self, bands=BAND_SETS['all'], **kwargs):
|
| 34 |
super(EuroSATConfig, self).__init__(**kwargs)
|
| 35 |
self.bands = bands
|
| 36 |
-
self.band_indices = [int(
|
| 37 |
|
| 38 |
# def update(self, **kwargs):
|
| 39 |
# """Update Config"""
|
|
|
|
| 33 |
def __init__(self, bands=BAND_SETS['all'], **kwargs):
|
| 34 |
super(EuroSATConfig, self).__init__(**kwargs)
|
| 35 |
self.bands = bands
|
| 36 |
+
self.band_indices = [int(all_band_names.index(b)) for b in bands if b in all_band_names]
|
| 37 |
|
| 38 |
# def update(self, **kwargs):
|
| 39 |
# """Update Config"""
|