huggingface / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
26.13k stars 5.38k forks source link

error loading a local .safetensors using XLPipeline.from_single_file #5128

Closed garychan22 closed 1 year ago

garychan22 commented 1 year ago

Describe the bug

I have downloaded the sdxl-base-1.0 *.safetensors from https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/main

I am trying to load the model following

sdxl_model_path = "/xxx/xxx/sd_xl_base_1.0.safetensors"
pipe = StableDiffusionXLPipeline.from_single_file(
           sdxl_model_path, torch_dtype=torch.float16, variant="fp16", use_safetensors=True, local_files_only=True,
)

The error is raised

OSError: Can't load tokenizer for 'laion/CLIP-ViT-bigG-14-laion2B-39B-b160k'.

Reproduction

As aforementioned

Logs

No response

System Info

Who can help?

@patrickvonplaten @sayakpaul

sayakpaul commented 1 year ago

Unable to reproduce it: https://colab.research.google.com/gist/sayakpaul/fd58fcc09c3ab633c6eb8ca946f74ad7/scratchpad.ipynb

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.