r/StableDiffusion • u/RobJF01 • Oct 19 '22
Using a CPU (or not)
I guess most will say no but I'll ask anyway just in case. Is there any point in trying to run SD on a PC with Ryzen 9 5900HX cpu, 32GB RAM and integrated graphics?
Edit: based on encouraging comments here I downloaded the cmdr2 version, which claims to auto switch to cpu mode if appropriate. However, after producing default image (astronaut/horse) in 6mins which seemed ok, I found setting to use cpu and ran again using that, which took half the time!
3
Upvotes
3
u/Slumber_watcher Oct 19 '22
Is there a point? Of course there is. It won't be fast or maybe even usable. But, it is fun. Doesn't hurt to try. Worst thing that could happen is that you wasted an hour or two settings things up.
I used this one when I was experimenting: https://github.com/darkhemic/stable-diffusion-cpuonly
(It was slow, but it worked.)
6
u/CommunicationCalm166 Oct 19 '22
No point? Depends on what you want out of it. Anything the GPU can do... The CPU can do... Just slower.
If you're just playing with SD, and you don't mind leaving it to chooch for a few minutes at a time... Knock yourself out. If you wanna do development, or integrate it into a graphics or art workflow on the other hand, you're really gonna want that CUDA.
2
u/ManamiVixen Oct 19 '22
The big difference between CPU's and GPU's is time.
If you have time to spare, you can do a machine learning task like image generation on CPU and just come back an hour later or so to see what few images the AI generated.
A CPU may take a few minutes to generate a single image, whereas a GPU takes seconds.
2
u/SeekerOfTheThicc Oct 19 '22
I have a 5950x and tried cpu only, and and it takes like 3 minutes to get 1 image done with eular a at 25 steps at 512x512. It only gets slower the more things you get it to do.
2
u/NerdyRodent Oct 19 '22
Depends if you like having fun making images (albeit slowly)?
2
u/CMDRZoltan Oct 19 '22
Nothing wrong with waiting longer. Could be a good way to dip your toes in before committing to PC upgrades or using an online rent a card system.
Personally I'm far to impatient to wait 6 mins when I know I can generate about 30 images in 33-35 seconds with a 3090ti.
2
u/AstroFish69 Jan 03 '23
Some people might not have a choice i for example can run stable diffusion 1.5 ok on my old 4gb graphics card but not 2.1 since it needs more vram. So I'll give it a try on cpu.
0
u/[deleted] Oct 19 '22
[deleted] — view deleted comment