Skip to content

Commit

Permalink
fix hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejRojec committed Jun 19, 2024
1 parent aecb063 commit ccb875d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions luxonis_train/nodes/efficientnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def __init__(self, download_weights: bool = False, **kwargs):
pretrained=download_weights,
)
efficientnet_lite0_model.classifier = nn.Identity()


self.out_indices = [1, 2, 4, 6]
self.backbone = efficientnet_lite0_model

Expand Down
2 changes: 0 additions & 2 deletions luxonis_train/nodes/mobilenetv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ def __init__(self, download_weights: bool = False, **kwargs):
weights="DEFAULT" if download_weights else None
)
mobilenet_v2.classifier = nn.Identity()

self.out_indices = [3, 6, 13, 18]
self.channels = [24, 32, 96, 1280]
self.backbone = mobilenet_v2


def forward(self, x: Tensor) -> list[Tensor]:
outs = []
for i, module in enumerate(self.backbone.features):
Expand Down

0 comments on commit ccb875d

Please sign in to comment.