Upload EuroSAT.py with huggingface_hub
Browse files- EuroSAT.py +2 -0
EuroSAT.py
CHANGED
|
@@ -165,9 +165,11 @@ class EuroSAT(datasets.GeneratorBasedBuilder):
|
|
| 165 |
data_path = os.path.join(data_dir, label, file_name)
|
| 166 |
|
| 167 |
img = tifffile.imread(data_path)
|
|
|
|
| 168 |
|
| 169 |
# permute img from HxWxC to CxHxW
|
| 170 |
np.transpose(img, (2, 0, 1))
|
|
|
|
| 171 |
|
| 172 |
# drop any channels if applicable
|
| 173 |
img = np.take(img, indices=self.config.band_indices, axis=0)
|
|
|
|
| 165 |
data_path = os.path.join(data_dir, label, file_name)
|
| 166 |
|
| 167 |
img = tifffile.imread(data_path)
|
| 168 |
+
print(img.shape)
|
| 169 |
|
| 170 |
# permute img from HxWxC to CxHxW
|
| 171 |
np.transpose(img, (2, 0, 1))
|
| 172 |
+
print(img.shape)
|
| 173 |
|
| 174 |
# drop any channels if applicable
|
| 175 |
img = np.take(img, indices=self.config.band_indices, axis=0)
|