[Stable Diffusion] Prompt Sharing and Learning Thread

me3

Member
Dec 31, 2016
316
708
Yes, it does!
() are the usual ones for emphasis in SD. {} is used in NovelAI as far as I know. They may be being interpreted correctly by SD, but it's likely not - hence why it's separating "green" and "skin" in "{green_skin}".
It doesn't recognise {green_skin} as a discrete token for any of its embeddings, so it tries to split it down until it gets to words it recognises. Only use dashes and underscores where you want to keep a string whole to use it as a token in its own right (i.e. in a Textual Inversion. Otherwise SD will just treat them like a space.

BTW, [] are de-emphasis.

There's a good technical summary .
Some other use for [] can be found
 

Sharinel

Active Member
Dec 23, 2018
506
2,095
Can I recommend Styles? I use the ones from this free Patreon post :-

Makes some interesting outputs from the same basic prompt. Here's some examples from the same model and prompt (different seeds though)
Vector Illustrations
00076-1449398350.png

then Indie Game
00085-478806624.png

and finally Black and White
00089-4262300653.png

You can get some awesome outputs just by adding a style, and of course can make your own
 

Sharinel

Active Member
Dec 23, 2018
506
2,095
So I thought I'd do a quick exercise to show how models/checkpoints/styles can change the entire look of the finished pic. I took the below prompt :-

1girl, nsfw, full body, (masterpiece, best quality, ultra-detailed, best shadow), full body, freedom, soul, cyberpunk, perfect anatomy, centered, approaching perfection, dynamic, highly detailed, smooth, sharp focus,
Negative prompt: canvas frame, (high contrast:1.2), (over saturated:1.2), (glossy:1.1), cartoon, 3d, ((disfigured)), ((bad art)), ((b&w)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), Photoshop, video game, ugly, tiling, poorly drawn hands, 3d render
Steps: 50, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 3757479247, Size: 544x960, Model hash: 03363589fe, Model: cyberrealistic_v31, Version: v1.3.2

00050-3757479247.png

and thought I would run it through a plot to show how it looks with different models etc. Warning! Large pic
You don't have permission to view the spoiler content. Log in or register now.

Some interesting outcomes. RPG v4 is set up to do d&d characters in armour etc, which is why I think some of its outcomes are a bit weird.
 

devilkkw

Member
Mar 17, 2021
301
1,029
So I thought I'd do a quick exercise to show how models/checkpoints/styles can change the entire look of the finished pic. I took the below prompt :-

1girl, nsfw, full body, (masterpiece, best quality, ultra-detailed, best shadow), full body, freedom, soul, cyberpunk, perfect anatomy, centered, approaching perfection, dynamic, highly detailed, smooth, sharp focus,
Negative prompt: canvas frame, (high contrast:1.2), (over saturated:1.2), (glossy:1.1), cartoon, 3d, ((disfigured)), ((bad art)), ((b&w)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), Photoshop, video game, ugly, tiling, poorly drawn hands, 3d render
Steps: 50, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 3757479247, Size: 544x960, Model hash: 03363589fe, Model: cyberrealistic_v31, Version: v1.3.2

View attachment 2722501

and thought I would run it through a plot to show how it looks with different models etc. Warning! Large pic
You don't have permission to view the spoiler content. Log in or register now.

Some interesting outcomes. RPG v4 is set up to do d&d characters in armour etc, which is why I think some of its outcomes are a bit weird.
nice, i like see these test. it is really useful. thank you so much.
 
  • Like
Reactions: Sharinel and Mr-Fox

sharlotte

Member
Jan 10, 2019
268
1,435
Has anyone ever had such colour 'bleeds' or 'patches' in their generated images? I've had the issue today, restarted SD, updated it, but still there in all models tested. Use VAE/no VAE, hires or not, tried different settings. No idea where this comes from. Any help would be very welcome. 00001-2831270652-NSFW, a haselblad bokeh ((photograph)) of a stunning woman, Patricia37, (high...png 00003-1460951807-NSFW, a haselblad bokeh ((photograph)) of a stunning woman, Patricia37, (high...png 00004-1460951808-NSFW, a haselblad bokeh ((photograph)) of a stunning woman, Patricia37, (high...png 00005-1460951809-NSFW, a haselblad bokeh ((photograph)) of a stunning woman, Patricia37, (high...png
 

Jimwalrus

Active Member
Sep 15, 2021
888
3,274
Has anyone ever had such colour 'bleeds' or 'patches' in their generated images? I've had the issue today, restarted SD, updated it, but still there in all models tested. Use VAE/no VAE, hires or not, tried different settings. No idea where this comes from. Any help would be very welcome. View attachment 2725384 View attachment 2725385 View attachment 2725386 View attachment 2725387
I have seen the "colour patches" before, from an over-baked TI being applied at too high a strength. Maybe try reducing the strength a little (Patricia37:0.6 perhaps?)
Also, you've got this in the prompts:
"rich colours hyper realistic lifelike texture dramatic lighting unreal engine trending on artstation cinestill 800"
Without commas or full stops it could be a little unclear how SD's supposed to apply these.

Of course, I could be wrong, it could be something else, but your CFG isn't excessive, everything else looks OK too.
 

Sepheyer

Well-Known Member
Dec 21, 2020
1,526
3,596
Has anyone ever had such colour 'bleeds' or 'patches' in their generated images? I've had the issue today, restarted SD, updated it, but still there in all models tested. Use VAE/no VAE, hires or not, tried different settings. No idea where this comes from. Any help would be very welcome. View attachment 2725384 View attachment 2725385 View attachment 2725386 View attachment 2725387
My bet is there's not enough steps for the renderer to completely flashout the image. Do humor me - please put 20 steps and see if this goes away.
 

Jimwalrus

Active Member
Sep 15, 2021
888
3,274
My bet is there's not enough steps for the renderer to completely flashout the image. Do humor me - please put 20 steps and see if this goes away.
Apologies, I missed that - 15 steps is probably not enough, even with 30 Hi-res steps.

BTW, I'm currently running a few tests to see what the effects of more steps and perhaps other things are. I don't have the "Patricia37" TI as it's a personally-created one of sharlotte's , so that will inherently remove any effects from it from the running.
 
Last edited:

Jimwalrus

Active Member
Sep 15, 2021
888
3,274
OK, here's a test with 10, 15, 20, 25 & 30 steps*:
10:
00032-1460951807.png
15:
00033-1460951807.png
20:
00034-1460951807.png (notably, the patches were still visible until the upscaling got rid of them)
25:
00035-1460951807.png
30:
00036-1460951807.png
Grid:
xyz_grid-0000-1460951807.png

My personal preference here would be 30 steps, but 25 works well too.

As I have previously said: "Play around with more or fewer steps to see what works best for what you're aiming for, but be prepared to increase or decrease them at any time"


*Without the TI as it's not publicly available.
 

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,040
3,134
Has anyone ever had such colour 'bleeds' or 'patches' in their generated images? I've had the issue today, restarted SD, updated it, but still there in all models tested. Use VAE/no VAE, hires or not, tried different settings. No idea where this comes from. Any help would be very welcome. View attachment 2725384 View attachment 2725385 View attachment 2725386 View attachment 2725387
I'm having that problem as well and I also having the faces deformed and it doesn't matter if I have deformed_face in the negative prompt
 

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,793
I'm having that problem as well and I also having the faces deformed and it doesn't matter if I have deformed_face in the negative prompt
I agree with both Jim and Seph. Increase the sample steps and make sure to use Face restoration and/or post processing.
The next thing is to take a look at the checkpoint and/or Lora's and TI's etc that could be the cause.
 

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,040
3,134
I agree with both Jim and Seph. Increase the sample steps and make sure to use Face restoration and/or post processing.
The next thing is to take a look at the checkpoint and/or Lora's and TI's etc that could be the cause.
It would be easier for us to help you if you posted a file with the render.
I always have at 48 and above

i am in processes of redownloading it

here is a face problem this one is at 20

1687792637268.png

00000-3459957818.png 00001-3459957818.png

this one is at 48

00002-3873278355.png

I can't get the other problem to occur after re-downloading it
 
Last edited:
  • Like
Reactions: Sepheyer

sharlotte

Member
Jan 10, 2019
268
1,435
Thanks a mil guys, I'll try later this evening and will up the number of steps, insert proper commas and lower the strength of the TI and see where that takes me. All these make perfect sense. Thanks for the quick turnaround!
 

Jimwalrus

Active Member
Sep 15, 2021
888
3,274
I always have at 48 and above

i am in processes of redownloading it

here is a face problem this one is at 20

View attachment 2725823

View attachment 2725817 View attachment 2725820

this one is at 48

View attachment 2725830

I can't get the other problem to occur after re-downloading it
OK, couple of recommendations:
- In Settings, make sure you're using GFPGAN for Restore Faces, not the default CodeFormers.
- Enable Hi-res Fix. If your GPU doesn't really have the horsepower for it, just set it as low as you can so it adds at least 8 pixels in each direction. As a minimum use the same number of hires steps as gen steps, ideally double. Don't use Latent, it just blurs stuff. Experiment with which works best for you.
 
  • Like
Reactions: Mr-Fox and Sepheyer

devilkkw

Member
Mar 17, 2021
301
1,029
Has anyone ever had such colour 'bleeds' or 'patches' in their generated images? I've had the issue today, restarted SD, updated it, but still there in all models tested. Use VAE/no VAE, hires or not, tried different settings. No idea where this comes from. Any help would be very welcome. View attachment 2725384 View attachment 2725385 View attachment 2725386 View attachment 2725387
read some answer here, all good, but what sampler? some sampler need more step, or you get these patch.
Also some lora generate this, for example i have some lora and have to weight it to 0.2 for get good result( a bit overtrained i think).
 

Mr-Fox

Well-Known Member
Jan 24, 2020
1,401
3,793
I always have at 48 and above

i am in processes of redownloading it

here is a face problem this one is at 20

View attachment 2725823

View attachment 2725817 View attachment 2725820

this one is at 48

View attachment 2725830

I can't get the other problem to occur after re-downloading it
Generating images with multiple subjects is notoriously problematic without help from a Lora or similar. I would try out a Lora that has this specific concept (multiple girls) and try with the bronze statue prompt.

Like this one.
Example:
1687805145732.png 1687805190805.png 1687805266137.png
Source: