arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.01349cs.CV
收藏

MegBA:一个基于GPU的大规模光束法平差分布式程序库

MegBA: A GPU-Based Distributed Library for Large-Scale Bundle Adjustment

Megvii Inc.(旷视科技有限公司);University of Edinburgh(爱丁堡大学)

Jie Ren, Wenteng Liang, Ran Yan, Luo Mai, Shiwen Liu, Xiao Liu

摘要:

大规模光束法平差需要大量的内存和计算资源,现有的光束法平差库难以满足这一需求。在本文中,我们提出了MegBA,基于GPU的分布式BA库。MegBA通过自动划分大型BA问题,并将子问题的求解器分配给并行节点,可以提供大量的聚合内存。并行求解器采用分布式预条件共轭梯度法和分布式Schur消元法,可以高效地计算出与单节点计算精度相当的有效解。为了加速BA计算,我们使用商品GPU上可用的高性能原语实现端到端BA计算。MegBA公开了易于使用的API,与现有的流行BA库兼容。实验表明,MegBA可以在几个大规模BA基准测试中显著优于最先进的BA库:Ceres(41.45 $\times$),RootBA(64.576 $\times$)和DeepLM(6.769 $\times$)。MegBA的代码可在https://github.com/MegviiRobot/MegBA上获得。

英文摘要:

Large-scale Bundle Adjustment (BA) requires massive memory and computation resources which are difficult to be fulfilled by existing BA libraries. In this paper, we propose MegBA, a GPU-based distributed BA library. MegBA can provide massive aggregated memory by automatically partitioning large BA problems, and assigning the solvers of sub-problems to parallel nodes. The parallel solvers adopt distributed Precondition Conjugate Gradient and distributed Schur Elimination, so that an effective solution, which can match the precision of those computed by a single node, can be efficiently computed. To accelerate BA computation, we implement end-to-end BA computation using high-performance primitives available on commodity GPUs. MegBA exposes easy-to-use APIs that are compatible with existing popular BA libraries. Experiments show that MegBA can significantly outperform state-of-the-art BA libraries: Ceres (41.45$\times$), RootBA (64.576$\times$) and DeepLM (6.769$\times$) in several large-scale BA benchmarks. The code of MegBA is available at https://github.com/MegviiRobot/MegBA.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑