Skip to content

Commit 3df52ba

Browse files
yiyixuxuyiyixuxu
andauthored
[Doc] update sdxl-controlnet repo name (huggingface#4564)
* rename * style --------- Co-authored-by: yiyixuxu <yixu310@gmail,com>
1 parent c697c5a commit 3df52ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/source/en/api/pipelines/controlnet_sdxl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The abstract from the paper is:
2222

2323
We provide support using ControlNets with [Stable Diffusion XL](./stable_diffusion/stable_diffusion_xl.md) (SDXL).
2424

25-
There are not many ControlNet checkpoints that are compatible with SDXL at the moment. So, we trained one using Canny edge maps as the conditioning images. To know more, check out the [model card](https://huggingface.co/diffusers/controlnet-sdxl-1.0). We encourage you to train custom ControlNets; we provide a [training script](https://github.com/huggingface/diffusers/blob/main/examples/controlnet/README_sdxl.md) for this.
25+
There are not many ControlNet checkpoints that are compatible with SDXL at the moment. So, we trained one using Canny edge maps as the conditioning images. To know more, check out the [model card](https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0). We encourage you to train custom ControlNets; we provide a [training script](https://github.com/huggingface/diffusers/blob/main/examples/controlnet/README_sdxl.md) for this.
2626

2727
You can find some results below:
2828

src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
7878
>>> # initialize the models and pipeline
7979
>>> controlnet_conditioning_scale = 0.5 # recommended for good generalization
80-
>>> controlnet = ControlNetModel.from_pretrained("diffusers/controlnet-sdxl-1.0", torch_dtype=torch.float16)
80+
>>> controlnet = ControlNetModel.from_pretrained(
81+
... "diffusers/controlnet-canny-sdxl-1.0", torch_dtype=torch.float16
82+
... )
8183
>>> vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
8284
>>> pipe = StableDiffusionControlNetPipeline.from_pretrained(
8385
... "stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet, torch_dtype=torch.float16

0 commit comments

Comments
 (0)