# Hugging Face — ControlNet in 🧨 Diffusers

- Company: Hugging Face (huggingface.co)
- Announced: 2023-03-03
- Category: developer-tool-release
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://huggingface.co/blog/controlnet
- Record: https://forck.live/items/2089-controlnet-in-diffusers
- Subject: Platform
- Models affected: StableDiffusionControlNetPipeline, ControlNetModel

Hugging Face announces the integration of ControlNet into the Diffusers library, enabling users to condition Stable Diffusion generation with spatial contexts like depth maps, segmentation maps, scribbles, and keypoints. The post introduces the StableDiffusionControlNetPipeline and shows how to use it with various ControlNet models, starting with the Canny model.

## Evidence

Verbatim from https://huggingface.co/blog/controlnet:

> To experiment with ControlNet, Diffusers exposes the StableDiffusionControlNetPipeline similar to the other Diffusers pipelines. Central to the StableDiffusionControlNetPipeline is the controlnet argument which lets us provide a particular trained ControlNetModel instance while keeping the pre-trained diffusion model weights the same.

---

Record: https://forck.live/items/2089-controlnet-in-diffusers
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
