AIBluefisher / DAGSfM

Distributed and Graph-based Structure from Motion. This project includes the official implementation of our Pattern Recognition 2020 paper: Graph-Based Parallel Large Scale Structure from Motion.
https://aibluefisher.github.io/GraphSfM/
BSD 3-Clause "New" or "Revised" License
402 stars 86 forks source link

Fix unnecessary copies of reconstruction and database cache in distributed sfm stage. #48

Closed Yzhbuaa closed 3 years ago

Yzhbuaa commented 3 years ago

Using smart pointer to avoid copying of reconstructions and database caches in distributed sfm stage. The maximum virtual memory usage drops from 403GB to 245GB (40 percent) on master node when running distributed sfm on a dataset which contains 100 thousand images. Besides, avoid copying of large chunk of memory saves roughly 1.5 days in my case(120GB of RAM, 400GB of swap area).