0

I am trying to run Stable Diffusion on Apple Silicon using Core ML and am following the steps as detailed in this article: https://huggingface.co/blog/diffusers-coreml

The article asks you to download the model checkpoints to a folder models/coreml-stable-diffusion-v1-4_original_packages. Then, to run inference this is the command to be entered into the terminal:

python -m python_coreml_stable_diffusion.pipeline --prompt "a photo of an astronaut riding a horse on mars" -i models/coreml-stable-diffusion-v1-4_original_packages -o </path/to/output/image> --compute-unit ALL --seed 93

When I run this I get this error:

Fatal Python error: init_sys_streams: <stdin> is a directory, cannot continue
Python runtime state: core initialized

Current thread 0x00000001dd3a4100 (most recent call first):
<no Python frame>

Apparently it thinks that models/coreml-stable-diffusion-v1-4_original_packages is supposed to be a file but since it is a directory, it is throwing this error? I searched around and wasn't able to find anyone having the same error while following the steps from the article above.

Any help would be greatly appreciated!

0 Answers0