yuxuanw8 commited on
Commit
482585b
·
verified ·
1 Parent(s): a96020a

Upload EuroSAT.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. EuroSAT.py +1 -1
EuroSAT.py CHANGED
@@ -34,7 +34,7 @@ class EuroSATConfig(datasets.BuilderConfig):
34
  def __init__(self, bands=BAND_SETS['all'], **kwargs):
35
  super(EuroSATConfig, self).__init__(**kwargs)
36
  self.bands = bands
37
- self.band_indices = [self.all_band_names.index(b) for b in bands if b in self.all_band_names].long()
38
 
39
  class EuroSAT(datasets.GeneratorBasedBuilder):
40
  VERSION = datasets.Version("1.0.0")
 
34
  def __init__(self, bands=BAND_SETS['all'], **kwargs):
35
  super(EuroSATConfig, self).__init__(**kwargs)
36
  self.bands = bands
37
+ self.band_indices = [int(self.all_band_names.index(b)) for b in bands if b in self.all_band_names]
38
 
39
  class EuroSAT(datasets.GeneratorBasedBuilder):
40
  VERSION = datasets.Version("1.0.0")