목표

<aside> 📢

이미지와 LiDAR 데이터가 들어있는 bagfile에서 이미지 데이터에 대한 monocular depth estimation을 진행한 후, LiDAR 데이터로 estimated depth를 평가하는 것.

</aside>

1. 프로젝트 개요

Untitled

2. 모델선정

리뷰한 논문 외에도 paperswithcodegithub을 참고해서 모델을 선정.

2.1. 모델 선정기준

<aside> 💡 선정모델: Monocular Depth Estimation through Virtual-world Supervision and Real-world SfM Self-Supervision(MonoDEVSNet)

</aside>

Papers with Code - Monocular Depth Estimation through Virtual-world Supervision and Real-world SfM Self-Supervision

특징: Real World data 비지도학습 + Virtual World data 지도학습을 통해 비지도학습만 있을 때 야기되는 문제점들을 극복.

2.2. 선정이유

3. 평가방법

<aside> 💡 모델은 gt data가 존재하는 KITTI data에 대해서는 evaluation 진행 후에 errors를 계산하도록 설계되었다. 제공받은 데이터에 대해서도 똑같이 적용되도록 했다.

</aside>

def compute_errors(gt, pred):
    thresh = np.maximum((gt / pred), (pred / gt))
    a1 = (thresh < 1.25).mean()
    a2 = (thresh < 1.25 ** 2).mean()
    a3 = (thresh < 1.25 ** 3).mean()

    rmse = (gt - pred) ** 2
    rmse = np.sqrt(rmse.mean())

    rmse_log = (np.log(gt) - np.log(pred)) ** 2
    rmse_log = np.sqrt(rmse_log.mean())

    abs_rel = np.mean(np.abs(gt - pred) / gt)

    sq_rel = np.mean(((gt - pred) ** 2) / gt)

    return abs_rel, sq_rel, rmse, rmse_log, a1, a2, a3

MonoDEVSNet(rmse, rmse_log, relative absolute error, relative square error)에서 estimation을 진행할 때 요구하는 데이터

<aside> ☝ 모델에 적용하기 위해서는 제공된 rosbag파일에서 이미지 데이터와 라이다 데이터를 추출하여 모델에 적용 가능한 형태로 변형이 필요.

</aside>

3.1 평가용 data