Load sd_xl_base_1.0_0.9vae.safetensors but error

#106
by Royal - opened

I want to load sd_xl_base_1.0_0.9vae.safetensors checkpoint ,but the example can't because DiffusionPipeline has no attribute "from_single_file"
from diffusers import DPMSolverMultistepScheduler
from diffusers import DiffusionPipeline,StableDiffusionPipeline
import torch
pipe = DiffusionPipeline.from_single_file("/stable-diffusion-xl-base-1.0/sd_xl_base_1.0_0.9vae.safetensors",revision='fp16',use_safetensors=True,torch_dtype=torch.float16)
So how to load?

Royal changed discussion title from Load sd_xl_base_1.0_0.9vae.safetensors but erro to Load sd_xl_base_1.0_0.9vae.safetensors but error

Sign up or log in to comment