yuxuanw8 commited on
Commit
836b803
·
verified ·
1 Parent(s): 16f4fc3

Upload EuroSAT.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. EuroSAT.py +1 -3
EuroSAT.py CHANGED
@@ -165,11 +165,9 @@ class EuroSAT(datasets.GeneratorBasedBuilder):
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)
 
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
+ img = 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)