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. |
Beta Was this translation helpful? Give feedback.
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)``` |
Beta Was this translation helpful? Give feedback.
-
#6986 will hopefully make this much more streamlined. |
Beta Was this translation helpful? Give feedback.
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: