Live data from Hacker News

A Web UI for Stable Diffusion

github.com

121–130 of 148 posts

Re: A Web UI for Stable Diffusion

#121

This is the one I've been using https://github.com/sd-webui/stable-diffusion-webui . docker-compose up , works great.

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: nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown

Re: A Web UI for Stable Diffusion

#122

This is the one I've been using https://github.com/sd-webui/stable-diffusion-webui . docker-compose up , works great.

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.

Re: A Web UI for Stable Diffusion

#123

How does copyright work with output images? If someone runs the model on their own hardware, do they "own" the images generated? If 2 people generate the same image using the same prompt/seed, who "owns" the image?

https://www.smithsonianmag.com/smart-news/us-copyright-offic... In the US, AI generated art cannot be copyrighted. Edit: Some additional details. The US also denied a copyright for one where the creator listed themselves, with the AI just being a co-creator. https://www.reddit.com/r/COPYRIGHT/comments/vshypc/the_us_co... (Original article is paywalled, reddit post contains the relevant bits) In particular: >“Even tho…

What if I create a fully automated image site where people can purchase images. All the images are generated by SD based on keywords I scrape from competitor websites. Would be quite easy to create a website like that.

Re: A Web UI for Stable Diffusion

#124

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.

Some people have been able to run on recent AMD cards with rocm: https://github.com/CompVis/stable-diffusion/issues/48

Re: A Web UI for Stable Diffusion

#125

I've been having a lot of fun with Stable Diffusion and Midjourney. One thing that is very powerful with Stable Diffusion is using text inversion ( https://textual-inversion.github.io/ ) - you can add additional input samples to further extend the possibilities beyond what is included in the original model.

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

Re: A Web UI for Stable Diffusion

#126

Earlier quoted context omitted.

That's not how it works though. Instead of applying arbitrary content detail reduction, the model is an attempt to distill the core of what makes a particular artist (or phrase, face, object etc) unique. When programming, it will often take a long time and a lot of code to get to a few final lines that do what you want. You cannot say the final result is a "thumbnail" of all previous efforts. Rather, it is the apothe…

It's the same as someone trying to mimic a style. Nothing wrong with that. Certainly not something you could get copyrights from.

It is not the same as trying to mimic a style. It is cloning the essence of a style and making it readily available to anyone who asks for it.

Sure, it's not copyright infringement, but you could argue that this takes away from the hardship the original artist had to go through to perfect their style.

Re: A Web UI for Stable Diffusion

#127

Earlier quoted context omitted.

> > as they are asking if the AI itself can hold the copyright on the output. > Who is? Thaler is. I’ve only read the intro sections of the documents you linked to, so I may have missed something more fundamental later, but the key points seem to be: > The author of the Work was identified as the “Creativity Machine,” ... the Work “was autonomously created by a computer algorithm running on a machine” and: > Thaler m…

Thaler specifically asks for himself to be given the copyright assignment in the filing, claiming that the AI is essentially creating it in a work-for-hire. He does not ask for the Creativity Machine to be assigned the copyright. >In that case, a human is providing a prompt to the model (providing creative input), and asking if they themselves count as the author (a human rather than a neural net), so it seems like a…

Thanks for the link, interesting reading. I can totally appreciate the angle that some generations may be too trivial to be worthy of protection.

I happen to be in the UK, and this happens to match my expectations, but it does strongly imply more regional variation than I’d have guessed:

> The situation may be different in the UK, where copyright law allows copyright on a computer-generated work, the author of which is the person who made the arrangements necessary for the work to be created. This, in my opinion, is the user, as we come up with the prompt and initiate the creation of the specific work. I think that there may be a good case to be made that I own the images I create in the UK.

Re: A Web UI for Stable Diffusion

#128

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.

I'm able to run it on my rx6900 xt on Linux.

I tried using a docker container and it took 3 min to generate a prompt. However it seems that 2:45 min is somehow spent on tje GPU and finally the remaining 15 seconds the GPU gets utilized.

I haven't had the time to look into this yet, but it does seem to work.

Re: A Web UI for Stable Diffusion

#129

I've been having a lot of fun with Stable Diffusion and Midjourney. One thing that is very powerful with Stable Diffusion is using text inversion ( https://textual-inversion.github.io/ ) - you can add additional input samples to further extend the possibilities beyond what is included in the original model.

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 someone successfully using textual inversion - https://www.reddit.com/r/StableDiffusion/comments/wz88lg/i_g...

Re: A Web UI for Stable Diffusion

#130
post #60
post #54

I’m waiting for someone to wrap this up into a desktop app that I can install and run on my Mac.

I've been looking into this for the last 2 days. Unless you're running an M1 Mac or newer, you're SOL. Stable Diffusion is built on PyTorch. PyTorch mainly has been designed to work with Nvidia cards. However PyTorch added support for something called RocM like a year ago that adds compatibility with newer AMD cards. Unfortunately RocM doesn't support slightly older AMD cards in conjunction with intel processors. So…

I've been running the Intel CPU version [0] for a while now on a 2013 MacMini. Works fine; it takes several minutes per image but I can live with that.

[0] https://news.ycombinator.com/item?id=32642255

Post reply on HN