fboulnois / stable-diffusion-docker

Run the official Stable Diffusion releases in a Docker container with txt2img, img2img, depth2img, pix2pix, upscale4x, and inpaint.
GNU Affero General Public License v3.0
733 stars 127 forks source link

Can this work with Macbook Pro M1? #3

Open pmaojo opened 2 years ago

pmaojo commented 2 years ago

I am having this error on build:

./build.sh run 'A high tech solarpunk utopia in the Amazon rainforest'

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
(base) 
fboulnois commented 2 years ago

I'm not sure if it can work with a Macbook Pro M1.

There are a few issues in my mind that would need to be overcome:

Let me know if you investigate this in more detail. It would be great to have a working arm64 version.

kailukowiak commented 2 years ago

According to this it does run, however, it is kind of slow and I ran into some issues that I didn't bother resolving. Now I just run it on an EC2 instance.

peterfortuin commented 1 year ago

I was already afraid this would not work fine on a Arm based Mac. It does work, but the fact that it's running as an amd64 image (emulation) and no gpu available makes the performance really bad. I did generate an image on my Macbook Pro M1. It was at least a hour for generating one image.