IHMR icon indicating copy to clipboard operation
IHMR copied to clipboard

about the 3d rotate with 2d rotate

Open lvZic opened this issue 3 years ago • 5 comments

in the data_processor.random_rotate(), the returned joint2d is right: image

however the returned joint3d is weird: image and the returned mano output is : image

lvZic avatar Sep 23 '22 08:09 lvZic

@lvZic How do you visualize the 3D joints and MANO outputs?

penincillin avatar Sep 28 '22 17:09 penincillin

@lvZic How do you visualize the 3D joints and MANO outputs?

i use camera intrinsics to cvt 3D joints to 2D joints (camera to pixel), and use global rotation and position (mano[:3] and mano[-3:]) to cvt MANO outputs to 3D joints.

lvZic avatar Sep 29 '22 02:09 lvZic

@lvZic How do you visualize the 3D joints and MANO outputs?

in fact, i found the random rotation strategy is widely used just as your do in data augmentation. But the visual result i saw is not expected. I guees may be the orthographic projection is assumed between 3d and 2d, so the inaccuracy can be removed by the regression output "scale" and trans_x, trans_y"?

lvZic avatar Sep 29 '22 02:09 lvZic

@penincillin i now rotate the 3D joints first, then use camera intrinsics to get 2d joints, and use affine transform to rotate image. However, the result seems not just 2d rotation.

lvZic avatar Sep 29 '22 02:09 lvZic

The inaccurate rotation may be caused by orthogonal projection.

penincillin avatar Oct 01 '22 17:10 penincillin