Skip to content
Discussion options

You must be logged in to vote

Hi Jdumke,

I think I might know the solution to your problem, DiffusionPipeline.from_pretrained() can’t load a single .safetensors file. It expects either a Hugging Face repo id (like "runwayml/stable-diffusion-v1-5") or a local folder in the diffusers format (with model_index.json, unet/, vae/, etc.). That’s why it says your path isn’t valid.

If you only have a .safetensors checkpoint, you need to convert it first. Diffusers provides a script called convert_original_stable_diffusion_to_diffusers.py in the repo’s scripts/ folder. The typical usage looks like this:

python scripts/convert_original_stable_diffusion_to_diffusers.py \
  --checkpoint_path /home/jds/.../jd_tooned_v2_2023-10-02-0…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jdumke
Comment options

You must be logged in to vote
4 replies
@asomoza
Comment options

@asomoza
Comment options

@jdumke
Comment options

@asomoza
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants