AIBluefisher / GraphOptim

The official implementation of our CVPR 2021 paper - Hybrid Rotation Averaging: A Fast and Robust Rotation Averaging Approach
BSD 3-Clause "New" or "Revised" License
147 stars 24 forks source link

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

Open helloCZZ opened 1 year ago

helloCZZ commented 1 year ago

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

AIBluefisher commented 1 year ago

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?

helloCZZ commented 1 year ago

问题如下所示: image

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

AIBluefisher commented 1 year ago

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.

helloCZZ commented 1 year ago

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

AIBluefisher commented 1 year ago

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

AIBluefisher commented 1 year ago

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

helloCZZ commented 1 year ago

作者您好,我使用了你提供的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

AIBluefisher commented 1 year ago

Could you provide the database or images ?

helloCZZ commented 1 year ago

I have sent it to you via email