version mismatches
#13
by
S1an
- opened
Hello, I encountered some issues while using the Diffusers Pipeline, and I'm unable to load the model successfully. When attempting to load the model using the following code:
from diffusers import DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained("madebyollin/sdxl-vae-fp16-fix")
I encountered a problem that indicates the need for a model_index.json file, but the provided model path only contains a config.json file.
Please try the instructions here: https://huggingface.co/madebyollin/sdxl-vae-fp16-fix#🧨-diffusers-usage
import torch
from diffusers import DiffusionPipeline, AutoencoderKL
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True)