Downloads · 30 days
15
30% of all-time downloads
jarjoura/video-depth-anything-base-mlx
video-depth-anything-base-mlx is a depth estimation model from jarjoura. Use it for the depth estimation task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
MLX conversion of depth-anything/Video-Depth-Anything-Base (ByteDance, CVPR 2025 highlight). Consistent monocular video depth estimation: DINOv2 backbone + temporal DPT head.
Downloads · 30 days
15
30% of all-time downloads
All-time downloads
50
Public
Parameters
115M
458 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors458 MB · 100%
From the Hugging Face model README
MLX conversion of depth-anything/Video-Depth-Anything-Base (ByteDance, CVPR 2025 highlight). Consistent monocular video depth estimation: DINOv2 backbone + temporal DPT head.
Converted with python -m mlx_vlm.models.video_depth_anything.convert --variant base.
from mlx_vlm.utils import load_model, get_model_path
from mlx_vlm.models.video_depth_anything.processing_video_depth_anything import (
VideoDepthProcessor,
)
from mlx_vlm.models.video_depth_anything.generate import (
VideoDepthPredictor,
read_video_frames,
)
path = get_model_path("jarjoura/video-depth-anything-base-mlx")
model = load_model(path)
processor = VideoDepthProcessor.from_pretrained(path)
predictor = VideoDepthPredictor(model, processor)
frames, fps = read_video_frames("input.mp4", max_len=300, target_fps=15)
depths = predictor.infer(frames) # (T, H, W) float32 depth maps
Validated against the PyTorch reference: ~1e-5 max relative error on CPU, ~1% on GPU (Metal fast-math).