library_name: diffusers | |
pipeline_tag: image-feature-extraction | |
tags: | |
- controlnet | |
- stable-diffusion-xl | |
- stable-diffusion-xl-diffusers | |
- text-to-image | |
- diffusers | |
license: creativeml-openrail-m | |
[Origin model](https://huggingface.co/Nacholmo/controlnet-qr-pattern-sdxl) | |
```py | |
from diffusers import ControlNetModel | |
import torch | |
controlnet = ControlNetModel.from_pretrained( | |
"r3gm/controlnet-qr-pattern-sdxl-fp16", | |
torch_dtype=torch.float16, | |
variant="fp16" | |
) | |
``` |