MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / __init__

Method __init__

script/dm/pose_model.py:213–218  ·  view source on GitHub ↗
(self, feat_dim=12)

Source from the content-addressed store, hash-verified

211# PoseNet (SE(3)) w/ mobilev2 backbone
212class PoseNetV2(nn.Module):
213 def __init__(self, feat_dim=12):
214 super(PoseNetV2, self).__init__()
215 self.backbone_net = models.mobilenet_v2(pretrained=True)
216 self.feature_extractor = self.backbone_net.features
217 self.avgpool = nn.AdaptiveAvgPool2d(1)
218 self.fc_pose = nn.Linear(1280, feat_dim)
219
220 def forward(self, Input):
221 x = self.feature_extractor(Input)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected