Colmap closes starting dense reconstruction: "out of memory in C:/Users/jachoenh/Development/colmap"

758 views
Skip to first unread message

Gerardo Álvarez

unread,
May 20, 2017, 3:51:06 PM5/20/17
to COLMAP
Using Colmap 2.1 dev with CUDA (*) on Windows 7 (**)

I have 603 pictures taken with a GoPro HERO4 of the inside of a theatre (jpgs, 4000*3000 pixels)

Automatic reconstruction seems to work OK,
I adjusted máximum image size to 4000 instead of the default 3200 and after succesfully extracting and matching features, I got a good looking sparse point cloud in two separate models.


I tried dense reconstruction, succesfully undistorted a set of 318 Images corresponding to the main model.
All the resulting undistorted images are 6395 x 3781 pixels

However when I get to Stereo stage, the program hangs after 2 minutes.


In the Log I see:

Reading configuration...

================================================
Processing View 1/319
================================================

Reading inputs...

It stays like that for a while, memory starts to fill and right before it closes:

PatchMatch::Problem
---------------------------------
ref_image_id: 238
src_image_ids: 157 160 (...) etc

PatchMatch::Options
================================================
gpu_index: 0
(...)
filter_geom_consistency_max_cost: 1
PatchMatch::Run

At this moment a message appears in the colmap.exe Console:
out of memory in C:/Users/jachoenh/Development/colmap/src/.\nvs\gpu_mat.h at line 151

And right after colmap closes, a last error for a fraction of a second before the Console closes too:
QObject::^QObject: Timers cannot be stopped from another thread

I tried the previous dev versión (Commit 308d5c1 on 2017 04 24 with CUDA) stable versión (COLMAP 2.1), in both cases RAM fills at a linear rate from 2 to almost 8 GB, stays flat, and then closes, taking about 8 minutes to hang.

Any ideas?

Best

(*) (Commit b2d00e1 on 2017-05-11 with CUDA)

(**) Windows 7 Ultimate SP 1 64 bits, Intel Core 2 Quad, 8 GB RAM, Geforce GTX 1060 6 GB, CUDA 8.0.0 driver (6.14.13.8205), Graphics Controller 382.05

Johannes Schönberger

unread,
May 20, 2017, 4:22:37 PM5/20/17
to col...@googlegroups.com
Hi,

The error message says: "out of memory". Your GPU doesn't have enough memory to process these large images. To fix this, please refer to https://colmap.github.io/faq.html#reduce-memory-usage-during-dense-reconstruction

Let me know if this solves your problem.

Cheers,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/4acc493d-4114-40c4-9128-9f89bc7d3951%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gerardo Álvarez

unread,
May 21, 2017, 4:30:29 AM5/21/17
to COLMAP
Hi,

Yep, it´s working now. Thanks!

Oleksii Martens

unread,
May 25, 2017, 12:42:40 PM5/25/17
to COLMAP
Reducing the number of source images did not help me. Did you reduce max_image_size?
To which extend did you reduced it if so? 

Gerardo Álvarez

unread,
May 25, 2017, 12:55:49 PM5/25/17
to col...@googlegroups.com
I reduced it to 2000 pixels, down from GoPro´s 4000x300 native size.

Gerardo Álvarez

--
You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/hpQz_gN8llU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to colmap+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages