We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd2bde commit 52f0c12Copy full SHA for 52f0c12
terratorch/models/backbones/utils.py
@@ -14,7 +14,7 @@ def _estimate_in_chans(model_bands: list[HLSBands] | list[str] | tuple[int, int]
14
15
# Conditional to deal with the different possible choices for the bands
16
# Bands as lists of strings or enum
17
- if all([isinstance(b, str) for b in model_bands]):
+ if all([isinstance(b, str) or isinstance(b, HLSBands) for b in model_bands]):
18
in_chans = len(model_bands)
19
# Bands as intervals limited by integers
20
elif all([isinstance(b, int) for b in model_bands] or _are_sublists_of_int(model_bands)):
0 commit comments