SD15DepthControlNetModel
DashAI.back.models.hugging_face.SD15DepthControlNetModel
Depth-conditioned ControlNet pipeline built on Stable Diffusion 1.5.
Takes an input image and a text prompt. A depth map is estimated from the
image using Intel's DPT-Hybrid-MiDaS model, then fed as a spatial
conditioning signal into the lllyasviel/sd-controlnet-depth ControlNet
backbone together with the runwayml/stable-diffusion-v1-5 diffusion
pipeline. The result is a 512 x 512 image that respects both the text
description and the 3-D structure of the original scene.
References
- [1] Zhang & Agrawala, "Adding Conditional Control to Text-to-Image Diffusion Models", ICCV 2023. https://arxiv.org/abs/2302.05543
- [2] https://huggingface.co/lllyasviel/sd-controlnet-depth
Parameters
- num_inference_steps : integer, default=
20 - Number of denoising steps to run. More steps refine the image but increase generation time. Typical range: 20-30 for fast results, 40-50 for higher quality.
- controlnet_conditioning_scale : number, default=
1.0 - Weight of the ControlNet depth conditioning relative to the base diffusion pipeline (range 0.0-2.0). At 0.0 the depth map has no effect; at 1.0 the output closely follows the input structure; above 1.5 depth dominates and may produce rigid results.
- guidance_scale : number, default=
7.5 - Classifier-Free Guidance (CFG) scale. Controls how strictly the image follows the text prompt. Values 7-9 are typical for SD 1.5.
- device : string, default=
CPU - Hardware device for inference. GPU is strongly recommended for diffusion models. CPU inference is possible but very slow.