News for hackers. Stuff that matters.
Re:Try Stable Diffusion's Img2Img Mode by MichaelDickens on Monday August 29, 2022 @01:35AM (#32635086)
What kind of GPU do you have? It takes several minutes to produce an image on my 1070.
Re:Try Stable Diffusion's Img2Img Mode by elaus on Monday August 29, 2022 @03:37AM (#32635615)
Takes 3 minutes (for a prompt resulting in a set of 4 images) on my 1080 as well. Really astonished that it takes GP about the same time using just a CPU. Seems like the older generation of GPUs isn't much better than CPUs in regards to ML stuff.
Re:Try Stable Diffusion's Img2Img Mode by krisoft on Monday August 29, 2022 @05:37AM (#32636265)
> Really astonished that it takes GP about the same time using just a CPU.

GP talks about generating a single image while you talk about generating 4.

Re:Try Stable Diffusion's Img2Img Mode by stingraycharles on Monday August 29, 2022 @02:08AM (#32635212)
A 1070 isn’t very powerful for ML compared to more recent GPUs, so several minutes sounds about right.
Re:Try Stable Diffusion's Img2Img Mode by SirYandi on Monday August 29, 2022 @03:39AM (#32635622)
To add another data point, my GTX1080 takes ~60 sec to generate a pair of 500x500 images using txt2img. Haven't tried img2img yet as the UI package I went with is a bit buggy with it
Re:Try Stable Diffusion's Img2Img Mode by anhner on Monday August 29, 2022 @03:45AM (#32635651)
also on a 1070, I can generate an image in ~15 seconds, surely you're doing something wrong.
Re:Try Stable Diffusion's Img2Img Mode by freeqaz on Monday August 29, 2022 @03:52AM (#32635692)
What settings are you using it the people with 1080s above you are taking 3 minutes?
Re:Try Stable Diffusion's Img2Img Mode by anhner on Monday August 29, 2022 @07:40AM (#32636984)
I'm using lstein's repository which loads the models and keeps them in memory. Then, for some diffusers 16 steps is enough to come up with a usable image (and using more steps will only add details, most of the time won't change much).

This is for the initial "exploration" step of the process. Once I like an image I typically play with the settings, then in the final step run with a large number of steps (and maybe even use upscaling).

So, default 512x512 size, 16 steps and default for the rest of the settings (I believe 7.5 scale, 0.75 strength).

Having said that, I also tried the official Docker image for stable diffusion and with the default values it generated an image in about 40 seconds.