GraphOptim icon indicating copy to clipboard operation
GraphOptim copied to clipboard

关于global_sfm分支application编译中colmap问题

Open helloCZZ opened this issue 2 years ago • 9 comments

作者你好,我按照你给的global_sfm步骤,已成功完成GraphOptim的编译安装,但是在编译application时遇到colmap版本问题,想请问一下作者使用的是哪个版本的colmap。谢谢。

helloCZZ avatar Nov 30 '22 09:11 helloCZZ

Hi, the compilation of the global_sfm branch is not thoroughly tested (I only tested it on Ubuntu 20.04), therefore I did not merge it into the main branch. I plan to fix the issue this year (support on more platforms & operating systems). I'd like to help you. Before that, could you show me the compilation output?

AIBluefisher avatar Nov 30 '22 10:11 AIBluefisher

问题如下所示: image

我对比了不同版本colmap中two_view_geometry.h的代码,发现在3.4及之前为EstimateWithRelativePose,在之后的版本中改为了EstimateRelativePose,如下图所示: image image 我认为你在application中使用的应该是colmap 3.4之前的版本,我目前也正在尝试更换colmap版本。

helloCZZ avatar Nov 30 '22 10:11 helloCZZ

okay. Would you mind submitting a PR to fix this issue? For example, we can obtain the version number of COLMAP to use different interfaces.

AIBluefisher avatar Nov 30 '22 11:11 AIBluefisher

I'm sorry. I don't know how to do. After I reduced the colmap version to 3.4, a new issue occurred. colmap was only supported as a library after 3.5, but 3.5 uses EstimateRelativePose instead of EstimateWithRelativePose, so when compiling the code in the "application", the colmap library could not be found. I don't know how to solve this problem. image image

helloCZZ avatar Nov 30 '22 11:11 helloCZZ

Alright. You may try my branch instead: https://github.com/AIBluefisher/colmap .

AIBluefisher avatar Nov 30 '22 12:11 AIBluefisher

Keep this issue opening if the problem is still not solved.

AIBluefisher avatar Nov 30 '22 12:11 AIBluefisher

作者您好,我使用了你提供的colmap,能够成功对“application”进行编译,然后按你提供的命令(“./applications/run_global_sfm.sh $DATASET_PATH $OUTPUT_PATH $VOC_TREE_PATH $MOST_SIMILAR_IMAGES_NUM”)运行,运行时出现了以下错误,采用的图片是我自己上传的19张图片,MOST_SIMILAR_IMAGES_NUM设置为5

image

helloCZZ avatar Dec 01 '22 13:12 helloCZZ

Could you provide the database or images ?

AIBluefisher avatar Dec 02 '22 02:12 AIBluefisher

I have sent it to you via email

helloCZZ avatar Dec 02 '22 06:12 helloCZZ