r/MachineLearning • u/Illustrious_Row_9971 • Aug 27 '22
Project [P] Run Stable Diffusion locally with a web UI + artist workflow video
18
u/enumerationKnob Aug 28 '22
This is awesome, but what’s the advantage in spending so much time making the original image so precisely edited if the img2img stuff is so vastly different?
7
u/Illustrious_Row_9971 Aug 28 '22
the strength slider was set too high here, author commented that once it is set lower the result is closer to the original composition https://www.reddit.com/r/StableDiffusion/comments/wz2zx5/comment/im1dynb/?utm_source=share&utm_medium=web2x&context=3
150
Aug 27 '22
album covers gonna be bonkers the next few years
45
u/Nowado Aug 27 '22
Not really. Nothing impossible became possible on a single cover level.
On the other hand, every tiny indie artist can release every single song with a separate (set of) graphics.
32
Aug 27 '22
With AI tools in general a lot of independent artists just became able to create album covers of their own. While technically not making anything impossible possible, it's something that wouldn't happen otherwise.
5
u/chimp73 Aug 28 '22
People are going to generate their favorite music including album covers. Remember that stable diffusion is a tiny model. Much more is already technically feasible.
1
u/lump- Aug 28 '22
That is a perfect example of how this technology is a bit harmful to artists and illustrators. Especially small independent ones. Who need to hire and pay an artist, when they can generate amazing imagery without much talent or effort.
But we’ll still need artists… if only to feed their style into the models.
4
Aug 28 '22
I think it will be kind of like what is happening in language translation. They produce a translation with machine learning which varies in quality and then a translator edits it. Artists will probably be doing more touch up work now. These images have all kinds of artifacts.
1
u/lump- Aug 28 '22
And sadly, that kind of touch up work can be outsourced to sweat shops for pennies. If I’m an illustrator and someone wants my style, but don’t want to pay for it, they can generate it now….and surely with much higher fidelity in the near future.
I would love to know what Greg Rutkowski’s point of view on all this is…
5
u/NoCryptographer1467 Aug 29 '22
Why sadly? The entire point of our debt-focused society is increase of productivity.
Any job that can be automated means that more people can be allocated to more difficult types of work.
0
u/lump- Aug 29 '22
Because in this case, the hard work of composition and rendering has been done by the machine, and it only leaves the rather mundane factory work of fixing up the defects.
3
u/ajkom Aug 29 '22
"Technology that automates X is a bit harmful to people that does X"
Nothing new. Common theme in human history. I don't see it as being harmful. It will unblock more productivity from human population.
2
u/chimp73 Aug 28 '22 edited Aug 31 '22
But we’ll still need artists… if only to feed their style into the models.
This does apply to sounds outside of known basic musical components, but there is probably still lots of discover in novel combinations of existing components which neural nets can generate and may be regarded as new style each time (think a "painting made of spaghetti", which can surely be extended to combinations of more abstract/deep concepts). The question is also how many basic musical components are still undiscovered? Given that old music is booming, there might not be much left.
1
u/ThirdMover Aug 28 '22
Has there been research already in how to generate new styles?
1
u/lump- Aug 28 '22
Not sure… but have you ever run stable diffusion with no prompt? It generates random yet often coherent images. I’m not sure what to make of that though.
0
u/_matterny_ Aug 28 '22
I mean, does it really harm artists? It means they don't have to do "draw a man riding a horse into a sunset" type requests anymore. Now artists should get more freedom with what they draw.
2
u/kaibee Aug 28 '22
I mean, does it really harm artists? It means they don't have to do "draw a man riding a horse into a sunset" type requests anymore. Now artists should get more freedom with what they draw.
Most of today's great artists did a lot of commission work. That how they fed themselves while improving their craft. A large enough public SD model is gonna be the end of that.
2
u/_matterny_ Aug 29 '22
Do you personally know any professional artists? The one's I know, who made a living off art, didn't make enough money off these types of jobs to be sustainable. Yeah it might help for a hobby, but professional artists make money off drawing things by hand so that some rich person can say it was handmade. It would be epic if you didn't need artists to make cartoons anymore.
1
34
21
18
15
11
u/Freonr2 Aug 28 '22
For the artistically challenged, I've found img2img works fairly well with MSPaint level stuff. However, adding some gaussian or random noise seems to help, too. Don't be afraid to draw a few primitive boxes and circles and give it a fancy prompt, it can still produce some amazing outputs.
We sort of had a technical challenge trying to make it image inverting/reversing through refractive materials and this was one of the outputs I finally got using img2img:
prompt: "a scenic view of a field, sky, sun, and clouds is refracted by a glass ball"
I could never get it to actually draw an upside down tree inside the ball (adding "tree" in the prompt would always draw a right-side up tree), but at least it shows a pretty crappy drawing I did in Paint.Net can produce some really cool output, and can sorta make it do things it wouldn't normally do, like refractive-like effects.
3
u/FutureMerlin Aug 27 '22
Jesus Christ how do you even do that type of stuff? I can barley code scratch to make a circle
8
u/Freonr2 Aug 28 '22
That's the trick, you don't, draw the crappiest scribble you can in MS Paint and you can always take the outputs and put them into another img2img batch.
1
Aug 27 '22
For people with a few days older version of this webui script, whats the best way to approach updating?
9
1
1
1
0
Aug 28 '22
[deleted]
3
u/Pikalima Aug 28 '22
WebUI just means it uses the browser in some capacity, and browsers can access websites hosted on your local machine. Hence it’s a local web app. If you’ve ever used Discord, Spotify, VSCode etc, you’ve used web UI’s “running locally” (via electron).
1
u/Mistiks888 Sep 07 '22 edited Sep 07 '22
is there a way to host atomatic111 web ui to my friend?
https://github.com/AUTOMATIC1111/stable-diffusion-webui1
u/Pikalima Sep 07 '22
Did you read the link you sent? Scroll down to “Installation” and “Running online”.
1
u/Mistiks888 Sep 07 '22
thank you, but pls tell me where should i put this
" --share " and " --listen " code?1
u/Pikalima Sep 07 '22
Those are command line flags. Sorry if my comment came off as rude. I can see how that would be confusing if you’re not used to working in the terminal, and the repo doesn’t explicitly tell you how to set those flags.
You need to open a terminal in the directory containing webui.bat and run “.\webui.bat --share”. I can’t help you past this, but two things you can Google are “how to open a terminal in windows” and “how to navigate to a directory in the terminal”.
1
u/Mistiks888 Sep 07 '22
https://media.discordapp.net/attachments/832307735734386698/1017127543893135403/unknown.png
no worries, im new to this and you dont have to help me,
but thank you so much that you do
i did it, but sadly it doesnt work1
u/Pikalima Sep 07 '22
In webui.bat, try putting the - -share after the the = sign on line 5, like
set COMMANDLINE_ARGS=“—share”Try not to copy and paste this from my comment, since reddit formatting might mess up some of the characters.
1
u/Mistiks888 Sep 07 '22
it works! thank you!also im trying to change my default valuesbut there is no uiconfig.json
https://media.discordapp.net/attachments/832307735734386698/1017180584453349446/unknown.png
maybe you know where to find it?
https://media.discordapp.net/attachments/832307735734386698/1017180082873311402/unknown.png1
u/Pikalima Sep 08 '22
Not sure. You can try making the file and seeing if it picks up the values you set.
52
u/Illustrious_Row_9971 Aug 27 '22 edited Sep 04 '22
github: https://github.com/hlky/stable-diffusion
dev repo (more features, may have bugs): https://github.com/hlky/stable-diffusion-webui
repo with docker: https://github.com/AbdBarho/stable-diffusion-webui-docker
colab repo: https://github.com/altryne/sd-webui-colab
web demo for stable diffusion: https://huggingface.co/spaces/stabilityai/stable-diffusion
can also run it in colab (includes img2img): https://colab.research.google.com/drive/1NfgqublyT_MWtR5CsmrgmdnkWiijF3P3?usp=sharing
demo made with gradio: https://github.com/gradio-app/gradio
original thread from r/StableDiffusion by u/bozezone: https://www.reddit.com/r/StableDiffusion/comments/wz2zx5/i_tried_to_make_some_fantasy_concept_art_with/