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

Export to InstantNGP? #28

Open
swtyree opened this issue Oct 11, 2024 · 4 comments
Open

Export to InstantNGP? #28

swtyree opened this issue Oct 11, 2024 · 4 comments

Comments

@swtyree
Copy link

swtyree commented Oct 11, 2024

Hi, I wanted to see how DuST3R poses performed in InstantNGP NeRF reconstruction, and your project seemed to provide a nice shortcut. So I ran InstantNGP's colmap2nerf script on the COLMAP-style output that your scripts produce:

$NGP_PATH/scripts/colmap2nerf.py --images images/ --aabb_scale 4 --text sparse/0/
$NGP_PATH/scripts/run.py transforms.json --gui --train --optimize_extrinsics

The results with InstantNGP are quite a bit worse than the results of Gaussian Splatting with InstantSplat:
InstantSplat
InstantNGP

I don't see any obvious bugs, but I thought I'd ask if you knew of any reason that this shouldn't work, e.g. are there any known bugs in the COLMAP-style output? Are you doing any tricks to get those files to work for Gaussian Splatting? Thanks for any insights!

@Z-zachary
Copy link

Are the camera parameters you used generated by the author method? You turn on the visual camera in training to see if your camera parameters are correct.

I found that the camera parameters generated by the author under the new perspective were wrong, and they were all oriented towards the z axis

@swtyree
Copy link
Author

swtyree commented Oct 14, 2024

Hi @Z-zachary, I'm not sure what you meant by "camera parameters generated by the author under the new perspective", but I used cameras.txt and images.txt generated by InstantSplat's coarse_init_infer.py ("Dust3r_coarse_geometric_initialization"). Here is a visualization of those camera poses in the InstantNGP GUI. The poses look reasonable, but the reconstruction suggests that they are not accurate.
Screenshot 2024-10-14 at 9 32 52 AM

@Z-zachary
Copy link

Ohhhh! i used camera.txt and images.txt generated by InstantSplat's coarse_init_infer.py,but the camera pose is unreasonable.just like:
375929846-08cfe8ed-c11f-4c95-bf99-f94dd55b7d51

Could you provide a file that you read the camera's parameters? Thank you so much

@swtyree
Copy link
Author

swtyree commented Oct 15, 2024

See my first message. I used the colmap2nerf.py script from InstantNGP to convert the COLMAP files (cameras.txt and images.txt) in sparse/0/ into a transforms file:

$NGP_PATH/scripts/colmap2nerf.py --images images/ --aabb_scale 4 --text sparse/0/

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