Skip to content

Commit 52f0c12

Browse files
HLSBands also need be considered
Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
1 parent 6bd2bde commit 52f0c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terratorch/models/backbones/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def _estimate_in_chans(model_bands: list[HLSBands] | list[str] | tuple[int, int]
1414

1515
# Conditional to deal with the different possible choices for the bands
1616
# Bands as lists of strings or enum
17-
if all([isinstance(b, str) for b in model_bands]):
17+
if all([isinstance(b, str) or isinstance(b, HLSBands) for b in model_bands]):
1818
in_chans = len(model_bands)
1919
# Bands as intervals limited by integers
2020
elif all([isinstance(b, int) for b in model_bands] or _are_sublists_of_int(model_bands)):

0 commit comments

Comments
 (0)