Skip to content

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 :/

​

130 points83 comments
Open on Reddit
About this post
Posted
Archived
Score
130 · 96% up
Kind
Text
ID
18a93ca

Author

190
posts
336
comments
58
media
View profile

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

80 points

can you expand on this, please? i understand how inpainting works but can't maximise i2i. thanks in advance!

5 points

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

39 points

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.

-6 points

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.

1 points

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.

1 points

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.

1 points

Great thread! A few things I'll offer that improved my results:

  • learning to be process oriented, not goal oriented. Unlike other ways of making pictures, having a specific result in mind never ended well for me on SD. Instead, I let my images evolve as I make them, and I'm much happier with the final result. -taking the time to name my outputs in an organised fashion. So for me every generated image has a name like "2023-11-27-ipadapter-test-0035" which makes them super easy to archive, and to find later.
  • Keeping a notebook of prompts, lora weights, useful techniques etc. I feel like I'll never forget anything, but I always forget something. The notebook is there for me because I can't predict what I'll forget.
  • the Add Details lora. Seems to play well with every checkpoint, and is a key part of my finishing process.
  • using loras set to negative. I love finding things that other people want more of, and reducing them in my images.
45 points

using loras set to negative. I love finding things that other people want more of, and reducing them in my images.

Can you tell an example? Like you find a Batman lora and put in the negative because you don't want any Batman?

20 points

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.

14 points

"I want to generate a realistic portrait... Hmmmm. What if I use negative waifu?"

11 points

earning to be process oriented, not goal oriented. Unlike other ways of making pictures, having a specific result in mind never ended well for me on SD. Instead, I let my images evolve as I make them, and I'm much happier with the final r

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

2 points

Thanks mate :)

Can you write a little about using ChatGPT for prompting? It's not something I've tried and it sounds interesting.

2 points

Editing results in an image editing app then feeding those back to img2img to regenerate.

27 points

Same. I usually edit generated images in affinity photo and then use USDU with a higher denoising strength for great results.

3 points
  • When in doubt, simplify. It's easy to start throwing on more terms, more weights, and more negatives, until you're writing a small novel and either nothing changes or the changes are unpredictable. Whenever I find myself heading this direction, I blow everything up and start over, focusing on the core part of the image. Anything that doesn't turn out right can be inpainted in later, so no need to stress over doing it all at once.
  • Related to the above, learn to photobash. If your scene is too complicated, break it into components (eg setting, subject1, subject2... etc). Draw each component separately, and then combine them in Photoshop or an equivalent program. Then use Img2Img to redraw the whole.
  • Use quality enhancers sparingly. There's lots of positive and negative embeddings and LoRAs that can do things like add details or suppress bad anatomy. The problem is lots of these tend to come with side effects. They may push the image towards a particular style, or limit variation in faces or poses so all your images converge into something similar. I'm not saying avoid them altogether (I'm personally fond of some of the detail LoRAs), just be aware that they may be influencing your images in ways that aren't immediately obvious.
23 points

when you photobash and then load it to Image2Image - what prompt would you use?

2 points

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:

  • < 0.4 --> will follow the image closely with little influence from the prompt
  • 0.4 - 0.6 --> will follow the image composition fairly closely, but probably change details and be reasonably influenced by the prompt
  • 0.6 - 0.8 --> will follow the image's overall color pallet, and the composition to a certain extent, but will be much more reliant on the prompt for guidance
  • 0.8 --> probably don't want to use this much. It's mostly reliant on the prompt, but not always predictable in exactly how the image influences it

7 points

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.

18 points

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.)

3 points

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.

16 points

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.

7 points

Great tip, can we tempt you to take it one step further and add suitable recommendations that meet the parameters you stated?

1 points

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.

9 points

Someone posted on here discussing useful negative terms for their prompts. One of the most useful for me has been "symmetry."

14 points

wasnt symmetry like a must have in positive prompts?

1 points

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.

6 points

Maybe it was helpful originally, but nothing screams uncrated AI like symmetry. Symmetry no longer seems required for good results.

3 points

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.

13 points

Those are the little gems that actually help. Experience from other users. Thank you very much!

3 points

((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,))

11 points

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

9 points

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.

8 points

Have to try this, Thanks.

3 points

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.

2 points

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.

6 points

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.

3 points

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.

4 points

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 %

1 points

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.

2 points

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.

4 points

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.

11 points

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.

3 points

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

1 points

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.

5 points

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

1 points

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.

3 points

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.

2 points

-Inpainting is incredibly powerful.

-use different models for different objectives

2 points

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.

2 points

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."

1 points
countrycruiserDeleted · saved before deletion

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

1 points

In my experience, SD is pretty good at people but awful at everything else.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.