Skip to content

Commit

Permalink
catch any exception when checking channel dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
sammlapp committed Sep 12, 2024
1 parent 1961d01 commit abbc086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensoundscape/ml/cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def __init__(
f"(originally {self.preprocessor.channels})."
)
self.preprocessor.channels = arch_channels
except ChannelDimCheckError:
except:
# can we try to check if first layer expects input with channels=channels?
warnings.warn(
f"Failed to detect expected # input channels of this architecture."
Expand Down

0 comments on commit abbc086

Please sign in to comment.