Open XiaoHaoPan opened 1 year ago
hi! you may be looking for this
This seems to be different from the way you get posture during training. Why?
_, _, pose_opt_plus, _, pose_sample_logweights, cost_tgt = epropnp.monte_carlo_forward( x3d, x2d, w2d, camera, cost_fun, pose_init=pose_gt, force_init_solve=True, with_pose_opt_plus=True)
The pose_gt here seems to come from pose.txt in the dataset.
In training we run EPro-PnP in the monte carlo probabilistic mode, which allows the gradients to back-propagate through the probability density. At test time, probabilistic inference is not necessary, so we simply solve the conventional PnP problem using non-linear least square.
I would like to know where is the code to get the rotation pose after getting the cc_maps in the CDPN.py, after going through the Epro_PnP forword, thanks!
cc_maps = self.rot_head_net(features)
# joints.shape [bs, 1152, 64, 64]