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

depth = (poses[id_im-1,:3,2].T @ (point3D - poses[id_im-1,:3,3])) * sc ,WHY? #101

Open
gjgjgjfff opened this issue Sep 12, 2023 · 3 comments

Comments

@gjgjgjfff
Copy link

Hello, I would like to ask why the depth is calculated this way?
and What do 'sc' and 'bds_raw' mean?
What does this judgment condition mean?
if depth < bds_raw[id_im-1,0] * sc or depth > bds_raw[id_im-1,1] * sc:

I'm hoping someone can help me.

@dunbar12138
Copy link
Owner

sc is the downsampling scale of the images and bds_raw is the boundaries of the scene. The condition means we're filtering out those outlier depths which are outside the scene bounding box.

@gjgjgjfff
Copy link
Author

sc is the downsampling scale of the images and bds_raw is the boundaries of the scene. The condition means we're filtering out those outlier depths which are outside the scene bounding box.

Thank you for your reply! I have one more question,after running img2poses on my own dataset to get poses_bounds.npy, when I run run_nerf.py, I get negative numbers in bds_raw, resulting in sc being negative, far being negative, and near being positive. Can you give me some suggestions?
My data set was taken by drones and satellites, far from the ground.

@this233
Copy link

this233 commented Apr 30, 2024

sc is the downsampling scale of the images and bds_raw is the boundaries of the scene. The condition means we're filtering out those outlier depths which are outside the scene bounding box.

Thank you for your reply! I have one more question,after running img2poses on my own dataset to get poses_bounds.npy, when I run run_nerf.py, I get negative numbers in bds_raw, resulting in sc being negative, far being negative, and near being positive. Can you give me some suggestions? My data set was taken by drones and satellites, far from the ground.

maybe you need modify line 66 in llff/poses/pose_utils.py:
cams[ind-1] = 1
should be modified as
cams[perm[ind-1]] = 1

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

3 participants