Fun with AI - Special tricks in Image Creation: Prompt Attention and Classifier-Free Guidance
Lets see the effects of parameters in AI image creation.
The prompt is
A scene from a Scifi movie. A space ship with blazing guns
We are using the Interface Stable Diffusion and the model technoRealism_v10.
The pictures were rendered in 512x512.
The graphics is NIVIDA A4000 with 16 GB VRam on a HP z440 workstation
The standard output looks like
or
New Prompt attention
Lets use this prompt
A scene from a Scifi movie. A (space) ship with blazing guns
We have here put the term space in parantesis.
This lets the model pay more attention to the term space
The result is
or
More prompt attention
We use as prompt
A scene from a Scifi movie. A (space:1.5) ship with blazing guns
In this prompt, we put a number as indicator, how much the model should pay attention to space.
or
Modify the Classifier-Free Guidance scale (CFG)
This time, we have the original prompt and change the cfg scale
Until now, we had the cfg scale to 3.5
But now, lets change it to 10.3
This will change the output quite a lot.
The result looks like
or
cfg = 49.9?
If you change cfg to the max of 49.9 (in this interface)
the output looks like
Not very impressive!