OpenDroneMap / ODM

A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
https://opendronemap.org
GNU Affero General Public License v3.0
4.88k stars 1.11k forks source link

Generating texture patches terminates with bad_alloc (>350 images) #855

Closed nj07 closed 6 years ago

nj07 commented 6 years ago

I am running OpenDroneMap using Docker on GCP. My instance has 32GB RAM. Input size is 413 images.

docker run -it --rm -v "$(pwd)/images:/code/images" -v "$(pwd)/odm_prthophoto:/code/odm_orthophoto" -v "$(pwd)/odm_texturing:/code/odm_texturing" opendronemap/opendronemap

While generating texture patches, it terminates with bad_alloc.

    Building BVH from 114082 faces... done. (Took: 240 ms)
    Calculating face qualities 100%... done. (Took 844.099s)                
    Postprocessing face infos 100%... done. (Took 0.999s)                   
    Maximum quality of a face within an image: 84027.3
    Clamping qualities to 6899.33 within normalization.
    Writing data cost file... done.
    Optimizing:
            Time[s] Energy
            0       88736
            1       87660
            1       85639
            2       84446
            2       83905
            2       83630
            3       83473
            4       83312
            4       83210
            4       83132
            5       83086
            5       83046
            5       83017
            6       82999
            6       82976
    13652 faces have not been seen
    Took: 853.919s

Generating texture patches: Running... terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped) Traceback (most recent call last): File "/code/run.py", line 47, in plasm.execute(niter=1) File "/code/scripts/mvstex.py", line 139, in process '{keepUnseenFaces}'.format(**kwargs)) File "/code/opendm/system.py", line 34, in run raise Exception("Child returned {}".format(retcode)) Exception: Child returned 134

Please help. Thanks

pierotofy commented 6 years ago

Not enough memory, same as #856