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

Method forward

script/dm/pose_model.py:204–209  ·  view source on GitHub ↗
(self, Input)

Source from the content-addressed store, hash-verified

202 self.fc_pose = nn.Linear(1536, feat_dim) # 1280 for efficientnet-b0, 1536 for efficientnet-b3
203
204 def forward(self, Input):
205 x = self.feature_extractor(Input)
206 x = self.avgpool(x)
207 x = x.reshape(x.size(0), -1)
208 predict = self.fc_pose(x)
209 return predict
210
211# PoseNet (SE(3)) w/ mobilev2 backbone
212class PoseNetV2(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected