Generating AI images with StableDiffusion - Beginner Guide

Psan2022

Member
Mar 8, 2022
100
143
Lol why do i get pics like that ? it's so scary
It is quite excentric. Like Van Gogh :D

To answer your question I need some intel:
1. What checkpoint are you using
2. What prompt
3. Any addons like Loras or are you using plugins?
4. What resolution are you generating in?
 

Psan2022

Member
Mar 8, 2022
100
143
Ah I see now. The default one is quite shit.
Download a checkpoint in the style of the image you want to generate.

SD 1.5:
For realism like this ->
For anime style ->

SDXL/PONY (More taxing on your PC, image gen resolution around 1024x1024):
Realism->
Anime Style ->

Edit: If you want to generate Hentai/XXX images Pony style Checkpoints and Loras are quite easy and straight forward to use.
 
  • Heart
Reactions: nicod

nicod

Newbie
May 17, 2019
82
235
Ah I see now. The default one is quite shit.
Download a checkpoint in the style of the image you want to generate.

SD 1.5:
For realism like this ->
For anime style ->

SDXL/PONY (More taxing on your PC, image gen resolution around 1024x1024):
Realism->
Anime Style ->

Edit: If you want to generate Hentai/XXX images Pony style Checkpoints and Loras are quite easy and straight forward to use.


NansException: A tensor with NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.

anyone knows why i get this
 

Psan2022

Member
Mar 8, 2022
100
143
NansException: A tensor with NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.

anyone knows why i get this
Open the webui-user.bat in the editor and put this into the command line: --xformers --no-half-vae
1740417906038.png
 

Psan2022

Member
Mar 8, 2022
100
143
i did and got same error ..

Edited : Fixed now i after i enabled Upcast cross attention layer to float32

Edited again : nahh seems the issue still exist
Try this then:
COMMANDLINE_ARGS= --medvram --xformers --no-half
 

nicod

Newbie
May 17, 2019
82
235
Try this then:
COMMANDLINE_ARGS= --medvram --xformers --no-half
it caused the programm to render one pic in like half hour

the strange is it happens sometimes when i put many promps

MY card maybe the issue it's Old GTX 1650
 

Psan2022

Member
Mar 8, 2022
100
143
it caused the programm to render one pic in like half hour

the strange is it happens sometimes when i put many promps

MY card maybe the issue it's Old GTX 1650
Well, I would not expect any miracles with that card. For image generation you need a lot of VRAM and Tensor Cores. An GTX card does not have those sadly.
 

noa.n

New Member
Feb 25, 2025
3
0
Thanks for the thread, I'm learning a lot here. Now I just wish my computer was not a potato...
 

neenerpants

New Member
May 26, 2018
6
3
Thanks for this thread. Taught me a lot.

I'm wondering how you'd go about using it for a game though. How easily can you generate repeated images with the same characters, without them taking on different appearances from one shot to the next? What about backgrounds that make narrative sense?

In terms of animations, I've seen animated AI images but I believe they're very limited, and very obviously AI-generated. How feasible would animating these images be with Live2D or Spine?
 

Psan2022

Member
Mar 8, 2022
100
143
Thanks for this thread. Taught me a lot.

I'm wondering how you'd go about using it for a game though. How easily can you generate repeated images with the same characters, without them taking on different appearances from one shot to the next? What about backgrounds that make narrative sense?
I am by no means an expert in this but generating consistent characters is not easy but doable. You can achieve somewhat consistent characters by utilizing different prompting techniques and by describing the hell out of how your character looks in the prompt. the more you describe the less the AI has to imagine how that person may or may not look. There are also some Addons for Automatic1111 that may achieve what you want. You also have the option of using a Lora of a character that looks similar to what you want and change the look via prompting.

I recently dabbled into ComfyUI and this video popped up a while ago. It seems really close to what you search for.


ComfyUI has a node system. It has a steep learning curve but the control you have over your images is crazy. If I get more compfortable using ComfyUI then I will make maybe another tutorial.

In terms of animations, I've seen animated AI images but I believe they're very limited, and very obviously AI-generated. How feasible would animating these images be with Live2D or Spine?
Video AI models have the same issue as LLMs have or had in the past. They can link thoughts together for a few seconds until they loose the plot. For example image to video generation has come a long way but for local generation 5-10 seconds is quite the max.

A few days ago WAN2.1 has been released. You can use the WAN2.1 model in ComfyUI and make really great short AI videos from a single image and a few lines of prompts or only from text.

 
  • Like
Reactions: neenerpants

Psan2022

Member
Mar 8, 2022
100
143
What addon do you use for auto tags?
I used to use the
But Automatic1111 has its own thing now that works quite well as well.

If you are using Automatic1111 with version 1.6 or newer you should have this box under the Generate button:
1740917197156.png
It should be there without any addons. You click on the Brush symbol and type in your positive and negative prompts. After saving you can select your preset from the list. If it is selected those prompts will be applied everytime you click on generate.

ADDITONALLY I recommend this addon. This saves your changes and prompts. So that If you close the server or close the Webui your changes are kept:


Under Settings/State you have to check the boxes what you want to be saved. Be it your last prompt, certain settings etc. Dont forget to save and restart the UI after that.
 
  • Like
Reactions: FallenHeroes

FallenHeroes

Newbie
Aug 23, 2018
54
20
I used to use the
But Automatic1111 has its own thing now that works quite well as well.

If you are using Automatic1111 with version 1.6 or newer you should have this box under the Generate button:
View attachment 4604506
It should be there without any addons. You click on the Brush symbol and type in your positive and negative prompts. After saving you can select your preset from the list. If it is selected those prompts will be applied everytime you click on generate.

ADDITONALLY I recommend this addon. This saves your changes and prompts. So that If you close the server or close the Webui your changes are kept:


Under Settings/State you have to check the boxes what you want to be saved. Be it your last prompt, certain settings etc. Dont forget to save and restart the UI after that.
Thank you very much for your help. Also,I tried to create something similar to what you made in this photo (Example 2)
Yep you can definitely do that.For example:

Example 2:
Settings:
Checkpoint: Hassaku XL Hentai
Scheduler: Euler A Karras
Resolution: 1024x1024
Sampling Steps: 50

View attachment 4333792

Prompt used for both pictures:
NSFW, (anime style:1.3),naked, nude, fantasy room,slut,beautiful woman, hourglass figure, supermodel figure, chocker, (black lipstick:1.2), black torn stockings,pussy dripping, slap marks,used condoms on floor, sweating ,goth girl, smeared makeup, nipple rings, pussy juice leaking,blushing, wet pussy, pubic hair,camel toe,steamy,navel piercing,tattoos, blush, long hair,crotch tattoo<lora:Expressive_H:1>Expressiveh, catgirl, glowing yellow eyes, cat iris,egyptian,

The outcome would highly depend on the checkpoint you are using. LORAS can also alter your image drastically
But I couldn't manage to.Did you use this model ? I wasn't able to see XL version.
also what tags and loras did you use? Can you give me more details, please?
 
Last edited:

Psan2022

Member
Mar 8, 2022
100
143
Thank you very much for your help. Also,I tried to create something similar to what you made in this photo (Example 2)

But I couldn't manage to.Did you use this model ? I wasn't able to see XL version.
also what tags and loras did you use? Can you give me more details, please?
This is the right checkpoint for HassakuXL:

The prompts are directly under the example picture.
If you look closely there is a Lora prompt in there.
So the only Lora I used in this picture was with a weight/strengh of 1
 
  • Like
Reactions: FallenHeroes