This is a simple python script to convert a batch of images from a folder to depth maps using the MiDaS model.
This will still work fine for MiDaS depth, but my other repo has many more models and is more up to date. Check it out here: Batch Annotator
- Clone this repository
- Install the requirements using
pip install -r requirements.txt
python main.py <input_dir> <output_dir>
python main.py "/path/to/normal/images" "/path/to/depth/maps/output/folder"
That is it! Enjoy.