zju3dv / OnePose_Plus_Plus

Code for "OnePose++: Keypoint-Free One-Shot Object Pose Estimation without CAD Models" NeurIPS 2022
Apache License 2.0
380 stars 46 forks source link

bug when running sfm #47

Closed tfwang08 closed 1 year ago

tfwang08 commented 1 year ago
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 507/507 [00:00<00:00, 3169.05it/s]
[2023-09-24 23:40:38,969][root][INFO] - Importing matches into the database...██████████████████████████████████▎                                                            | 324/507 [00:00<00:00, 3234.50it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2028/2028 [00:00<00:00, 3014.16it/s]
[2023-09-24 23:40:39,748][root][INFO] - Performing geometric verification of the matches...████████████████████████████████████████████████████████████████▎               | 1837/2028 [00:00<00:00, 2979.20it/s]

==============================================================================
Custom feature matching
==============================================================================

[sift.cc:84] Check failed: max_num_matches > 0 (0 vs. 0)
F0924 23:40:39.891012 30539 sift.cc:1220] Check failed: options_.Check()
*** Check failure stack trace: ***
    @     0x7f79476abb03  google::LogMessage::Fail()
    @     0x7f79476b39d1  google::LogMessage::SendToLog()
    @     0x7f79476ab7c2  google::LogMessage::Flush()
    @     0x7f79476ad78f  google::LogMessageFatal::~LogMessageFatal()
    @     0x55d8dbaf16cd  colmap::(anonymous namespace)::SiftGPUFeatureMatcher::Create()
    @     0x55d8dbaf17b1  colmap::CreateSiftFeatureMatcher()
    @     0x55d8db49243d  colmap::FeatureMatcherWorker::Run()
    @     0x55d8db523c86  colmap::Thread::RunFunc()
    @     0x7f7946151253  (unknown)
    @     0x7f7945ddab43  (unknown)
    @     0x7f7945e6ca00  (unknown)
[2023-09-24 23:40:39,931][root][WARNING] - Problem with matches_importer, existing.

I change skip_geometric_verification=True, it looks like it works fine. Is it ok to modify this parameter in this way?

yeying256 commented 2 months ago

I meet a same bug...

yeying256 commented 2 months ago

I meet a problem sim like to yours. I solve this use install nvidia-cuda-toolkit in ubuntu(not in conda). here is colmap Installation. https://colmap.github.io/install.html

To compile with CUDA support, also install Ubuntu’s default CUDA package:

sudo apt-get install -y \ nvidia-cuda-toolkit \ nvidia-cuda-toolkit-gcc

Or, manually install the latest CUDA from NVIDIA’s homepage. During CMake configuration specify CMAKE_CUDA_ARCHITECTURES as “native”, if you want to run COLMAP on your current machine only (default), “all”/”all-major” to be able to distribute to other machines, or a specific CUDA architecture like “75”, etc.