即時單鏡頭場景深度估測之自監督式學習神經網路
Real-time Monocular Depth Estimation With Self-supervised Learning Neural Network
摘要
深度估測是對於機器人應用及自駕車來說非常重要的任務,我們能透過這個任務進
行環境感測或是障礙物閃避。在許多能進行深度估測的感測器中,我們選擇具有豐富
環境資訊並且價格相對低廉的相機來進行深度估測。近年來,有許多研究利用監督式
學習的方式來訓練深度估測的神經網路,但是往往需要龐大且準確的訓練標註資料,
由於收集這些訓練標註資料是一件非常耗時且耗費人力的工作,並且一旦我們目標場
景中沒有這些訓練標註資料,便會無法高質量的估測這些場景深度。因此,本篇論文
專注於開發自監督式學習方式訓練神經網路,這個神經網路能夠利用單鏡頭產生出來
的RGB 影像進行深度估測任務,在這個過程中,我們只需要連續影像來進行訓練,並
且適用於各種環境當中。
在自監督式學習方式下,我們透過將深度估測的任務轉換成影像合成的任務來進行
訓練,利用額外的姿態網路估測從連續影像中的來源影像到目標影像間的相機自我運
動,並使用新視角影像合成的方式進行目標影像的影像重建,縮小目標影像及合成影
像間的光度誤差來進行訓練。在以往研究中,我們發現在深度估測任務上面,常常會
有天空判斷錯誤及深度值比例不一的情形,因此我們也透過傳統的方式對天空進行分
割,並且增加天空損失函數來去改良天空的問題。對於深度值比例不一的情形我們添
加了深度幾何一致性約束,並透過多種方向計算來去增強這項約束。最後我們在KITTI
資料集上進行訓練及評估,利用對比研究,我們驗證這些改良能夠得到更好的結果,
並且最終我們的模型能夠在NVIDIA Jetson TX2 上的推論速度高達FPS 303。
行環境感測或是障礙物閃避。在許多能進行深度估測的感測器中,我們選擇具有豐富
環境資訊並且價格相對低廉的相機來進行深度估測。近年來,有許多研究利用監督式
學習的方式來訓練深度估測的神經網路,但是往往需要龐大且準確的訓練標註資料,
由於收集這些訓練標註資料是一件非常耗時且耗費人力的工作,並且一旦我們目標場
景中沒有這些訓練標註資料,便會無法高質量的估測這些場景深度。因此,本篇論文
專注於開發自監督式學習方式訓練神經網路,這個神經網路能夠利用單鏡頭產生出來
的RGB 影像進行深度估測任務,在這個過程中,我們只需要連續影像來進行訓練,並
且適用於各種環境當中。
在自監督式學習方式下,我們透過將深度估測的任務轉換成影像合成的任務來進行
訓練,利用額外的姿態網路估測從連續影像中的來源影像到目標影像間的相機自我運
動,並使用新視角影像合成的方式進行目標影像的影像重建,縮小目標影像及合成影
像間的光度誤差來進行訓練。在以往研究中,我們發現在深度估測任務上面,常常會
有天空判斷錯誤及深度值比例不一的情形,因此我們也透過傳統的方式對天空進行分
割,並且增加天空損失函數來去改良天空的問題。對於深度值比例不一的情形我們添
加了深度幾何一致性約束,並透過多種方向計算來去增強這項約束。最後我們在KITTI
資料集上進行訓練及評估,利用對比研究,我們驗證這些改良能夠得到更好的結果,
並且最終我們的模型能夠在NVIDIA Jetson TX2 上的推論速度高達FPS 303。
Depth estimation is a crucial task for robotic applications and autonomous driving, which can
be applied to environment sensing or obstacle avoidance. Among all types of sensors, we choose
monocular camera to implement depth estimation because it can provide rich environmental
information and has relatively low cost. Recently, many studies employ supervised learning
to train neural networks for depth estimation. However, such methods require large groundtruth
depth data for training, and collection of these data is a very resource-consuming task.
Without these training data in the target environment, it is impossible to estimate the depth of
the environment with high quality. Therefore, this thesis focuses on developing a self-supervised
learning method to self-train a depth network, with RGB images produced by monocular camera
as inputs of the network. Two advantages of the proposed method include: (1) only a sequence
of images are needed during training process, and (2) the network is suitable for wide variety of
environments.
Referring to existing self-supervised learning methods, we convert the task of depth estimation
into a task of view synthesis. To that end, we adopt a novel view synthesis method
to reconstruct the target image from source image with estimated depth map and camera egomotion.
Accordingly, we train the neural network by reducing the photo-metric reconstruct
error between the target image and the synthesized image. Some issues observed in previous
methods include: (1) estimated depth of the sky is often incorrect due to insufficient training
data, and (2) the scale of depth values can be ambiguous. To overcome (1), we segment the sky
and add a sky loss to alleviate the problem. As for (2), we add a geometric consistency loss
to take into account such consistency from various viewpoints.Via several ablation studies, we
verify that these improvements with the KITTI dataset, wherein the depth estimation model can
be performed at 303 FPS on an NVIDIA Jetson TX2.
be applied to environment sensing or obstacle avoidance. Among all types of sensors, we choose
monocular camera to implement depth estimation because it can provide rich environmental
information and has relatively low cost. Recently, many studies employ supervised learning
to train neural networks for depth estimation. However, such methods require large groundtruth
depth data for training, and collection of these data is a very resource-consuming task.
Without these training data in the target environment, it is impossible to estimate the depth of
the environment with high quality. Therefore, this thesis focuses on developing a self-supervised
learning method to self-train a depth network, with RGB images produced by monocular camera
as inputs of the network. Two advantages of the proposed method include: (1) only a sequence
of images are needed during training process, and (2) the network is suitable for wide variety of
environments.
Referring to existing self-supervised learning methods, we convert the task of depth estimation
into a task of view synthesis. To that end, we adopt a novel view synthesis method
to reconstruct the target image from source image with estimated depth map and camera egomotion.
Accordingly, we train the neural network by reducing the photo-metric reconstruct
error between the target image and the synthesized image. Some issues observed in previous
methods include: (1) estimated depth of the sky is often incorrect due to insufficient training
data, and (2) the scale of depth values can be ambiguous. To overcome (1), we segment the sky
and add a sky loss to alleviate the problem. As for (2), we add a geometric consistency loss
to take into account such consistency from various viewpoints.Via several ablation studies, we
verify that these improvements with the KITTI dataset, wherein the depth estimation model can
be performed at 303 FPS on an NVIDIA Jetson TX2.