question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check failed: max_num_elems > 0 (0 vs. 0)

See original GitHub issue

Describe the bug I’m trying to execute the preprocessing command on the nerfstudio documentation:

ns-process-data video --data {data_path} --output-dir {output_path} --no_gpu

Using no_gpu flag as I do not have a display. Running these on a EC2 instance. AMD64, 20.04 Ubuntu with CUDA 11.6

But the following error appears:

[12:53:19] πŸŽ‰ Done converting video to images.                                                       process_data.py:178
[12:53:47] πŸŽ‰ Done downscaling images.                                                               process_data.py:322
           πŸŽ‰ Done extracting COLMAP features.                                                       process_data.py:363
──────────────────────────────────────────────  πŸ’€ πŸ’€ πŸ’€ ERROR πŸ’€ πŸ’€ πŸ’€  ───────────────────────────────────────────────
Error running command: colmap vocab_tree_matcher --database_path /home/ubuntu/Datasets/Processed/colmap/database.db 
--SiftMatching.use_gpu 0 --VocabTreeMatching.vocab_tree_path /home/ubuntu/.local/share/nerfstudio/vocab_tree.fbow
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
F20221025 12:53:48.190236 134291 cache.h:132] Check failed: max_num_elems > 0 (0 vs. 0) 
*** Check failure stack trace: ***
    @     0x55602e3a7a00  google::LogMessage::SendToLog()
    @     0x55602e3a3f46  google::LogMessage::Flush()
    @     0x55602e3a819f  google::LogMessageFatal::~LogMessageFatal()
    @     0x55602db72bbd  colmap::LRUCache<>::LRUCache()
    @     0x55602db61dd7  colmap::FeatureMatcherCache::Setup()
    @     0x55602db6de96  colmap::VocabTreeFeatureMatcher::Run()
    @     0x55602dcc7ad1  colmap::Thread::RunFunc()
    @     0x7f0c8a74cde4  (unknown)
    @     0x7f0c8a86a609  start_thread
    @     0x7f0c8a544133  clone
    @              (nil)  (unknown)
Aborted (core dumped)

Reproduce Installed colmap using the vcpkg succesfully. Then, run the command written above to preprocess custom data.

*Expected behavior I expected colmap to run the preprocessing correctly.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tancikcommented, Oct 25, 2022
0reactions
corbtcommented, Nov 22, 2022

I ran into this issue yesterday as well when running a working nerfstudio Docker image on a new host with a different GPU.

For future readers, it’s worth clarifying that this issue is a generic problem that means that COLMAP wasn’t able to place any images. The actual reason COLMAP failed can vary. You can sometimes get more information by manually running the COLMAP feature extractor from the command line manually and checking the output for errors. In my case I ran colmap feature_extractor --database_path test.db --image_path ./images --ImageReader.single_camera 1 --ImageReader.camera_model OPENCV --SiftExtraction.use_gpu 0, and saw that COLMAP wasn’t able to access my GPU for some reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check failed: max_num_elems Β· Issue #1195 - GitHub
I'm studying the nerfies https://github.com/google/nerfies and using colmap to create a dataset of images. when execute with colmapΒ ...
Read more >
status == CUDNN_STATUS_SUCCESS (7 vs. 0)Failed to set ...
0 )Failed to set cuDNN stream. Im using the GPU version of tensorflow and it has worked without problems up until about 3...
Read more >
Netty 4.1.59.Final released - Netty.news
For more details about the impact of the CVE check the Security ... Fix memory release failure when "maxNumElems == 1" of PoolSubpageΒ ......
Read more >
3 Performance Tuning - Oracle Help Center
A value of 0 turns off checking. The searchStringMinimumLength constraint is enforced for searches that are conducted using the Oracle Access Manager userΒ ......
Read more >
Viewing online file analysis results for 'BungeeCord.jar'
Not all malicious and suspicious indicators are displayed. Get your own cloud service or the full version to view all details. Malicious Indicators...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found