All articles

MiDaS Alternative in 2026: Depth with LibreYOLO

Xuban

The official MiDaS repository was archived on August 25, 2025. LibreYOLO provides a maintained way to run its Small and DPT-Large checkpoints.

from libreyolo import LibreYOLO

model = LibreYOLO("LibreMiDaSl-depth.pt")
result = model("image.jpg", save=True)
print(result.depth_map.data.shape)

Prediction, zero-shot validation and fixed-resolution export are supported. Training is not. The output is relative inverse depth: higher values are closer, but there is no metric unit or fixed scale between images.

The base install is enough: pip install libreyolo. Continue with the MiDaS docs or the Real-ESRGAN alternative.

GitHub | Documentation