We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3e5c1 commit eb3129bCopy full SHA for eb3129b
segmentation_models_pytorch/encoders/timm_universal.py
@@ -21,7 +21,7 @@ def __init__(self, name, pretrained=True, in_channels=3, depth=5, output_stride=
21
self.model = timm.create_model(name, **kwargs)
22
23
self._in_channels = in_channels
24
- self._out_channels = [3, ] + self.model.feature_info.channels()
+ self._out_channels = [in_channels, ] + self.model.feature_info.channels()
25
self._depth = depth
26
27
def forward(self, x):
0 commit comments