OzzyGT / depth_anything_custom_block

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: April 15 2026

Introduction of depth_anything_custom_block

Model Details of depth_anything_custom_block

Depth Anything V2 Estimator Block

A custom Modular Diffusers block for monocular depth estimation using Depth Anything V2 . Supports both images and videos.

Features
  • Relative depth estimation using Depth Anything V2 (Large variant, 335M params)
  • Image and video input support
  • Grayscale or turbo colormap visualization
Installation
# Using uv
uv sync

# Using pip
pip install -r requirements.txt
Quick Start
Load the block
from diffusers import ModularPipelineBlocks
import torch

blocks = ModularPipelineBlocks.from_pretrained(
    "your-username/depth-anything-v2-estimator",  # or local path "."
    trust_remote_code=True,
)
pipeline = blocks.init_pipeline()
pipeline.load_components(torch_dtype=torch.float16)
pipeline.to("cuda")
Single image - grayscale depth
from PIL import Image

image = Image.open("photo.jpg")
output = pipeline(image=image)

# Save depth map
output.depth_image.save("photo_depth.png")

# Access raw relative depth tensor
print(output.predicted_depth.shape)  # (H, W)
Single image - turbo colormap
output = pipeline(image=image, colormap="turbo")
output.depth_image.save("photo_depth_turbo.png")
Video - grayscale depth
from block import save_video

output = pipeline(video_path="input.mp4", colormap="grayscale")
save_video(output.depth_frames, output.fps, "output_depth.mp4")
Video - turbo colormap
output = pipeline(video_path="input.mp4", colormap="turbo")
save_video(output.depth_frames, output.fps, "output_depth_turbo.mp4")
Inputs
Parameter Type Default Description
image PIL.Image - Image to estimate depth for
video_path str - Path to input video. When provided, image is ignored
colormap str "grayscale" "grayscale" or "turbo" (colormapped)
Outputs
Image mode
Output Type Description
depth_image PIL.Image Normalized depth visualization
predicted_depth torch.Tensor Raw relative depth (H x W)
Video mode
Output Type Description
depth_frames List[PIL.Image] Per-frame depth visualizations
fps float Source video frame rate
Depth Normalization

Depth values are min-max normalized and inverted so that bright areas represent nearby surfaces and dark areas represent distant ones.

  • Bright = close , dark = far (grayscale)
  • Warm (red/yellow) = close , cool (blue) = far (turbo)
Model Variants

The block defaults to depth-anything/Depth-Anything-V2-Large-hf . Other available variants:

Variant Model ID Params
Small depth-anything/Depth-Anything-V2-Small-hf 24.8M
Base depth-anything/Depth-Anything-V2-Base-hf 97.5M
Large (default) depth-anything/Depth-Anything-V2-Large-hf 335M

Runs of OzzyGT depth_anything_custom_block on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About depth_anything_custom_block huggingface.co Model

More depth_anything_custom_block license Visit here:

https://choosealicense.com/licenses/apache-2.0

depth_anything_custom_block huggingface.co

depth_anything_custom_block huggingface.co is an AI model on huggingface.co that provides depth_anything_custom_block's model effect (), which can be used instantly with this OzzyGT depth_anything_custom_block model. huggingface.co supports a free trial of the depth_anything_custom_block model, and also provides paid use of the depth_anything_custom_block. Support call depth_anything_custom_block model through api, including Node.js, Python, http.

depth_anything_custom_block huggingface.co Url

https://huggingface.co/OzzyGT/depth_anything_custom_block

OzzyGT depth_anything_custom_block online free

depth_anything_custom_block huggingface.co is an online trial and call api platform, which integrates depth_anything_custom_block's modeling effects, including api services, and provides a free online trial of depth_anything_custom_block, you can try depth_anything_custom_block online for free by clicking the link below.

OzzyGT depth_anything_custom_block online free url in huggingface.co:

https://huggingface.co/OzzyGT/depth_anything_custom_block

depth_anything_custom_block install

depth_anything_custom_block is an open source model from GitHub that offers a free installation service, and any user can find depth_anything_custom_block on GitHub to install. At the same time, huggingface.co provides the effect of depth_anything_custom_block install, users can directly use depth_anything_custom_block installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

depth_anything_custom_block install url in huggingface.co:

https://huggingface.co/OzzyGT/depth_anything_custom_block

Url of depth_anything_custom_block

depth_anything_custom_block huggingface.co Url

Provider of depth_anything_custom_block huggingface.co

OzzyGT
ORGANIZATIONS

Other API from OzzyGT

huggingface.co

Total runs: 112
Run Growth: -12
Growth Rate: -10.71%
Updated:March 25 2026
huggingface.co

Total runs: 8
Run Growth: -21
Growth Rate: -262.50%
Updated:March 28 2026
huggingface.co

Total runs: 3
Run Growth: -2
Growth Rate: -66.67%
Updated:February 21 2026
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:November 11 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024