Web Analytics

metric_depth_video_toolbox

⭐ 135 stars English by calledit

Metric depth video toolbox (MDVToolbox)

Tools for Generating and working with metric 3D depth videos.

gif_banner

_Banner created with 3d_view_depthfile.py_

Demos

Showcase video: https://youtu.be/nEiUloZ591Q

Movie → 3D conversion demo: https://www.youtube.com/watch?v=PLFjoNgkZDY

Sample stereo clips: https://github.com/calledit/metric_depth_video_toolbox/releases/tag/Showcase

Features

Metric Depth Video Generation

Convert rgb videos into metric depth videos using multiple SOTA models:

Stereo / 3D Conversion

Visualization

Camera Tracking & 3D Reconstruction

Export Tools

Export metric depth video to standard formats for use in other tools: (convert_metric_depth_video_to_other_format.py)

Masking & Cleanup

Documentation

| Topic | Link | |---|---| Beginner guide | HOWTO.md Movie → 3D guide | HOWTO_movie2_3d.md Full tool reference | USAGE.md GUI tutorial video | https://youtu.be/BE_aJCI7DHI

Depth Video Format

MDVT uses RGB-encoded 16-bit metric depth:

Future upgrade for more precision will be done with: 24-bit depth or log-encoded depth for long-range accuracy.


Installation

Windows

git clone https://github.com/calledit/metric_depth_video_toolbox
cd metric_depth_video_toolbox
windows_installer.bat

Ubuntu/Debian and OSX

git clone https://github.com/calledit/metric_depth_video_toolbox cd metric_depth_video_toolbox

on linux

sudo apt-get install -y libgl1 ./install_mdvtoolbox.sh

#Optional (only required for some tools) ./install_mdvtoolbox.sh -megasam ./install_mdvtoolbox.sh -geometrycrafter ./install_mdvtoolbox.sh -unik3d ./install_mdvtoolbox.sh -depthpro ./install_mdvtoolbox.sh -stereocrafter ./install_mdvtoolbox.sh -madpose ./install_mdvtoolbox.sh -unidepth ./install_mdvtoolbox.sh -moge ./install_mdvtoolbox.sh -promptda

if using headless linux you need to start a virtual x11 server

apt-get install xvfb Xvfb :2 & export DISPLAY=:2

OSX (OSX only supports post processing of depth videos not generation of them. As the ML models need CUDA)

(open3d requires python3.11 on OSX (as of 2025)))

pip3.11 install open3d numpy opencv-python

Requirements

The tools that require ML models have been tested on machines with NVIDIA 3090 cards that support CUDA 12.4 and Torch 2.5.1 on vast.ai using "template PyTorch (cuDNN Devel)"

Next steps

Contributing

Is appreciated. Even for simple things like spelling.

--- Tranlated By Open Ai Tx | Last indexed: 2026-06-12 ---