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

Function PoseLoss

script/feature/direct_feature_matching.py:138–142  ·  view source on GitHub ↗
(args, pose_, pose, device)

Source from the content-addressed store, hash-verified

136 return loss
137
138def PoseLoss(args, pose_, pose, device):
139 loss_func = nn.MSELoss()
140 predict_pose = pose_.reshape(args.batch_size, 12).to(device) # maynot need reshape
141 pose_loss = loss_func(predict_pose, pose)
142 return pose_loss
143
144def prepare_batch_render(args, pose, batch_size, target_, H, W, focal, half_res=True, rand=True):
145 ''' Break batch of images into rays '''

Callers 3

eval_on_batchFunction · 0.70
train_on_feature_batchFunction · 0.70
train_on_batchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected