Check failed: max_num_elems > 0 (0 vs. 0)
See original GitHub issueDescribe 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:
- Created a year ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, try giving this video a go - https://drive.google.com/file/d/19zEm-CpOjpVObFzGqrxou5ndBjb_fAui/view?usp=sharing
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.