json87 / SphereSfM

SfM for sphere images in the ERP format within the framework of ColMap
BSD 3-Clause "New" or "Revised" License
106 stars 15 forks source link

When using BOW, the code crashes #16

Closed chenxianbo closed 3 months ago

chenxianbo commented 3 months ago

cuda: 11.3 cmake: 3.36.0 Defects as title

json87 commented 3 months ago

Please give the details.

chenxianbo commented 3 months ago

terminate called after throwing an instance of 'flann::FLANNException' what(): Invalid index file, wrong signature Aborted at 1717552088 (unix time) try "date -d @1717552088" if you are using GNU date PC: @ 0x0 (unknown) SIGABRT (@0x3e800004d64) received by PID 19812 (TID 0x7fd465388700) from PID 19812; stack trace: @ 0x7fd4ad472390 (unknown) @ 0x7fd4a8de9438 gsignal @ 0x7fd4a8deb03a abort @ 0x7fd4a95253df __gnu_cxx::verbose_terminate_handler() @ 0x7fd4a9523b16 cxxabiv1::terminate() @ 0x7fd4a9523b4c std::terminate() @ 0x7fd4a9523d28 cxa_throw @ 0x4da7bd flann::NNIndex<>::serialize<>() @ 0x4da981 flann::AutotunedIndex<>::serialize<>() @ 0x4dabf4 flann::AutotunedIndex<>::loadIndex() @ 0x4db2ad colmap::retrieval::VisualIndex<>::Read() @ 0x5a9a1f colmap::VocabTreeFeatureMatcher::Run() @ 0x6ef3fc colmap::Thread::RunFunc() @ 0x7fd4a953f678 execute_native_thread_routine_compat @ 0x7fd4ad4686ba start_thread @ 0x7fd4a8ebb51d clone @ 0x0 (unknown)

json87 commented 3 months ago

Refering to the code "colmap::retrieval::VisualIndex<>::Read()", I think the issue arises from the used vocabulary tree.

chenxianbo commented 3 months ago

it is ok for official colmap to use the vocabulary (vocab_tree_flickr100K_words1M.bin). Can you offer your vocabulary for SIFTGPU

chenxianbo commented 3 months ago

I solve the problem,the linked FLANN library is incompatible