this post was submitted on 23 Jul 2023
10 points (100.0% liked)

Stable Diffusion

499 readers
6 users here now

Welcome to the Stable Diffusion community, dedicated to the exploration and discussion of the open source deep learning model known as Stable Diffusion.

Introduced in 2022, Stable Diffusion uses a latent diffusion model to generate detailed images based on text descriptions and can also be applied to other tasks such as inpainting, outpainting, and generating image-to-image translations guided by text prompts. The model was developed by the startup Stability AI, in collaboration with a number of academic researchers and non-profit organizations, marking a significant shift from previous proprietary models that were accessible only via cloud services.

founded 1 year ago
MODERATORS
 

I was curious, do you run Stable Diffusion locally? On someone else's server? What kind of computer do you need to run SD locally?

all 13 comments
sorted by: hot top controversial new old
[–] IanM32 5 points 11 months ago (1 children)

I run it locally. I prefer having the most control I can over the install, what extensions I want to use, etc.

The most important thing to run it in my opinion is VRAM. The more the better, as much as you can get.

[–] [email protected] 2 points 11 months ago (2 children)

I run locally too. I have a 10gb 3080.

I haven’t had vram issues could you elaborate on your statement?

I know on local llama I have been limited to 13b models

[–] IanM32 2 points 11 months ago

Stable Diffusion loves VRAM. The larger and more complex the images you're trying to produce, the more it'll eat.

My line of thinking is that if you have a slower GPU it'll generate slower, sure, but if you run out of VRAM it'll straight up fail and shout at you.

I'm not an expert in this field though, so grain of salt, YMMV, all that.

[–] [email protected] 3 points 10 months ago

Runs fine with 1660, but that is about 20 sec for 512x512 and upscaling takes upwards of a minute.

If you want to run it online I suggest paperspace paid tier, not too big of a hassle to set up but you might have to wait a couple mins spamming refresh to get a better GPU, the instance can run for 6 hours, then it will be autoshutdown. Generally 2-4sec for 512 and 10-20 for 1024. Also, you will have to either download models every time, settle for only two or three models at a time or fork up a couple extra bucks for the permanent storage as base paid is only 15GB.

[–] [email protected] 2 points 11 months ago

I run it locally. I have a CPU from 2009. All you need is a good GPU.

[–] BitSound 2 points 11 months ago

I run it locally with an 11gb 1080 TI. It's just exposed on the local network, so I still use the main SD website if I'm out and about somewhere.

[–] [email protected] 2 points 11 months ago (1 children)

locally, always.

I even got it to run without GPU on a pure old i5 CPU with 8GB system RAM (not VRAM) paired with 32GB swap. SD1.5 takes 4-10 minutes per image, SDXL about 2 hours. But it works. With GPU its between 7 and 90 seconds per image, depending on model and settings.

[–] [email protected] 2 points 10 months ago (1 children)

What were your settings for the CPU usage? I have an older laptop it would be fun to get it running on.

[–] [email protected] 2 points 10 months ago

Just install ComfyUI and start it with the --cpu flag. Ensure you have enough system RAM and a swap partition (preferably on nvme/ssd).

[–] [email protected] 1 points 10 months ago

I am running it locally with a 3060 TI and it works decently well.

[–] [email protected] 1 points 11 months ago

I have it running on my M2 MacBook Air (16gb RAM)