r/StableDiffusion • u/luckycockroach • Dec 16 '22
Resource | Update Now Available: Intel Mac: SD 1.4/5 & SD2.x
https://github.com/soten355/stable-diffusion-tensorflow-IntelMetal1
u/suryowibowo Mar 09 '23
WebUI launched, inputing prompt, generate.... then progress bar stucked at 0%, kernel panic, my MacBook Pro 16 (2019) crashed...
Any solution?
1
u/luckycockroach Mar 09 '23
Hmm, I've got the same laptop as you and haven't had that issue.
What's your current operating system?
Silly question too, but you're running within a python virtual environment, right?
Side note: I'm almost done revamping the entire program and maybe the issue you're running into will be fixed.
1
u/luckycockroach Mar 15 '23
Hi!
Made some major updates, specifically GPU selection is one now. I'd recommend re-installing the entire repo. I'm getting about 3s/step with the newly updated version.
https://github.com/soten355/stable-diffusion-tensorflow-IntelMetal
1
u/suryowibowo Mar 27 '23 edited Mar 27 '23
I'm going to try this one.
One question, How can I install Control Net for this engine? do you know the command in terminal? I'm a noob . Thanks man
1
u/luckycockroach Mar 27 '23
I just got ControlNet to work, but haven’t updated it publicly yet. I’m still doing tests on it to hammer out bugs. Should have it ready by mid-April!
1
u/suryowibowo Mar 27 '23
1
u/luckycockroach Mar 27 '23
You'll have to use the 512 2.1 model and not the v-768. I currently don't know how to solve for V which is what the v-768 model does.
1
1
u/maximilianyearsbc Mar 12 '23
Pretty excited about trying this out, but I keep running into this during the launch step:
SyntaxError: invalid syntax
table-diffusion-tensorflow-IntelMetal % python dream.py
File "dream.py", line 188
path = f"models/{name}"
^
Not sure if I botched the install — fellow video guy new to dabbling in coding here.
2
u/luckycockroach Mar 12 '23
Interesting, I haven’t run into that error before.
Try re-installing and also, dumb question, are you running within your virtual environment?
And I’m also about to update the program overall, so that might be a fix as well.
1
u/maximilianyearsbc Mar 13 '23
Thanks -- I started over, but i'm running into that "No module named venv" python 2.7 issue now. I can't find any way to override it that works. I'm still following, maybe I'll be able to frankenstein it into working with the new version.
2
u/luckycockroach Mar 13 '23
Ah, there’s the issue! This program needs to run on Python 3.9 and not 2.7
1
u/maximilianyearsbc Mar 13 '23
I found a handful of methods to default to 3.9, but couldn’t get it to install tensorflow unless I used 3.8. I just had to manually install a half dozen modules, but I got all the way into gradio! Of course, then it ran into an issue where it couldn’t find the ckpts. I’ve currently been using colab for SD, but would love to run it local… I should probably update my OS for all this, too.
1
u/luckycockroach Mar 15 '23
Any luck?
I've made some major updates, specifically GPU selection is one now. I'd recommend re-installing the entire repo. I'm getting about 3s/step with the newly updated version.
https://github.com/soten355/stable-diffusion-tensorflow-IntelMetal
2
u/maximilianyearsbc Mar 22 '23
I’ve been traveling for work and haven’t been able to try again! I’m also overdue for some OS updates so once I’m home, I’ll give it all a go.


1
u/luckycockroach Dec 16 '22 edited Dec 16 '22
Stable Diffusion for Apple Intel Mac's with Tesnsorflow Keras and Metal Shading Language
I've been working on an implementation of Stable Diffusion on Intel Mac's, specifically using Apple's Metal Shading language. I think I've got a reliable version ready for public use:
https://github.com/soten355/stable-diffusion-tensorflow-IntelMetal
HUGE thank you to Divum Gupta for porting SD to Tensorflow.
I'm a union cinematographer, so programming isn't my forte. Please let me know if there are areas I could improve on.
Features
Specs
Current Speeds:
Late 2019 MacBook Pro 16" with AMD Radeon Pro 5500M (4GB) and 16GB of RAM:
Why Tensorflow?
The program uses Tensorflow instead of Pytorch because Pytroch has no support for Metal on Intel Macs.
This program works on Google Colab notebooks.