Closed
Description
I want to use this differentiable renderer to render a LINEMOD object. The .ply model vertices are loaded and then scale from mm
to m
by a factor 0.001.
The camera intrinsic:
K = np.array([[572.4114, 0, 325.2611], [0, 573.57043, 242.04899], [0, 0, 1]])
Rotation and translation
R = np.eye(3)
T = np.array([-0.1, 0.1, 0.7])
I followed the camera position tutorial to set the cameras and renderers, except that the camera I used is
cameras = SfMPerspectiveCameras(
focal_length=((K[0,0], K[1,1]), ),
principal_point=((K[0,2], K[1,2]),),
device=device,
)
And since I want to get 480x640 image, I set the image_size=640
and crop to 480x640
after rendering.
However, there is nothing in the rendered results. I could get correct results with a OpenGL renderer with the same settings.
So I wonder how I can correctly use the SfMPerspectiveCameras
?
Metadata
Metadata
Assignees
Labels
No labels