MCPcopy Index your code
hub / github.com/ActiveVisionLab/DFNet / PoseLoss

Function PoseLoss

script/dm/direct_pose_model.py:87–91  ·  view source on GitHub ↗
(args, pose_, pose, device)

Source from the content-addressed store, hash-verified

85 return loss
86
87def PoseLoss(args, pose_, pose, device):
88 loss_func = nn.MSELoss()
89 predict_pose = pose_.reshape(args.batch_size, 12).to(device) # maynot need reshape
90 pose_loss = loss_func(predict_pose, pose)
91 return pose_loss
92
93def load_exisiting_model(args, isFeatureNet=False):
94 ''' Load a pretrained DFNet model '''

Callers 2

eval_on_batchFunction · 0.70
train_on_batchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected