I can't use the "vocab_tree" method to match the images, while it works with the matching way of "sequential"
Describe the bug I can't use the "vocab_tree" method to match the images, while it works with the matching way of "sequential"
To Reproduce Steps to reproduce the behavior:
- Use anaconda in Windows 11 to get in to the nerfstudio folder which is located in E:
- Use anaconda to activate nerfstudio environment "nerfstudio" which is in C:
- run"ns-process-data images ..."
- See error: error running command: colmap vocab_tree_matcher --database_path data\colmap\database.db --SiftMatching.use_gpu 1 --VocabTreeMatching.vocab_tree_path C:\Users\Username\AppData\Local\nerfstudio\nerfstudio\vocab_tree.fbow
- I have changed the matching-method to "sequential" which works, the other 2 ways of matching-methods can't work due to the same error. I have change the nerfstudio folder in E: to C: , but it still can't work
Expected behavior it should have ran the colmap correctly
Screenshots

Additional context I have changed the matching-method to "sequential" which works, the other 2 ways of matching-methods can't work due to the same error. I have change the nerfstudio folder in E: to C: , but it still can't work
What error do you see if you run the following in the terminal?
colmap vocab_tree_matcher --database_path data\colmap\database.db --SiftMatching.use_gpu 1 --VocabTreeMatching.vocab_tree_path C:\Users\Lemon Zhong\AppData\Local\nerfstudio\nerfstudio\vocab_tree.fbow
I am having the same issue with colmap failing while running colmap feature matcher, my error after running the command you gave is this:
============================================================================== Vocabulary tree feature matching
F0210 23:52:31.981678 1330144 cache.h:132] Check failed: max_num_elems > 0 (0 vs. 0) *** Check failure stack trace: *** @ 0x7ff46067b1c3 google::LogMessage::Fail() @ 0x7ff46068025b google::LogMessage::SendToLog() @ 0x7ff46067aebf google::LogMessage::Flush() @ 0x7ff46067b6ef google::LogMessageFatal::~LogMessageFatal() @ 0x5622e646d055 colmap::LRUCache<>::LRUCache() @ 0x5622e645b0f0 colmap::FeatureMatcherCache::Setup() @ 0x5622e6468296 colmap::VocabTreeFeatureMatcher::Run() @ 0x5622e65c3091 colmap::Thread::RunFunc() @ 0x7ff45f250de4 (unknown) @ 0x7ff45f376609 start_thread @ 0x7ff45eefb133 clone Aborted (core dumped)
Does it work for other data? Can you also try using one of the other matchers, --matching-method exhaustive
It seems no data can work when I use vocab tree or "exhaustive", but it works when I use the method "sequential".
---Original--- From: "Matthew @.> Date: Sun, Feb 12, 2023 02:41 AM To: @.>; Cc: "Ningze @.@.>; Subject: Re: [nerfstudio-project/nerfstudio] I can't use the "vocab_tree"method to match the images, while it works with the matching way of"sequential" (Issue #1377)
Does it work for other data? Can you also try using one of the other matchers, --matching-method exhaustive
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Is this also true if you use the data we provide, ie the poster dataset (the data is already processed, but you can run ns-process-data on the images folder)?
vocab tree requires an additional file that is downloaded the first time it is run, it's possible there is a bug there. However if exhaustive also doesn't work, this is less likely. My best guess is that colmap is struggling to find matches in the data you are using, this can be confirmed by running on data we know works (poster dataset). If it doesn't work on the poster dataset, then it might be an issue with the colmap installation.