Instructions to use OzzyGT/depth_pro_custom_block with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/depth_pro_custom_block with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/depth_pro_custom_block", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
File size: 413 Bytes
88c28fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | [project]
name = "depth-pro-estimator"
version = "0.1.0"
description = "Modular Diffusers custom block for monocular depth estimation using Apple Depth Pro"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"accelerate>=1.0.0",
"av>=12.0.0",
"diffusers>=0.37.0",
"matplotlib>=3.7.0",
"pillow>=10.0.0",
"torch>=2.9.0",
"torchvision>=0.16.0",
"transformers>=5.1.0",
]
|