Open jelleopard opened 1 year ago
Hi, thanks for your excellent work!!!
How to reproject pts to a 2d plane? The code I wrote is as follows :
Tensor position_camera = torch::bmm(pts_w2cs, pts); Tensor UV = FlexOps::Sum(weights.unsqueeze(-1) * position_camera.reshape({ n_all_pts, 3 }), idx_start_end); Tensor UV_forward = torch::bmm(pts_intris, UV.unsqueeze(-1)); UV_forward = UV_forward.reshape({ -1, 3 }); Tensor final_UV = UV_f
orward.slice(1, 0, 2) / UV_forward.slice(1, 2, 3);
Thank you for your answer!
Hi, thanks for your excellent work!!!
How to reproject pts to a 2d plane? The code I wrote is as follows :
orward.slice(1, 0, 2) / UV_forward.slice(1, 2, 3);
Thank you for your answer!