Skip to content

Commit 1ad6d80

Browse files
committed
Fix
1 parent ebe45dc commit 1ad6d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

segmentation_models_pytorch/encoders/efficientnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def __init__(
5858

5959
def get_stages(self) -> Dict[int, Sequence[torch.nn.Module]]:
6060
return {
61-
16: [self._blocks[self._stage_idxs[1] : self._stage_idxs[2]]],
62-
32: [self._blocks[self._stage_idxs[2] :]],
61+
16: [self._blocks[self._out_indexes[1] + 1 : self._out_indexes[2] + 1]],
62+
32: [self._blocks[self._out_indexes[2] + 1 :]],
6363
}
6464

6565
def forward(self, x: torch.Tensor) -> List[torch.Tensor]:

0 commit comments

Comments
 (0)