--- library_name: diffusers pipeline_tag: image-feature-extraction license: apache-2.0 tags: - controlnet - stable-diffusion-xl - stable-diffusion-xl-diffusers - text-to-image - diffusers --- [Origin model](https://huggingface.co/xinsir/controlnet-union-sdxl-1.0/blob/main/diffusion_pytorch_model_promax.safetensors) ``` from diffusers import ControlNetModel import torch controlnet = ControlNetModel.from_pretrained( "r3gm/controlnet-union-promax-sdxl-fp16", torch_dtype=torch.float16, variant="fp16" ) ```