Skip to content

StableDiffusionXLControlNetInpaintPipeline.from_single_file and Custom SDXL Turbo model #6987

Answered by fabiorigano
Yakonrus asked this question in Q&A
Discussion options

You must be logged in to vote

you should maybe first convert the model to diffusers format in this way:

python convert_original_stable_diffusion_to_diffusers.py --checkpoint_path ".\RealitiesEdgeXLSDXL_TURBOXLV2.safetensors" --from_safetensors --pipeline_class_name StableDiffusionXLInpaintPipeline --dump_path "<path/to/converted/model>"

then you can load it:

controlnet_xl_base_pipe = StableDiffusionXLControlNetInpaintPipeline.from_pretrained("<path/to/converted/model>",torch_dtype=torch.float16,controlnet=controlnet_xl,vae=controlnet_xl_base_vae)```

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Yakonrus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants