r/StableDiffusion • u/ydobemos • Oct 18 '22
I made a lazy style helper script for AUTOMATIC1111 /stable-diffusion-webui
EDIT: It has been greatly updated since this version: https://www.reddit.com/r/StableDiffusion/comments/y9rwmk/greatly_updated_my_automatic1111_prompt/
Basically you pick certain style elements and a bunch of preset keywords get added to your prompt in the background. Check out this 'single word' result:

It is my third day of learning Python, so things will be a little rough and, certainly, the prompts need work. But it feels great to use so I'm posting it here. https://github.com/some9000/StylePile
Feel free to share ideas and feedback. Especially if someone knows how to force a style on those Radio elements with the gigantic buttons surrounding them.
Edit: Did my first update. Some truly repulsive monsters now generated by the monsters mode.
19
u/ciavolella Oct 18 '22
Every day someone makes SD easier for people like my mom to use. Hats off to you, sir. I would recommend adding distance to subject and view angle. (Close up, Medium shot, birds-eye view, worms-eye view, etc) I've been doing a lot of winter landscapes of famous cities with birds-eye views and they are much nicer looking than without that prompt. Also helps a ton in portrait work Just an idea.
8
u/DodoDoer Oct 18 '22 edited Oct 18 '22
Very cool! Looking forward to playing around with it. May I suggest you adapt the new weight syntax? See https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#attentionemphasis
Thank you for publishing this.
edit: To clarify: I mean the decimal notation e.g. (word:1.5).
6
u/Rogerooo Oct 18 '22
Cool, i've been working on something similar myself, a button based prompt maker, that get's data from a json file.
There are 2 types of data, a category and a tag list, categories are loaded as Tabs and tag lists, children of categories, are Accordions with buttons for each tag.
It's working ok but I'm finding that Gradio UI isn't much scalable for this kind of things where you need to create a lot of components. I have a Danbooru json file that creates around 5k-6k buttons and it really slows the startup time. I'm trying to find a more lazy approach to this but I can't seem to make it work, perhaps with some javascript.
5
u/DeQuosaek Oct 18 '22
Thank you for sharing! Easy enough to modify to suit our individual tastes. I would personally not include Artgerm and Ilya Kuvshinov in the "Elegant Painting" image style. I picked out several beautiful landscape artists if you want to use them: Ansel Adams, Sebastião Salgado, Takeshi Mizukoshi, David Brookover, Galen Rowell, Carr Clifton. I haven't tried them yet as I have a long X/Y plot render going exploring seed values, but I imagine they'll work great for that. For "Portrait" image style I have added Annie Leibovitz (because how could you not?) and Philippe Halsman (even though he's a little off the beaten path) and threw in Steve McCurry because he's amazing as well. Hope this helps round it out some.
I love that this technology is helping so many people discover these great artists.
2
u/RhetoricalDeviant Nov 15 '22
Thanx for this!! Hope you might continue to improve and refine this :D Seeing a lot of new sites (like playgroundai or nightcafe) and diffusers (ERNIE-ViLG) coming out with dropdown menus (inspired by?) like yours. It really makes playing around with styles much simpler!!
Hope we might one day discover the keywords that could replicate midjourney's amazing composition and use of light and dark contrast...
2
u/Stunning-Steve-AI Oct 18 '22
Hi, I downloaded and added it to the folder but I'm not seeing it in my scripts. I tried a restart of the webui as well as refreshing scripts. Am I missing something?
5
u/tinymoo Oct 18 '22
Neat, and nicely customizable, too. Going to bookmark this and give it a look tonight. Thanks!
4
u/bleachjt Oct 18 '22
Awesome! Very helpful. Works like a charm.
1
u/Arkaein Oct 19 '22
I wonder if it would be useful to have an attractiveness setting?
I haven't used the tool, but I see from your default portrait that it adds a lot of negative prompts for things like ugly, malformed, etc. The result is a very attractive woman.
A lot of people are generating portraits of beautiful people, but there is plenty of need for ordinary and ugly people in artwork as well.
1
u/Gatchan Oct 19 '22 edited Oct 19 '22
Launching Web UI with arguments: Error loading script: StylePile.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 69, in load_scripts compiled = compile(text, path, 'exec') File "E:\AI\stable-diffusion-webui\scripts\StylePile.py", line 68 <title>StylePile/StylePile.py at main · some9000/StylePile · GitHub</title> ^ SyntaxError: invalid character '·' (U+00B7)3
u/Coumbaya Oct 18 '22
Super cool, thanks.
3
u/[deleted] Oct 18 '22
Nice stuff. I'm super new to the field and don't even know what I'm doing with git for windows and what not. Was able to install and use in no time.
Thanks for sharing.
2
u/Giusepo Oct 18 '22
cool!
2
u/camaudio Oct 19 '22
This is great thanks for sharing it! I look forward to any updates
1
u/slinkybob Oct 19 '22
Brilliant, thankyou!
1
u/nikgrid Oct 20 '22
Pretty cooll mate, how do I add some of my own? Sorry complete python novice :)
1
u/[deleted] Jan 21 '23
Wow. Thank you so much.