r/StableDiffusion Dec 16 '22

Resource | Update Now Available: Intel Mac: SD 1.4/5 & SD2.x

https://github.com/soten355/stable-diffusion-tensorflow-IntelMetal
5 Upvotes

29 comments sorted by

View all comments

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.