Downloads · 30 days
0
bhavani037/depth-anything-v2-endpoint
depth-anything-v2-endpoint is a depth estimation model from bhavani037. Use it for the depth estimation task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This repository holds a custom handler.py for Hugging Face Inference Endpoints. HF's endpoint platform does not expose "Depth Estimation" as a selectable task, so we serve depth-anything/Depth-Anything-V2-Small-hf thr…
Downloads · 30 days
0
Access
Public
Updated Jul 18, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py3.5 KB · 54%
From the Hugging Face model README
This repository holds a custom handler.py for Hugging Face Inference
Endpoints. HF's endpoint platform does not expose "Depth Estimation" as a
selectable task, so we serve depth-anything/Depth-Anything-V2-Small-hf through
a custom handler instead. The default PyTorch container auto-detects the
EndpointHandler class in handler.py and uses it to serve every request,
regardless of the configured task.
handler.py — loads Depth-Anything-V2 and returns
{"depth": "<base64 PNG>", "width": W, "height": H}.requirements.txt — extra dependencies installed on top of the base image.The model weights are pulled at runtime from
depth-anything/Depth-Anything-V2-Small-hf, so this repo intentionally contains
no weights or config.json.
Create a dedicated Inference Endpoint from this repo:
handler.py)