Instructions to use xinsir/controlnet-union-sdxl-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use xinsir/controlnet-union-sdxl-1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("xinsir/controlnet-union-sdxl-1.0", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Rename diffusion_pytorch_model_promax.safetensors to diffusion_pytorch_model.promax.safetensors
#47
by elismasilva - opened
No description provided.
to allow use variant="promax"
and you dont need have double config.json, you can have only config.json and when load promax model only do this:
controlnet = ControlNetModel_Union.from_pretrained('xinsir/controlnet-union-sdxl-1.0', num_control_type=8, torch_dtype=torch.float16, variant="promax")
and for normal version:
controlnet = ControlNetModel_Union.from_pretrained('xinsir/controlnet-union-sdxl-1.0', torch_dtype=torch.float16)