|
cam_poses[:, :3, 1:3] *= -1 # invert up & forward direction |
In this code, given a camera pose, you want to convert it from opengl to colmap format by reverting the up and forward direction. According to https://github.com/ashawkey/kiuikit/blob/73e34203fd3bd4b5979dc3a38057dff117b39521/kiui/cam.py#L31, it is done by pose[1:3, :] *= -1. But in the above code, it is done by pose[:, 1:3] *= -1
LGM/core/provider_objaverse.py
Line 161 in fe8d12c
In this code, given a camera pose, you want to convert it from opengl to colmap format by reverting the up and forward direction. According to https://github.com/ashawkey/kiuikit/blob/73e34203fd3bd4b5979dc3a38057dff117b39521/kiui/cam.py#L31, it is done by pose[1:3, :] *= -1. But in the above code, it is done by pose[:, 1:3] *= -1