apple / ml-stable-diffusion

Stable Diffusion with Core ML on Apple Silicon
MIT License
16.46k stars 886 forks source link

Resource path does not exsist #101

Open bkrawitz2 opened 1 year ago

bkrawitz2 commented 1 year ago

I go all the way through the installation, worked out the first issue 'Package Description' it looked like all was running fine then got this error:

(base) ➜ ml-stable-diffusion git:(main) swift run StableDiffusionSample --disable-safety --resource-path ../models/coreml-stable-diffusion-v1-5_split_einsum_compiled --compute-units all "a photo of an astronaut riding a horse on mars"

Building for debugging... Build complete! (0.09s) Error: resources("Resource path does not exist ../models/coreml-stable-diffusion-v1-5_split_einsum_compiled") (base) ➜ ml-stable-diffusion git:(main)

Screenshot 2023-01-11 at 9 25 01 PM
dsmailes commented 1 year ago

Try running $ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer before you try to convert the models.

somegoodco commented 1 year ago

Just ran into this now and my issue (and what appears to be yours) is in the path itself - it's looking for "split_einsum_compiled" but the model path it "original_compiled" where it's calling for the former. If you're using the downloader.py, you can change variant to grab "split_einsum" from the repo.