tsattler / visuallocalizationbenchmark

342 stars 58 forks source link

reconstruction pipeline issues #48

Closed Prinsphield closed 3 years ago

Prinsphield commented 3 years ago

I have extracted features of R2D2, and was going to run the reconstruction_pipeline.py, but encountered the following error. Could you please take a look? I don't know why the number of triangulated points is 0 and the nothing was generated in the final_txt_model_path.

==============================================================================
Triangulating image #4479 (4327)
==============================================================================

  => Image sees 0 / 0 points       
  => Triangulated 0 points                          

==============================================================================
Retriangulation                                                                                          
==============================================================================

  => Completed observations: 0                                                                           
  => Merged observations: 0                                                                              

==============================================================================
Bundle adjustment                                   
==============================================================================

F0723 07:48:51.958273 2665382 colmap.cc:1573] Check failed: bundle_adjuster.Solve(&reconstruction)       
*** Check failure stack trace: ***                                                                                                                                                                                 
    @     0x7f722520a50d  google::LogMessage::Fail()                                                     
    @     0x7f722520c94c  google::LogMessage::SendToLog()                                                                                                                                                          
    @     0x7f722520a040  google::LogMessage::Flush()                                                                                                                                                              
    @     0x7f722520cea9  google::LogMessageFatal::~LogMessageFatal()         
    @     0x561c0f2ddf00  RunPointTriangulator()
    @     0x561c0f2d2b0e  main
    @     0x7f72239aad0a  __libc_start_main
    @     0x561c0f2d6b8a  _start
    @              (nil)  (unknown)

==============================================================================
Loading database                                    
==============================================================================

Loading cameras... 5401 in 0.004s
Loading matches... 0 in 0.000s
Loading images... 5401 in 0.005s (connected 0)
Building correspondence graph... in 0.000s (ignored 0)

Elapsed time: 0.000 [minutes]

F0723 07:48:52.029235 2665383 reconstruction.cc:809] cameras, images, points3D files do not exist at /usr/local/google/home/xiaotaihong/datasets/Aachen-Day-Night/sparse-r2d2_mega_consistent_1_epoch_37_0.7-databa
se                                                  
*** Check failure stack trace: ***
    @     0x7fc8d422650d  google::LogMessage::Fail() 
    @     0x7fc8d422894c  google::LogMessage::SendToLog()
    @     0x7fc8d4226040  google::LogMessage::Flush()
    @     0x7fc8d4228ea9  google::LogMessageFatal::~LogMessageFatal()
    @     0x55aac5d4fd1e  colmap::Reconstruction::Read()
    @     0x55aac5c8b9dd  RunImageRegistrator()
    @     0x55aac5c81b0e  main
    @     0x7fc8d29c6d0a  __libc_start_main
    @     0x55aac5c85b8a  _start
    @              (nil)  (unknown)
Recovering query poses...                           
F0723 07:48:52.074733 2665384 reconstruction.cc:809] cameras, images, points3D files do not exist at /usr/local/google/home/xiaotaihong/datasets/Aachen-Day-Night/sparse-r2d2_mega_consistent_1_epoch_37_0.7-final
*** Check failure stack trace: ***
    @     0x7f66545ae50d  google::LogMessage::Fail() 
    @     0x7f66545b094c  google::LogMessage::SendToLog()
    @     0x7f66545ae040  google::LogMessage::Flush()
    @     0x7f66545b0ea9  google::LogMessageFatal::~LogMessageFatal()
    @     0x56280aa63d1e  colmap::Reconstruction::Read()
    @     0x56280a99e15c  RunModelConverter()
    @     0x56280a995b0e  main
    @     0x7f6652d4ed0a  __libc_start_main
    @     0x56280a999b8a  _start
    @              (nil)  (unknown)
Traceback (most recent call last):
  File "/usr/local/google/home/xiaotaihong/work/keypoint-eval/visuallocalizationbenchmark/local_feature_evaluation/reconstruction_pipeline.py", line 340, in <module>
    recover_query_poses(paths, args)
  File "/usr/local/google/home/xiaotaihong/work/keypoint-eval/visuallocalizationbenchmark/local_feature_evaluation/reconstruction_pipeline.py", line 283, in recover_query_poses
   with open(os.path.join(paths.final_txt_model_path, 'images.txt')) as f:
tsattler commented 3 years ago

It seems that there are no matches in the database. Without matches it is impossible to build a 3D model.

Prinsphield commented 3 years ago

The db file is generated during the pipeline. What I have are all those extracted features. So may I know what's wrong with the process. I have no idea why there are no matches in the database. Another question is: in order to make a submission, do I need to run the all those steps in Localization?

tsattler commented 3 years ago

Can you give me some details on what you have done so far?

tsattler commented 3 years ago

Given that there has been no reply, I assume that this is not an issue anymore and am closing it.