Instructions to use Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth", 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
Download depth.jpg from Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth: direct link, hf CLI and curl.
- Browser
- Download file 32.4 kB
-
https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth/resolve/fec11a4fef31f90a1490a4ad42ee6b5dfde4b4a5/depth.jpg
- Command line
-
hf download hf://Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth@fec11a4fef31f90a1490a4ad42ee6b5dfde4b4a5/depth.jpg
-
curl -L -o depth.jpg https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Depth/resolve/fec11a4fef31f90a1490a4ad42ee6b5dfde4b4a5/depth.jpg
32.4 kB
