Upload EuroSAT.py with huggingface_hub
Browse files- EuroSAT.py +1 -1
EuroSAT.py
CHANGED
|
@@ -51,7 +51,6 @@ class EuroSAT(datasets.GeneratorBasedBuilder):
|
|
| 51 |
def __init__(self, *args, **kwargs):
|
| 52 |
self.height = 64
|
| 53 |
self.width = 64
|
| 54 |
-
self.num_channels = self.config.band_indices.shape[0] # TODO: check out this
|
| 55 |
self.labels = [
|
| 56 |
"AnnualCrop",
|
| 57 |
"Forest",
|
|
@@ -79,6 +78,7 @@ class EuroSAT(datasets.GeneratorBasedBuilder):
|
|
| 79 |
super().__init__(*args, **kwargs)
|
| 80 |
|
| 81 |
def _info(self):
|
|
|
|
| 82 |
return datasets.DatasetInfo(
|
| 83 |
features=datasets.Features({
|
| 84 |
"image": datasets.Array3D(shape=(self.num_channels, self.height, self.width), dtype="float32"),
|
|
|
|
| 51 |
def __init__(self, *args, **kwargs):
|
| 52 |
self.height = 64
|
| 53 |
self.width = 64
|
|
|
|
| 54 |
self.labels = [
|
| 55 |
"AnnualCrop",
|
| 56 |
"Forest",
|
|
|
|
| 78 |
super().__init__(*args, **kwargs)
|
| 79 |
|
| 80 |
def _info(self):
|
| 81 |
+
self.num_channels = self.config.band_indices.shape[0] # TODO: check out this
|
| 82 |
return datasets.DatasetInfo(
|
| 83 |
features=datasets.Features({
|
| 84 |
"image": datasets.Array3D(shape=(self.num_channels, self.height, self.width), dtype="float32"),
|