Skip to content
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

different methods to obtain ref_local_d #35

Open
Valentina-Zhang opened this issue Sep 9, 2024 · 1 comment
Open

different methods to obtain ref_local_d #35

Valentina-Zhang opened this issue Sep 9, 2024 · 1 comment

Comments

@Valentina-Zhang
Copy link

Hello, I noticed that there are two different approaches to obtain ref_local_d in the train.py file:

ref_local_d = render_pkg['rendered_distance'].squeeze()
# rays_d = viewpoint_cam.get_rays()
# rendered_normal2 = rendered_normal.reshape(-1,3)
# ref_local_d = render_pkg['plane_depth'].view(-1) * ((rendered_normal2 * rays_d.reshape(-1,3)).sum(-1).abs())
# ref_local_d = ref_local_d.reshape(H,W)

I was wondering if there are any significant differences between the current method and the commented-out code (apart from potential CUDA acceleration)? Do they produce identical results?

Thank you for your time and for sharing this great work!

@xmlyqing00
Copy link

I computed the difference between these depth maps, they are different LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants