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 ebe45dc commit 1ad6d80Copy full SHA for 1ad6d80
segmentation_models_pytorch/encoders/efficientnet.py
@@ -58,8 +58,8 @@ def __init__(
58
59
def get_stages(self) -> Dict[int, Sequence[torch.nn.Module]]:
60
return {
61
- 16: [self._blocks[self._stage_idxs[1] : self._stage_idxs[2]]],
62
- 32: [self._blocks[self._stage_idxs[2] :]],
+ 16: [self._blocks[self._out_indexes[1] + 1 : self._out_indexes[2] + 1]],
+ 32: [self._blocks[self._out_indexes[2] + 1 :]],
63
}
64
65
def forward(self, x: torch.Tensor) -> List[torch.Tensor]:
0 commit comments