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

colmap2mvsnet.py issue #39

Open
mxgbs opened this issue May 8, 2024 · 4 comments
Open

colmap2mvsnet.py issue #39

mxgbs opened this issue May 8, 2024 · 4 comments

Comments

@mxgbs
Copy link

mxgbs commented May 8, 2024

Got error, the invalid key in the end. How could this work since if you run to the end, i+1 will out of range?? Please advice. Thank u

for i in range(num_images):
zs = []
for p3d_id in images[i+1].point3D_ids:

@jzhangbs
Copy link
Owner

Hi @mxgbs, images is a dict with image id starting from 1 instead of 0, you can see all the indexing are with +1. Maybe some of the images are discarded in sfm. A simple test is to try other scans.

@flow-specter
Copy link

If this situation occurs—'Maybe some of the images are discarded in SfM'—how should it be handled?

@jzhangbs
Copy link
Owner

maybe the simplest solution is to remove the missing images and run colmap again

@flow-specter
Copy link

Yes, this would be simpler, but it would lead to unnecessary time costs.

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