Depth Map Batch For Images
Dedicated Documentation Site
Documentation for Depth Map Batch
Quick Getting Started Guide
As a starting point, here's a quick getting started guide to using Depth Map Batch that covers all the key areas including installation and using key features. If you want to leverage GPU acceleration, please see instructions here.
There are four main steps.
- Install the add-on
- Install the Python library packages using the "Install all Packages" button
- Close Blender entirely and re-open
- Download the Model Weights files listed on this page in the Download Model Weights Files section if you scroll down the page and store locally in a directory.
And here's a quick demo of how to generate depth maps.
Download Model Weights Files
If you have any questions on how to use the model weights files feel free to message me directly or watch this brief video covering that here.
-
Depth Anything V2 Small (home page)
Download the model weights file in the page below:
https://huggingface.co/depth-anything/Depth-Anything-V2-Small/blob/main/depth_anything_v2_vits.pth -
Depth Anything V2 Base (home page)
Download the model weights file in the page below:
https://huggingface.co/depth-anything/Depth-Anything-V2-Base/blob/main/depth_anything_v2_vitb.pth -
Depth Anything V2 Large (home page)
Download the model weights file in the page below:
https://huggingface.co/depth-anything/Depth-Anything-V2-Large/blob/main/depth_anything_v2_vitl.pth -
MiDaS 3.1 Large (home page)
https://github.com/isl-org/MiDaS/releases/download/v3_1/dpt_beit_large_512.pt -
MiDaS 3.0 Large (home page)
*rename dpt_large-midas-2f21e586.pt to midas_dpt_large.pth
https://github.com/intel-isl/DPT/releases/download/1_0/dpt_large-midas-2f21e586.pt -
Depth Pro (home page)
https://ml-site.cdn-apple.com/models/depth-pro/depth_pro.pt
- very large file at almost 2GB
UPDATES
All logged updates for DMB can be seen here.
https://vltools.github.io/DepthMapBatch/updates/
Tutorials
Title | Video Link |
---|---|
Quick Getting Started Guide | Quick Getting Started Guide (click here) |
Playlist of Tutorials | All Tutorials (click here) |
Installing the add-on | Installing add-on (click here) |
Installing dependencies | Installing dependencies (click here) |
Referencing model weights | How to reference model weights file (click here) |
Depth Map Styles | Using Depth Map Styles (click here) |
Uninstalling Python packages | Uninstalling (click here) |
Upgrading to new version of DMB
Here's a quick tutorial on how to upgrade to a new version of DMB.
Enable GPU Acceleration
GPU Support is Optional
First off, this is an optional package. If you prefer to keep using CPU only, nothing changes—you’re not required to install GPU support for any future updates. This ensures stability for all users while giving you the flexibility to choose.
How to Enable GPU Acceleration
In the Depth Map section of the UI, you'll see a new option at the top: Enable GPU if available (screenshot below).

- Enabled by default – If your machine is set up to use GPU for depth map models, it will use it.
- If no GPU is detected, it will automatically fall back to CPU.
- If you prefer CPU, make sure to uncheck this option before running Depth Map Batch for the first time in an opened file.
Installing v2.6.0 & GPU Support
To ensure GPU works correctly, follow these steps:
- Uninstall the old version of Depth Map Batch.
- Close Blender entirely and reopen it.
- Install v2.6.0 from the add-on menu.
- Scroll to the bottom of the Preferences window → Optional Packages section.
- You’ll see a new option:
- "Optional torch with CUDA" (for NVIDIA GPUs)
- "Optional torch with MPS" (for Mac GPUs)
- If everything is set, the button will say "Uninstall"; otherwise, click "Install" to enable GPU support.
- You’ll see a new option:
Note: The Depth Pro model currently only supports CPU due to an issue I've run into with GPU.
That’s it! If you have any questions, feel free to reach out. Enjoy the speed boost!
Saving and Working with Project Files for zForm
I discovered that the “Relative Paths” setting in Blender’s Preferences was causing problems when reusing saved projects. To fix this, please follow these steps:
- Open Blender and go to Edit → Preferences.
- In the Preferences window, navigate to the Save And Load section.
- Uncheck the "Relative Paths" option in the Default To section.
- In the bottom left of the Preferences window, click on the hamburger icon to save your preferences.
This change will be saved for all future project files. If you ever need to revert to the previous behavior, simply re-check the "Relative Paths" option.
Additional Note for zForm Users:
When reopening an older project in zForm, please note that the Mesh View option defaults to top view. You may need to adjust this setting manually.
Below is a snapshot to help illustrate these steps.
Dependency Python Packages
You can install all packages in one step using the "Install All Packages" button, and if you ever want to uninstall packages you can uninstall everything using "Uninstall All Packages".
Here's a list of all the Python libraries required to use the tool. Make sure to install everything first, as the add-on won't display in the sidebar without them:
- cffi
- cycler
- python-dateutil
- facenet-pytorch
- joblib
- kiwisolver
- matplotlib
- mpmath
- opencv-python
- packaging
- pillow
- psutil
- pycparser
- pyparsing
- pyyaml
- scipy
- six
- scikit-learn
- sympy
- threadpoolctl
- timm
- torch
- torchvision
- tqdm
- typing_extensions