Instructions to use DionTimmer/controlnet_qrcode-control_v1p_sd15 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DionTimmer/controlnet_qrcode-control_v1p_sd15 with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("DionTimmer/controlnet_qrcode-control_v1p_sd15") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
[FIX] The diffusion pipeline returned dtype error
#8
by Pranavv - opened
README.md
CHANGED
|
@@ -38,7 +38,7 @@ pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
|
|
| 38 |
"runwayml/stable-diffusion-v1-5",
|
| 39 |
controlnet=controlnet,
|
| 40 |
safety_checker=None,
|
| 41 |
-
torch_dtype=torch.
|
| 42 |
)
|
| 43 |
|
| 44 |
pipe.enable_xformers_memory_efficient_attention()
|
|
|
|
| 38 |
"runwayml/stable-diffusion-v1-5",
|
| 39 |
controlnet=controlnet,
|
| 40 |
safety_checker=None,
|
| 41 |
+
torch_dtype=torch.float32
|
| 42 |
)
|
| 43 |
|
| 44 |
pipe.enable_xformers_memory_efficient_attention()
|