Live data from Hacker News

Try Stable Diffusion's Img2Img Mode

huggingface.co

81–90 of 166 posts

Re: Try Stable Diffusion's Img2Img Mode

#81
post #64
post #52

Earlier quoted context omitted.

Nah that's normal. It's why GPUs are the usual thing for AI. Any crap, old, weak gpu with 4gb memory would run circles around a cpu It's often easier to actually get models to run on CPU, due to simpler install configs and more available memory. Just painful to get a result out of it. Which might help keep the install simple, because it's not even worth optimizing

> Any crap, old, weak gpu with 4gb memory would run circles around a cpu Not really. https://news.ycombinator.com/item?id=32635086 I’m not even sure it works well - if at all - with 4Gb. In any case, it’s impressive even if it takes minutes. And it’s not like you need to be there to make it work. You can create a list of prompts, let it do its thing and check the results later.

I have 4 gb and it takes about 9 seconds for me :) (Tho at 448x448 but there’s no real difference in quality.)

Re: Try Stable Diffusion's Img2Img Mode

#83
post #81
post #64

Earlier quoted context omitted.

> Any crap, old, weak gpu with 4gb memory would run circles around a cpu Not really. https://news.ycombinator.com/item?id=32635086 I’m not even sure it works well - if at all - with 4Gb. In any case, it’s impressive even if it takes minutes. And it’s not like you need to be there to make it work. You can create a list of prompts, let it do its thing and check the results later.

I have 4 gb and it takes about 9 seconds for me :) (Tho at 448x448 but there’s no real difference in quality.)

Good to know it works. That’s not a crap, old, weak gpu, I guess.

I’ve not tried that size but I tried 256x256 and it was too small to get interesting results - maybe there are some parameters that can be adjusted to improve it though.

Re: Try Stable Diffusion's Img2Img Mode

#84

Some amazing examples of what people have done with img2img with Stable Diffusion: https://old.reddit.com/r/StableDiffusion/comments/wy7oa5/img... https://old.reddit.com/r/StableDiffusion/comments/wyq04v/usi... https://old.reddit.com/r/StableDiffusion/comments/wzlmty/its...

old.reddit is truly horrible on mobile. Once you click on an image you can't go back. Off topic, but what is the other alternative UI called that people sometimes use?

Re: Try Stable Diffusion's Img2Img Mode

#85
post #76

I've been playing with this for a few hours. It's slow going -- you really need a fast GPU with a lot of RAM to make this very usable. I ended up paying the $10 for Google Colab Pro and that's how I've been using this. Maybe I'll figure out how to get this working on my old 1080 TI to see if it's faster. Anyway, for the one that I'm using which has a web UI, you can use this Colab link. It's pretty great! https://col…

You can feed a txt2img output into the img2img pipeline as an init, that's something that I do quite often, eg https://twitter.com/SteWaterman/status/1563872748161613826

Also how slow is your p100? I'm usually getting around 3 it/s. Maybe it's just because I'm used to disco diffusion where a single image took over an hour, but this is ungodly fast to me

Re: Try Stable Diffusion's Img2Img Mode

#86
post #43

Earlier quoted context omitted.

If i ran the same input image several times, would it produce the same output?

if you use the same parameters (e.g. image, seed, noise strength, guidance scale, sample count - which are not exposed on this UI), yes.

Depends. The default script uses a non-deterministic stochastic encode for img2img. That would need to be modified as far as I know.

Re: Try Stable Diffusion's Img2Img Mode

#87
post #43

Earlier quoted context omitted.

If i ran the same input image several times, would it produce the same output?

if you use the same parameters (e.g. image, seed, noise strength, guidance scale, sample count - which are not exposed on this UI), yes.

Not necessarily, GPU compute can be non-deterministic due to scheduling: the result of A+B+C is subtly different when it's (A+B)+C or when it's A+(B+C), which can get amplified in a long processing pipeline

Re: Try Stable Diffusion's Img2Img Mode

#90
post #76

I've been playing with this for a few hours. It's slow going -- you really need a fast GPU with a lot of RAM to make this very usable. I ended up paying the $10 for Google Colab Pro and that's how I've been using this. Maybe I'll figure out how to get this working on my old 1080 TI to see if it's faster. Anyway, for the one that I'm using which has a web UI, you can use this Colab link. It's pretty great! https://col…

FWIW I'm using an old gtx 1080 Ti to play around, it takes about 21 seconds per image. You can make it go even faster by lowering the timesteps taken from the default 50 (--ddim_steps), though both lowering and raising the value can result in quite different first-iteration images (though they tend to be similar) and seems to guarantee totally different further iteration images (as counted by --n_iter)... I'm with you on the feeling that it's hard to control, whether in refinement or in other ways, but I suspect that'll get a lot better in the next couple years (if not weeks or dare I say days).
Post reply on HN