zengwang430521 / DecoMR

Repository for the paper " 3D Human Mesh Regression with Dense Correspondence "
Apache License 2.0
168 stars 23 forks source link

help of predict about camera parameter? #25

Open zhangzhenyu-zzy opened 3 years ago

zhangzhenyu-zzy commented 3 years ago

hello,i find we predict the camera parameter[z,tx,ty],and then we get the wold coordinate[tx,ty,2×focal_length/img_size×z],and we get this picture just use the world coordinate in render, image now,i want to use pytorch3d to replace the original renderer,but in pytorch3d,the setting in camera should know the R and T,but we only konw the world coordinate [tx,ty,2×focal_length/img_size×z],can you help me,how can i use pytorch3d to get the same img(There can be no background image)

zengwang430521 commented 3 years ago

Hi, you may try: R = torch.eye(3) and T = [tx,ty, 2×focal_length / (img_size×z)]