-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to render with real camera pose #9
Comments
Hi, Thanks for you interest in our work. One easy way is to directly use the input images instead of trying to re-render them using PyTorch3D. If you still want to use PyTorch3D, I will be happy to help with setting it up and share some code. I think the following solution can help. Let me know how it goes and if you face any issue. Essentially, what one needs is the camera intristics and extrinsics. Attached is a replay_sample which is saved from here. Here is some boiler plate code to load the sample and preprocess it. The preprocessing is same as done here. Note that we cannot apply 3D augmentations in this case.
For camera intrisics, you can use something like this.
Then you need to calculate the camera extrinsics and convert the values to PyTorch3D format. Here is an example:
Then we can render with PyTorch 3D as following:
Hope this example is self-sufficient. Let me know if you have any other questions. |
thanks you so much. this helps tremendously! just want to double check why we cannot do 3d augmentation in this case? from these real views, if we rerender using PyTorch3D after 3D augmentation, wouldn't that work? |
We cannot do 3D augmentation as then the pose of the camera with respect to the point cloud would change. Then the images rendered won't be from the real camera poses. |
Thank you! |
Hi, thanks for your great codebase. I was trying to render pytorch3d to produce view that matches real observation but failed. I wonder if you can also share some code for your ablation study that uses real camera view? Thx
The text was updated successfully, but these errors were encountered: