StableDiffusionXLControlNetInpaintPipeline.from_single_file and Custom SDXL Turbo model #6987
|
Hi https://civitai.com/models/129666?modelVersionId=294995 ValueError: Trying to set a tensor of shape torch.Size([320, 4, 3, 3]) in "weight" (which has shape torch.Size([320, 9, 3, 3])), this look incorrect. |
Answered by
fabiorigano
Feb 17, 2024
Replies: 2 comments
|
you should maybe first convert the model to diffusers format in this way:
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)``` |
0 replies
Answer selected by
Yakonrus
|
#6986 will hopefully make this much more streamlined. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: