基於注意力機制的多維合作網路進行立體匹配並與 DROID-SLAM 結合進行三維場景重建
Attention based Multi-Dimensional Cooperative Network for Stereo Matching and Integration with DROID-SLAM for 3D Scene Reconstruction
摘要
我們提出了一個全面的框架,利用雙目相機進行三維場景重建。在這篇論文中,我們提出了一種即時的立體匹配網路,名為基於注意力機制的多維合作網路 (Attention based Multi-Dimensional Cooperative Network),專門用於深度估測。為了完成三維場景重建,我們將 AMDCNet 與 DROID-SLAM 結合,DROID-SLAM 是一種基於深度學習的同時定位與地圖構建方法 (Simultaneous localization and mapping),使我們能夠準確地獲得每對雙目影像的相機位姿。這種整合的方法確保了可靠且高效的三維場景重建。
精確的深度估測在進行三維場景重建過程中起著至關重要的作用。此外,它也是各種應用的關鍵任務,例如避障、自動駕駛和無人機導航。在這些應用中,立體匹配方法比單眼方法更受青睞,因為它們能夠提供更精確的深度資訊。值得注意的是,立體匹配算法預測的深度以絕對單位表示,這進一步增強了它們適用於各種現實世界場景的能力。
之前的立體匹配方法如 PSMNet 和 GwcNet 在估測視差方面表現出很高的準確性,但它們計算時間過長。為了解決這個問題,MDCNet 提出了一種多維合作網路,利用二維網路生成粗糙的視差,並採用粗到精的策略 (coarse-to-fine) 來減少視差範圍和間隔。這使得後續的三維網路能夠專注於較小的視差範圍,從而提高了模型的速度和準確性。
同樣,Fast-ACVNet 與 MDCNet 具有相同的概念,但有一個關鍵的區別。Fast-ACVNet 使用三維網路生成粗糙的視差,並採用基於體積注意力機制 (volume attention propagation) 的精到重要的取樣策略 (fine-to-important) 來取樣關鍵的視差值。此外,它利用機率體積 (probability volume) 作為注意力權重 (attention weights),過濾後續的成本體積 (cost volume),從而顯著提高了模型的準確性。
在本文中,我們提出了基於注意力機制的多維合作網路 (AMDCNet),這是一種新穎的立體匹配模型,有效地結合了 Fast-ACVNet 和 MDCNet 的優點。AMDCNet 利用二維網路生成粗糙的視差,同時保持基於體積注意力機制的精到重要的策略,以保留粗糙視差中的重要視差值。此外,它利用機率體積作為注意力權重,過濾後續的成本體積。這些技術的結合不僅加速了粗糙視差的生成,還使後續的三維網路能夠保持高準確率預測更小範圍的視差。此外,為了解決模型在不同場景的泛化能力問題,我們引入了 HSM-Net 提出的非對稱資料擴增 (asymmetric data augmentation)。這種方法調整左右影像的對比度,有效地模擬現實場景中存在的不同光照條件。模型在 NVIDIA RTX 3090 Ti 上估計每張視差圖只需 23 毫秒。
為了獲得不同雙目影像的相機位姿,我們將 AMDCNet 估測的深度圖和對應的左圖輸入到 DROID-SLAM 中。值得注意的是,AMDCNet 估測的深度提供絕對單位,確保 DROID-SLAM 估計的相機位姿保持與真實世界相同的尺度。一旦我們有了相機位姿和深度資訊,我們可以將 RGB 影像進行反投影到三維空間中。接著我們就能夠透過一個特殊的資料結構截斷符號函數體積 (Truncated Signed Distance Function volume) 來整合這些三維資料。最後,我們套用行進立方演算法 (Marching Cubes algorithm) 生成場景的三維網格。
精確的深度估測在進行三維場景重建過程中起著至關重要的作用。此外,它也是各種應用的關鍵任務,例如避障、自動駕駛和無人機導航。在這些應用中,立體匹配方法比單眼方法更受青睞,因為它們能夠提供更精確的深度資訊。值得注意的是,立體匹配算法預測的深度以絕對單位表示,這進一步增強了它們適用於各種現實世界場景的能力。
之前的立體匹配方法如 PSMNet 和 GwcNet 在估測視差方面表現出很高的準確性,但它們計算時間過長。為了解決這個問題,MDCNet 提出了一種多維合作網路,利用二維網路生成粗糙的視差,並採用粗到精的策略 (coarse-to-fine) 來減少視差範圍和間隔。這使得後續的三維網路能夠專注於較小的視差範圍,從而提高了模型的速度和準確性。
同樣,Fast-ACVNet 與 MDCNet 具有相同的概念,但有一個關鍵的區別。Fast-ACVNet 使用三維網路生成粗糙的視差,並採用基於體積注意力機制 (volume attention propagation) 的精到重要的取樣策略 (fine-to-important) 來取樣關鍵的視差值。此外,它利用機率體積 (probability volume) 作為注意力權重 (attention weights),過濾後續的成本體積 (cost volume),從而顯著提高了模型的準確性。
在本文中,我們提出了基於注意力機制的多維合作網路 (AMDCNet),這是一種新穎的立體匹配模型,有效地結合了 Fast-ACVNet 和 MDCNet 的優點。AMDCNet 利用二維網路生成粗糙的視差,同時保持基於體積注意力機制的精到重要的策略,以保留粗糙視差中的重要視差值。此外,它利用機率體積作為注意力權重,過濾後續的成本體積。這些技術的結合不僅加速了粗糙視差的生成,還使後續的三維網路能夠保持高準確率預測更小範圍的視差。此外,為了解決模型在不同場景的泛化能力問題,我們引入了 HSM-Net 提出的非對稱資料擴增 (asymmetric data augmentation)。這種方法調整左右影像的對比度,有效地模擬現實場景中存在的不同光照條件。模型在 NVIDIA RTX 3090 Ti 上估計每張視差圖只需 23 毫秒。
為了獲得不同雙目影像的相機位姿,我們將 AMDCNet 估測的深度圖和對應的左圖輸入到 DROID-SLAM 中。值得注意的是,AMDCNet 估測的深度提供絕對單位,確保 DROID-SLAM 估計的相機位姿保持與真實世界相同的尺度。一旦我們有了相機位姿和深度資訊,我們可以將 RGB 影像進行反投影到三維空間中。接著我們就能夠透過一個特殊的資料結構截斷符號函數體積 (Truncated Signed Distance Function volume) 來整合這些三維資料。最後,我們套用行進立方演算法 (Marching Cubes algorithm) 生成場景的三維網格。
We introduce a comprehensive framework for 3D scene reconstruction utilizing a stereo camera setup. In this work, we propose a real-time stereo matching network called AMDCNet, designed specifically for depth estimation. To complete the 3D scene reconstruction, we integrate AMDCNet with DROID-SLAM, a learning-based SLAM method, enabling us to accurately obtain the camera pose for each stereo pair. This unified approach ensures reliable and efficient 3D scene reconstructions.
Accurate depth estimation plays a vital role in completing the 3D scene reconstruction process. Moreover, it serves as a crucial task for various applications, such as obstacle avoidance, autonomous driving, and drone navigation. Among these applications, stereo matching methods are preferred over monocular methods due to their ability to provide more precise depth information. Notably, the depth predicted by stereo matching algorithms is expressed in absolute units, either meters or millimeters, further enhancing their suitability for diverse real-world scenarios.
Previous stereo matching approaches like PSMNet and GwcNet have demonstrated high accuracy in estimating disparity; however, they suffer from extensive computational time. To address this issue, MDCNet proposed a multi-dimensional cooperative network, utilizing a 2D network to generate a rough disparity and employing a coarse-to-fine strategy to reduce disparity range and interval. This allowed subsequent 3D networks to focus on a smaller disparity range, resulting in improved speed and model accuracy.
Similarly, Fast-ACVNet shares the concept of MDCNet, but with a key difference. Fast-ACVNet uses a 3D network to generate rough disparity and employs a fine-to-important strategy based on volume attention propagation (VAP) to sample crucial disparity values. Additionally, it utilizes probability volume as attention weights to filter subsequent cost volume, leading to a significant enhancement in model accuracy.
In this paper, we introduce AMDCNet (Attention-based Multi-Dimensional Cooperative Network), a novel stereo matching model that effectively combines the advantages of both Fast-ACVNet and MDCNet. AMDCNet capitalizes on a 2D network to generate a rough disparity while maintaining the fine-to-important strategy based on volume attention propagation (VAP) to preserve significant disparity values within the rough disparity. Additionally, it leverages probability volume as attention weights to filter the subsequent cost volume. The combination of these techniques not only accelerates the generation of rough disparity but also empowers the subsequent 3D network to predict a smaller range of disparity with improved precision. Furthermore, to address the generalization ability of the model across different domains, we incorporate the asymmetric data augmentation proposed by HSM-Net. This augmentation method adjusts the contrast of the left and right images, effectively simulating the varying lighting conditions present in real-world scenes. The model only takes 23 milliseconds to estimate per disparity map on a NVIDIA RTX 3090 Ti.
To obtain the camera pose for different stereo pairs, we input the depth map estimated by AMDCNet and the corresponding left image into DROID-SLAM. Notably, the depth estimation by AMDCNet provides absolute units, ensuring that the camera poses estimated by DROID-SLAM maintain the same scale as the real world. Once we have the camera poses and depth information, we can perform unprojection of RGB images into 3D space. This process allows us to integrate these 3D data points through a TSDF volume, a specialized data structure. Subsequently, we apply the marching cube algorithm to generate a 3D mesh representation of the scene. Moreover, we introduce a post-processing method that employs a semantic segmentation model to effectively mask out the large-scale sky region in outdoor scenes, further enhancing the accuracy and realism of the 3D reconstruction.
Accurate depth estimation plays a vital role in completing the 3D scene reconstruction process. Moreover, it serves as a crucial task for various applications, such as obstacle avoidance, autonomous driving, and drone navigation. Among these applications, stereo matching methods are preferred over monocular methods due to their ability to provide more precise depth information. Notably, the depth predicted by stereo matching algorithms is expressed in absolute units, either meters or millimeters, further enhancing their suitability for diverse real-world scenarios.
Previous stereo matching approaches like PSMNet and GwcNet have demonstrated high accuracy in estimating disparity; however, they suffer from extensive computational time. To address this issue, MDCNet proposed a multi-dimensional cooperative network, utilizing a 2D network to generate a rough disparity and employing a coarse-to-fine strategy to reduce disparity range and interval. This allowed subsequent 3D networks to focus on a smaller disparity range, resulting in improved speed and model accuracy.
Similarly, Fast-ACVNet shares the concept of MDCNet, but with a key difference. Fast-ACVNet uses a 3D network to generate rough disparity and employs a fine-to-important strategy based on volume attention propagation (VAP) to sample crucial disparity values. Additionally, it utilizes probability volume as attention weights to filter subsequent cost volume, leading to a significant enhancement in model accuracy.
In this paper, we introduce AMDCNet (Attention-based Multi-Dimensional Cooperative Network), a novel stereo matching model that effectively combines the advantages of both Fast-ACVNet and MDCNet. AMDCNet capitalizes on a 2D network to generate a rough disparity while maintaining the fine-to-important strategy based on volume attention propagation (VAP) to preserve significant disparity values within the rough disparity. Additionally, it leverages probability volume as attention weights to filter the subsequent cost volume. The combination of these techniques not only accelerates the generation of rough disparity but also empowers the subsequent 3D network to predict a smaller range of disparity with improved precision. Furthermore, to address the generalization ability of the model across different domains, we incorporate the asymmetric data augmentation proposed by HSM-Net. This augmentation method adjusts the contrast of the left and right images, effectively simulating the varying lighting conditions present in real-world scenes. The model only takes 23 milliseconds to estimate per disparity map on a NVIDIA RTX 3090 Ti.
To obtain the camera pose for different stereo pairs, we input the depth map estimated by AMDCNet and the corresponding left image into DROID-SLAM. Notably, the depth estimation by AMDCNet provides absolute units, ensuring that the camera poses estimated by DROID-SLAM maintain the same scale as the real world. Once we have the camera poses and depth information, we can perform unprojection of RGB images into 3D space. This process allows us to integrate these 3D data points through a TSDF volume, a specialized data structure. Subsequently, we apply the marching cube algorithm to generate a 3D mesh representation of the scene. Moreover, we introduce a post-processing method that employs a semantic segmentation model to effectively mask out the large-scale sky region in outdoor scenes, further enhancing the accuracy and realism of the 3D reconstruction.
所屬典藏
資訊科學與工程研究所引用此條目
Hsu, C.-L. (2023). Attention based Multi-Dimensional Cooperative Network for Stereo Matching and Integration with DROID-SLAM for 3D Scene Reconstruction. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/366
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/366