Live data from Hacker News

A Web UI for Stable Diffusion

github.com

141–148 of 148 posts

Re: A Web UI for Stable Diffusion

#141
post #91

Earlier quoted context omitted.

Is it any different than Photoshop content aware fill? Or using a camera? Nobody would ever think about Adobe or Nikon having copyright claims over your pictures. For me it's just a tool, the artistic part is providing a good description/base image, refining and choosing the best output. Anyway, I'm not a lawyer and we probably live in different countries, so it'll be interesting to wait for the first lawsuit.

> Nobody would ever think about Adobe or Nikon having copyright claims over your pictures But it is illegal to share pictures of Eiffel Tower, for example. People do it, but they shouldn't. If I put a picture of Eiffel Tower at night in a book or any other kind of commercial product, I have to pay to use it. Doesn't matter that it's there for my eyes to see it. The question is: are the images generated by an hyper ac…

That's actually just French copyright Law, has never been challenged I believe, and applies to the night lights only.

Re: A Web UI for Stable Diffusion

#142

Earlier quoted context omitted.

Seems like it fails if you have an AMD GPU instead of an Nvidia one (at least that's my guess, based on the error contents): ERROR: for stable-diffusion Cannot start service stable-diffusion: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvi…

Indeed, Stable Diffusion does not currently run on AMD graphics cards.

It does, on Linux, Windows, and MacOS.

Re: A Web UI for Stable Diffusion

#143

Earlier quoted context omitted.

Can I run (train?) this textual inversion using the same consumer GPUs that work with stable-diffusion? Or does it require a much beefier machine

You can, though you might run into memory limitations running it on a GPU. There can be tuning done to lower the VRAM utilization, but I have been lucky enough to not need this - I do some CG work and ran into VRAM limitations there, so I'm on a 3090 with 24GB. You can always run it on a CPU and utilize your RAM instead if needed, though the training might extend to 24+ hours that way. Edit: Here's an example of some…

Thanks

Re: A Web UI for Stable Diffusion

#144
post #71

Earlier quoted context omitted.

This is exactly it. It’s pretty remarkable that it was trained on over 100 terabytes of images and yet the model has been distilled down to only 4gb.

Yes, and another reason for the small model size and the novelty of the underlying paper [1], is that the diffusion model is not acting on the pixel space but rather on a latent space. This means that this 'latent diffusion model' does not only learn the task at hand (image synthesis) but in parallel also a powerful lossy compression model via an outer auto encoder structure. Now, the number of weights (model size) c…

Oh, wow. Now that you mention how it's similar to lossy (if not the same as) compression it all makes a LOT of sense. This is great. I teach IT and I already do a bit on how lossy compression works, (e.g. hey, if you see a blue pixel and then another slightly darker one next to it, what's the NEXT likely to be?) and this is something of an extension of that.

Re: A Web UI for Stable Diffusion

#145

Earlier quoted context omitted.

Indeed, Stable Diffusion does not currently run on AMD graphics cards.

It does, on Linux, Windows, and MacOS.

I've gotten it running with a Radeon RX 6800 on Ubuntu Linux 22.04 (with overwriting PyTorch with a ROCm-supporting version), and on Windows 10 (in a very barebones way using ONNX), but are there better, more full-featured ways to get it running on Windows? Would love to know.

Re: A Web UI for Stable Diffusion

#147
Nice to know tricks for /sd-webui/

- activate advanced: create prompt matrix and use

@a painting of a (forest|desert|swamp|island|plains) painted by (claude monet|greg rutkowski|thomas kinkade)

- add different relative weights for words in a prompt:

watercolor :0.5 painting :0.2 by picasso :0.3

- Generate much larger images with your limited vram by using optimized versions of attention.py and model.py

https://github.com/sd-webui/stable-diffusion-webui/discussio...

- Generate "Loab the AI haunting woman" if you can (Try using textual inversion with negatively weighted prompts)

https://www.cnet.com/science/what-is-loab-the-haunting-ai-ar...

Re: A Web UI for Stable Diffusion

#148

Nice to know tricks for /sd-webui/ - activate advanced: create prompt matrix and use @a painting of a (forest|desert|swamp|island|plains) painted by (claude monet|greg rutkowski|thomas kinkade) - add different relative weights for words in a prompt: watercolor :0.5 painting :0.2 by picasso :0.3 - Generate much larger images with your limited vram by using optimized versions of attention.py and model.py https://github…

- add GFPGAN to fix distorted faces

https://github.com/sd-webui/stable-diffusion-webui/wiki/Inst...

- add RealESRGAN for better upscaling

https://github.com/sd-webui/stable-diffusion-webui/wiki/Inst...

- add LDSR for crazy good upscaling (for 10x the processing time)

https://github.com/sd-webui/stable-diffusion-webui/wiki/Inst...

Post reply on HN