Live data from Hacker News

Try Stable Diffusion's Img2Img Mode

huggingface.co

91–100 of 166 posts

Re: Try Stable Diffusion's Img2Img Mode

#91
post #13

If you have a GPU with >4GB of VRAM and you want to run this locally, here's a fork of the Stable Diffusion repo with a convenient web UI: https://github.com/hlky/stable-diffusion It supports both txt2img and img2img. (Not affiliated.) Edit: Incidentally, I tried running it on a CPU. It is possible, but it took 3 minutes instead of 10 seconds to produce an image. It also required me to hack up the script in a really…

[deleted]

Re: Try Stable Diffusion's Img2Img Mode

#92
post #86

Earlier quoted context omitted.

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.

[deleted]

Re: Try Stable Diffusion's Img2Img Mode

#94
post #86

Earlier quoted context omitted.

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.

On the forked repo with the webui (https://github.com/hlky/stable-diffusion) it seems that the same inputs result in the same output, so maybe it has been resolved there?

Re: Try Stable Diffusion's Img2Img Mode

#95
post #71

Earlier quoted context omitted.

What kind of GPU do you have? It takes several minutes to produce an image on my 1070.

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.

> 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

#96
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…

With a 3090 it's about 10s to generate a 512x512 image from another, maybe less.

Re: Try Stable Diffusion's Img2Img Mode

#97
post #13

If you have a GPU with >4GB of VRAM and you want to run this locally, here's a fork of the Stable Diffusion repo with a convenient web UI: https://github.com/hlky/stable-diffusion It supports both txt2img and img2img. (Not affiliated.) Edit: Incidentally, I tried running it on a CPU. It is possible, but it took 3 minutes instead of 10 seconds to produce an image. It also required me to hack up the script in a really…

What kind of GPU do you have? It takes several minutes to produce an image on my 1070.

[deleted]

Re: Try Stable Diffusion's Img2Img Mode

#98

Earlier quoted context omitted.

I’m not gonna lie, I’m quite disappointed at all the anti-NSFW shenanigans.

The NSFW thing is just a fig leaf though, it's trivial to disable if you run it locally and it annoys you.

However, it looks like the model wasn't trained on NSFW keywords anyway, which means it is permanently impaired in that regard.

Re: Try Stable Diffusion's Img2Img Mode

#99

Earlier quoted context omitted.

I’m not gonna lie, I’m quite disappointed at all the anti-NSFW shenanigans.

I'm not gonna lie, I'm quite disappointed by the wilful obstinance on HN whenever there is a discussion of anti-NSFW or anti-racism filters that are present on today's artificial intelligence research. First, the filters are only on the interface. The research is public. That's why there has been an explosion of new implementations. You are welcome to run the code yourself and make the horniest model you like. But mo…

I can generate many violent prompts right now, and the model knows the face of hundreds of celebrities (you would think they would garble those to prevent PR disasters). It knows what the 9/11 attack was, it knows about nuclear bombs, horror, gore. Yet somehow it doesn't know what a blowjob is. This is 100% about narrow-minded, prudish conservative values. And yes, most of them come from the US right now, because these models are not being trained in Africa, India or China.

Your argument is entirely descriptive. We know why they do this. What should be argued here is how stupid and sad it is to block progress due to nothing more than religious or moral values.

Re: Try Stable Diffusion's Img2Img Mode

#100
post #98

Earlier quoted context omitted.

The NSFW thing is just a fig leaf though, it's trivial to disable if you run it locally and it annoys you.

However, it looks like the model wasn't trained on NSFW keywords anyway, which means it is permanently impaired in that regard.

It was trained on LAION 5b, which is chock-full of NSFW material. Search for yourself: https://rom1504.github.io/clip-retrieval/
Post reply on HN