- Image or Video
The script will perform a sharp monocular metric depth estimation on the input media.
- Depth image
Estimated metric depth with inferno colormap(without option -g),
or single channel grey scale image(with option -g).
Saves to ./output.png by default but it can be specified with the -s option
Internet connection is required when running the script for the first time, as it will download the necessary model files.
Running this script will estimate the metric depth of the input image/video. The results will be shown in a separate window(when inferencing on video), or saved as an image(when inferencing on image).
$ python3 depth_pro.pyThe result will be saved to output.png by default.
$ python3 depth_pro.py -i input.png -s output.png-i, -s options can be used to specify the
input path and save path separately.
$ python3 depth_pro.py -v 0argument after the -v option can be the device id of the webcam,
or the path to the input video.
This model requires ailia SDK 1.2.16 and later.
Pytorch
ONNX opset=18

