Had executed below command to generate DSM from tiff file(file size > 1GB) with following command:
docker exec -it python3 /code/run.py --project-path /datasets project --dsm --orthophoto-resolution 2 --geo /code/geo.txt
The previous issues wrt file size & undistorted are resolved. Now the script fails while executing script “code/stages/mystex.py” at line 108 with the following error:
[INFO] running “/code/SuperBuild/install/bin/texrecon” “/datasets/project/opensfm/undistorted/reconstruction.nvm” “/datasets/project/odm_meshing/odm_mesh.ply” “/datasets/project/odm_texturing/odm_textured_model_geo” -d gmi -o gauss_clamping -t none --no_intermediate_results
/code/SuperBuild/install/bin/texrecon (built on Sep 25 2021, 08:33:41)
Load and prepare mesh:
Reading PLY: 199919 verts… 399834 faces… done.
Generating texture views:
NVM: Loading file…
NVM: Number of views: 24
NVM: Number of features: 432144
Loading 100%... done. (Took 14.641s)
Building adjacency graph:
Adding edges 100%... done. (Took 0.633s)
599751 total edges.
View selection:
Building BVH from 399834 faces… done. (Took: 231 ms)
Calculating face qualities 100%... done. (Took 29.904s)
Postprocessing face infos 100%... done. (Took 0.028s)
Maximum quality of a face within an image: 36157.8
Clamping qualities to 4881.8 within normalization.
Optimizing:
Time[s] Energy
0 366535
0 364936
1 362097
1 360443
1 359700
2 359272
2 359002
2 358894
2 358732
3 358616
3 358526
3 358444
3 358367
22039 faces have not been seen
Took: 34.633s
Generating texture patches:
Running… done. (Took 19.088s)
558 texture patches.
Running global seam leveling:
Create matrices for optimization… done.
Lhs dimensionality: 199639 x 199639
Calculating adjustments:
Color channel 0: CG took 65 iterations. Residual is 9.72896e-05
Color channel 2: CG took 66 iterations. Residual is 9.43003e-05
Color channel 1: CG took 65 iterations. Residual is 9.93726e-05
Took 0.241 seconds
Adjusting texture patches 100%... done. (Took 13.859s)
Running local seam leveling:
Blending texture patches 100%... done. (Took 48.723s)
Generating texture atlases:
Sorting texture patches… done.
terminate called after throwing an instance of ‘std::bad_alloc’
Please suggest/advise, which parameter needs to be updated/adjusted here?