What are some hidden tips that have improved the art SD has made for you?
Before you ask yes I'm looking some hot tips namely on ways to improve over all quality of the art.
I love SD but it can be hard to deal with at times :/
About this post
- Posted
- Archived
- Score
- 130 · 96% up
- Kind
- Text
- ID
- 18a93ca
89 comments
Dun try to get a good image only by t2i. Text is a very bad way to describe an image, i2i and inpaint is the real gem
can you expand on this, please? i understand how inpainting works but can't maximise i2i. thanks in advance!
Jumping in here, essentially i2i says "I'm going to demonstrate with another image what I want from you" and there are a few ways to do that. You can Frankenstein an image and feed it in, this is called photobashing: https://youtu.be/uKTLfKaJOYQ?si=P4hfs3yCqa1dzJSF Or you can borrow some of the stylings and ideas in an image using a custom node called IPAdapter: https://youtu.be/7m9ZZFU3HWo?si=5D7nz6RkaSFpJdGP And then there's controlnet which is a system that takes in images of various kinds to control the output image in lots of interesting ways: https://youtu.be/fyCb64Yx2vc?si=SXKoVCfagu8vGDJV
HTH
He mean: make/search/buy good photo, add tiny amount of SD processing and tell all how you good in SD. Many videos here made in this way.
i agree. its so strange that is what ppl start with.
How the hell do you do that with Draw Things? Everytime I put an image and do i2i, it looks like early 2019 AI generation (literal dogshit), or it just changes the colors of the image i added.
What are you setting Strength to?
SDXL plus good checkpoint and generating a good batch of images and cherry picking, maybe 1,5 hires fix does it for me most of the time. I even stopped using adetailed for faces because there's no need to with a good checkpoint.
i2i to get variations of a good image and inpaint only to fix certain spots but they become less and less relevant for me.
incorrect. prompting is the heart of stable diffusion, by definition.
if you have a good prompt for txt2img, it will make even better img2mg gens. the reverse is not true.
img2img is easier because you can afford to be lazy and still get good outputs.
Great thread! A few things I'll offer that improved my results:
Can you tell an example? Like you find a Batman lora and put in the negative because you don't want any Batman?
Hah! Kinda :)
So I use a tool designed to reduce the anime look to introduce it - I find it's much cleaner and has no baggage compared to other techniques. Also actors and real people, subtracting them can make for interesting faces.
"I want to generate a realistic portrait... Hmmmm. What if I use negative waifu?"
Good list! Never thought to make a lora negative, definitely going to try that
How long were you doing this?
How long was I doing what?
All of what you said - 1,000 %. Also using ChatGPT a ton - never write your own prompts for version 1, and that side of it is accelerating even more.
https://preview.redd.it/t8vnjyidyb4c1.png?width=1280&format=png&auto=webp&s=b33055028e64466425a14566cb7e822f914cbcf6
Thanks mate :)
Can you write a little about using ChatGPT for prompting? It's not something I've tried and it sounds interesting.
Editing results in an image editing app then feeding those back to img2img to regenerate.
Same. I usually edit generated images in affinity photo and then use USDU with a higher denoising strength for great results.
when you photobash and then load it to Image2Image - what prompt would you use?
You would try to prompt for the scene as a whole. Since you're backing up the description with an image, it should be much less likely to get confused (although that's not guaranteed - you may still need inpainting to fix specific areas). Also play with the denoising strength:
Call your characters by name. Instead of “a photo of a woman” say “a photo of Stephanie Jones”. You’ll get the same “kind” of person each time. Obviously you’ll get celebrity likenesses when used.
Also there are LoRAs of "nobodies". I.e. people who do not exist IRL, but can be used to generate consistent characters. (Bonus tip: mix them to create an entirely new character.)
If you are doing clones or identical twins this is a super good tip.
Mostly it’s “could be brothers or cousins”.
If you have a program that can control contrast levels to a greater degree (micro, low, mid, and high contrast, not the overall contrast).
Use the Micro contrast and ramp it up like 30% to bring out many details and to make skin look more realistic.
Too high and it will make it look noisy, but this can take your “photorealistic” renders and make them look like actual photos.
Or the opposite, add blue to the shadows and yellow to the highlights to 'ruin' your photo to make it look like a standard Instagram filter. You lose fidelity but it can make it seem more real. Kinda like how all video games were brown in the 2000's.
or literally use an Instagram filter on your photos.
Great tip, can we tempt you to take it one step further and add suitable recommendations that meet the parameters you stated?
I use Topaz Studio.
It was a Black Friday deal several years ago and just a program I was already used to using before AI.
There is a filter called Precision Contrast where you can adjust 4 separate levels of contrast, 3 separate levels of lighting, along with 3 saturation things (saturation, vibrance, and color contrast)
Lowering saturation a little, lowering Vibrance, then zeroing out color contrast also usually helps outputs look better.
All of these parameters are on sliders and I usually just play with it until it looks better. You can click on the image to view the original and compare it.
Someone posted on here discussing useful negative terms for their prompts. One of the most useful for me has been "symmetry."
wasnt symmetry like a must have in positive prompts?
In traditional art and design, symmetrical and/or centered compositions are considered less elegant. A typical mark of competence in the visual arts is the ability to bring balance to a non symmetrical composition using color, scale, etc. same for photography, rule of thirds is one of the first things you learn.
Maybe it was helpful originally, but nothing screams uncrated AI like symmetry. Symmetry no longer seems required for good results.
Use as few words as possible and the words you do use should not be vague. If you use vague words the effect will be unpredictable. If you use too many words you won't know which ones are actually doing anything useful to the image.
Unrelated, but thanks to you I found this https://imgur.io/gallery/gTA5Jlu
Tagged as 18+
Gif is a parrot holding a tiny toy AK-something and making pew pew noises
Those are the little gems that actually help. Experience from other users. Thank you very much!
Thanks really helpful
((ForceUnlock:SD_DevMode,GodMode,UltraRealismMode_Activate:1, TrueLifeRender_Enable:1, PhotorealUnlockKey:1, HyperRealisticToggle:1, DeepRenderVivid:1, MimicRealitySwitch:1, ExactVisualReplica:1, RealismMaxParamSet:1, AuthenticityOverride:1, OptimalFidelity_Exec:1,))
Never seen anyone prompt like that. Are those specific terms that most AI programs know? How did you figure out if they are actually helping your image quality?
He also forgot to SystemCall:Enable_StrongAI_CLIP_Replacement
https://preview.redd.it/z5urphplqa4c1.png?width=296&format=png&auto=webp&s=a1ded78f73e89edd51a20c3eedb4ac3a286ccfd7
if everyone tells you don’t do something: Do that something and come to your own understanding. Some of my favorite methods for photorealism rely on big no-nos
Using an animated model and a photo realistic model as the refiner to get better compositions from 1.5 models. My computer is a potato and SDXL models give me PyTorch errors and crash 1111.
Have to try this, Thanks.
Also enabling the upscaler in settings so that you have the option to upscale in txt2img allows me to apply upscaling before going to img2img for upscaling saves me some time on my potato.
Very cool tip thank you for sharing.
I have a collection of people in very little to no clothing and in interesting poses that I paint over for img2img. Cant draw if my life depended on it, especially getting human proportions right, but I can clone a rudimentary piece of armour from an image leatherbag on a bikini model to make fantasy art for my roleplaying games.
That's a good way to do it, i used to do that too. But its a bit tedious is some ways. These days its a lot easier to achieve the same thing by using the ipadaptor control net. Just take a image that contains some armour or whatever, and the control net will very nicely apply the "spirit" or how the armor looks without copy pasting, and combine it with your prompt or other image with extremely good blending. Its like a lora in a single image, and barely affects performance too.
My biggest improvements came from making/merging/finding better models (including lora).
Latest obsession has been using block weights and Auto MBW to pull the best parts of old models that I liked but had problems and merging them with newer models that had less problems but feel too samey to all the other models.
Do you know how to merge checkpoints or lora to take model from one, clip from second and VAE from another? Kohya merger only allow to set overall amount %
so I've mostly been doing things like "keep composition from one, import style from another" or "fix each other's weaknesses with a blend". But out of curiosity I did some searching.
one I do know is use kohya to take a lora from a ckpt. this is a pretty common use and I think these lora often end up stronger than ones just trained as lora (debatable I know, personal belief, but I'm willing to be proven wrong).
Koyha can also merge a lora or multiple lora into a ckpt. which can be useful for making merges.
https://github.com/bmaltais/kohya_ss
if you only want elements of a lora I think supermerger can do that, there is also lora weights managers, give a search on extensions. I've only started playing with these as it was hard for me to find tutorials and I've had to experiment to go forward.
https://github.com/hako-mikan/sd-webui-lora-block-weight
https://github.com/hako-mikan/sd-webui-supermerger
As for removing VAE, yes I think that is possible though I've not tried it. this script seems to allow it for 1.0 models. https://gist.github.com/ProGamerGov/70061a08e3a2da6e9ed83e145ea24a70
I don't know how to remove clip from a model and I don't think it really works that way, someone more knowledgeable than me can answer but the trained keywords are paired with it's known image patterns, so that's really more the core of the model but I think clip is actually outside the model and how it checks those keywords. Hopefully someone smart knows the answer.
you can though erase and emphasize keywords using that tech that was made to erase, but I've not figured that out yet either. too many things to learn.
In sd1.5. Ignore the trend to overload both prompts with too much stuff and (weights:2). 1.5 follows natural language a lot better if not overloaded.
Sdxl is even more sensitive to words, but insensitive to weight overloading.
Tiled vae. Fixes the most common out of memory phase of the process for my 8gb vram card.
I've always found all the claims about "follows natural language" to be utterly and completely bullshit. For all models. SD isnt a llm, it doesnt understand language, and its training sets arent described like a social media post either.
That said, "overloading" prompt does have negative impact. Mostly because the weighs of various terms vary greatly in the background, so you accidentally putting in some term that the AI values highly overpowers the other terms in the prompt. So making a prompt big isnt really a issue with the length itself, but it purely statistically increases the odds that you mention something that will overpower 95% of the rest of the prompt.
t21 -> get base(upscale if too low quality)
inpaint -> get a base with all the things you want
using loras or different models -> to blend that whole inpain image properly
final upscale
but if you know prompting tricks you can skip many steps.
AND,[],(),BREAK,[a:b],[a|b],[a:n],[a:b:n] etc are some stuff that can manipulate image inbetween and also controlnet.
some styles are just too hard to create like that photorealistic crude oil painting style or flat high contrast image styles. i left this when colab banned the a111 webui i dont really have a gpu , so basically all ai prompting i learnt is pretty much useless for me for some time.
I've seen some prompts with what you mentioned in the second paragraph. Is there any documentation that explains what those do? They seem like logical operators but I'd like to know the exact definition from a source of possible
Using brackets is the "prompt editing" feature of A1111. You can read about it in the official documentation here. Basically you're using it to tell at which steps of the generation some part of your prompt will appear, or disappear, or be replaced by another part. It sounds really nice on paper, but in my experience, you'll have to experiment quite a bit to achieve what you really want. But it's definitely an interesting mechanism, and might be one of the most underused feature.
BREAK refers to the way your prompt is tokenized. At first, prompts were limited to 75 tokens (which is not equivalent to 75 words). It's been extended since, but internally, behind the scenes, your prompt still has to be divided into 75 tokens chunks to be processed. Which can be a problem if it splits apart words that you want to be processed together (like a word and an adjective, typically color, for example). Using BREAK (it has to be in uppercase) allows you to "organize" your prompt to help SD better interpret it, so to say. Don't expect miracles from it, though, but it certainly has an impact. There are lots of old posts about it (like here or here for example) if you wanna dig deeper.
AND (again, in uppercase) is about "composable diffusion". It fuses concepts together (official info for reference).
Do note that BREAK and AND may have different or additional uses with some extensions, like Regional Prompter or Composable Lora.
Most are covered on this infographic:
https://imgur.io/FLZNN5I
Otherwise this should cover everything:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#prompt-editing
ill explain in short
AND is basically 2 images created from 2 prompts mixed into each other(using many ands will burn image)
BREAK makes it like all prompts after break is read with 1st one no order, like it usually goes car then bike but now it will go car bike both together no order.
[] - multiplies prompt by 0.9 something weight
() - multiplies prompt by 0.1 something weight you can do (a:n) to define weight where a is prompt
[a:b:n] - shifts from prompt a to b after n steps and [a::n] will remove a after n steps while [a:n] add that prompt after n
[a|b] - basically morphing for step 1 its prompt a then step 2 its b then 3 a so on
If I want something really good I'll cut and paste things I want very roughly in Photoshop and then use controlnet and img2img to get the output. Most of my text prompts are generated with a couple of GPTs bots I made and I can tweak them.
Also for controlnets I find lineart realistic to be the best for most cases.
One fun trick in ComfyUI is using one model to generate an initial image, then automatically img2img it through another model. For instance if you want the composition from one model (say a cartoon model), but realism from another model.
Do you have an example workflow for that?
-Inpainting is incredibly powerful.
-use different models for different objectives
I built up a good collection of prompts by taking a lot of the composition words (RAW photo, photorealistic, etc..), and using dynamic prompts to randomly choose between 2-10 of them {$2-10:RAW photo|hyperrealism|etc..} and then using attention grabber and magic prompt as well. Then xyz with different samplers, checkpoints, and CFG.
Let that run with combinatorial generation for like 20 hours or so and save the png metadata of the good pictures.
Add polydactyl to your negatives.
!remindme 1 day
I will be messaging you in 1 day on 2023-12-05 21:56:18 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
I primarily do painterly artwork. If you combine two artists with very different styles in the prompt, you can come up with something original, often dynamic and not, "Oh, that looks like so-and-so did it."
Use 3d CAD software that let's youmale, rigged 3d characters that vaguely resemble the people you want to make, then use controlnet to make them photorealistic, and then run roop faceswap on the person you are trying to swap in.
A lot of the faceswap repos have NSFW filters, but you can paste their code into chatgpt and ask it how to disable it. This is important because the filters have a lot of false positives
In my experience, SD is pretty good at people but awful at everything else.
You want to know the real secret? Use SD for concept art and learn to draw at least a bit on your own. Krita is free and has an AI art plugin available, which you can use with any checkpoint or loras you want. It even lets you do inpainting in the same interface just by selecting an area.