metric_depth_network
a Depth Anything V2 Small fine-tune for metric depth estimation from automotive video
1 min read
This model is designed for metric depth estimation from dashcam and surround-view automotive video frames. Built on the Depth Anything V2 Small architecture (ViT-S, 24.8M parameters) and fine-tuned on the DDAD dataset with LiDAR depth maps, it is well-suited for wide-angle cameras (~85° HFOV) and efficient road scene analysis tasks.
Key features
- Optimized for wide-angle automotive cameras and dashcams.
- Precise metric depth prediction for objects in meters.
- Significant metric improvements (AbsRel reduced to 0.144) compared to the base initialization.
- Specialized for crosswalks and road scenarios.
What you can do
- Integrate into computer vision systems for autonomous driving and dashcam video analysis.
- Estimate distances to obstacles and road users from camera frames.
Example
import cv2, torch
from depth_anything_v2.dpt import DepthAnythingV2
m = DepthAnythingV2(encoder='vits', features=64, out_channels=[48, 96, 192, 384], max_depth=80)
m.load_state_dict(torch.load('best.pth', map_location='cpu')); m.eval().cuda()
depth_m = m.infer_image(cv2.imread('frame.jpg'))Read more
DetailsResults on DDAD val (50 scenes, depth ≤ 80 m): AbsRel 0.144, δ1 0.824, RMSE 5.80 m.
Training: 5 epochs on 1× NVIDIA L4 in ~6.4 hours, batch size 8, AdamW, SiLog loss.
License: Non-commercial (CC BY-NC-SA 4.0 due to the DDAD dataset).










Comments