-
Notifications
You must be signed in to change notification settings - Fork 250
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
ERROR: the correct camera poses for current points cannot be accessed #36
Comments
I have the same error,any suggestion? |
I ended up with a colmap installation error with "Python imgs2 poses.py Fern / "can be run without error. Follow the" Official Guide to colmap "to install," apt get install colmap "may not be useful.If you have any questions, please contact me in time. I'm willing to help you as much as I can. |
Step 1: "scenedir / images /" file structure, run as follows to get the data set made by colmap python imgs2 poses.py <your_ scenedir> Step 2: check that the created file directory has "fern file structure" and copy it to "nerf project file directory" Step 3: modify "config"_ fern.txt ”Folder path and name Step 4: clear all files under "log /", and execute "Python run"_ nerf.py --config config_ fern.txt ”At the same time, you should run "tensorboard -- logdir = logs / summaries -- port = 6006" in the same Anaconda environment and corresponding file directory! At this point, you start the model training and tensorboard training query. The browser can use the“ localhost:6006 ”Check it out, nice~~ |
Hi @stone100010 I seem to have the same error. How did you end up solving the issue? I built colmap from source following the installation guide on the official page. |
window or ubunntu ? @ @AbbyLuHui |
@stone100010 I met the same problem on Ubuntu 18.04, Did you recompile your boost library? |
Thank you. My problem has been solved.Others who have the same question can contact me. |
I solved the exact problem with u with 3 steps:
But then I still met the same problem. So I ran these three lines in terminal:
I found out colmap works fine but the database maybe bad which led no matching image. I changed my database, finally the code I recommend you strongly to test your output with above three commands to see if it's the problem of colmap or your dataset. |
well,it's a good idea! |
Thank you for your help! Just solved the problem. |
Hello @FrankZhang0309 I am having the same problem. Can you give more information on "I changed my database"?. @AbbyLuHui can you tell how you solved the problem? |
@foocross As I said, the dataset is too bad, so COLMAP can not match the images. So ran the three commands I mentioned to see if your images are paired. |
@FrankZhang0309 U are right. I met the same error with my own data. When I input the images of flowers provided by the author, the error disappeared. |
Hello, I am running colmap and it is generating the same error that you raise, I have tried to follow the steps for the solution that they pose @stone100010 @Jiakai-Zhang and I still have the same problem. Could someone help? Thanks! |
Hi, I have fixed the issue at #60 |
@starhiking good job,thanks! |
Hi, I tried using your new code on poses_utils.py and it generated views_imgs.txt however I am curious as to why it always only has 2 images listed in views_imgs.txt, thus, when training, it does not match with the number of images extracted from a video input. I keep receiving an error of "Mismatch between imgs 47 and poses 2 !!!!". I hate 47 images from my dataset but only 2 produced poses. Looking forward to your reply! Thanks! :)) |
I also had a similar problem, this is how I solved:
|
Hi @bmild and all authors, could this issue be addressed? Will we have to conclude that this error shall pop up for bad incompatible datasets? I agree with @bearosari, the new pull request suggested by @starhiking does not seem to resolve the problem. It just generated two images. Hope to get this resolved soon. Thanks! |
I face a similar issue. Ran colmap separately and generated the binary files (cameras, images, points3D) as well as text files. Ran the subfunctions load_colmap_data() followed by save_poses using the loaded cameras, poses, perm (tried with both binary and text), but it clearly has a mismatch between number of images and the cam[ind] it is trying to access. specifically, pts3d[k].image_ids contains inds outside length of camera inds. I know the colmap output isnt bad or degraded because instant-ngp worked fine on this colmap output. I'm guessing either your load_colmap_data or save_poses function may be outdated with respect to latest colmap outputs ? Please help, this is getting me stuck. |
Need to run COLMAP
Features extracted
Features matched
Sparse map created
Finished running COLMAP, see batman2/colmap_output.txt for logs
Post-colmap
Cameras 5
Images # 2
ERROR: the correct camera poses for current points cannot be accessed
Done with imgs2poses
The text was updated successfully, but these errors were encountered: