November 14, 2023

Lesson 3.1: Basic parameters used in prompts

Here you are ready to write your first prompt, but what do we see.... Here's a great example. You probably won't understand what's going on here right away.

(photorealistic:1.3), masterpiece, best quality, (intricate details:1.2), (scenery:1.3), beautiful face, (black theme:1.3), (((1girl, a girl in patterned kimono holding a dagger in her hand, (look at veiwer:1.3), (face tattoo:1.2), small oni horn))), full body, split in half

This prompt allows you to create a picture like this

But what are these brackets and why so many numbers, we don't want to teach the AI anything, do we? What you see here is just some of the parameters that can be used to create the images that we're going to use.

We'll go from simple to complex.

Using ","

It's pretty simple, the "," parameter is used for the sole purpose of separating the parts of the request so that the image is not just a compilation of whatever you put in it. This means that each element of the image must be separated ! Otherwise you will get something different from what you expect and want to see.

So if you suddenly see that the result does not meet expectations first of all check all commas and where they are located.

Understanding the meaning of numbers and the ":" parameter

And we will start with the simplest one, namely the use of ":" followed by numbers. This parameter is an indication of the "weight" of this or that element in the image. It can have a value from -1 to 2. Where a value of -1 indicates that this element should not in the image or. And 2 would indicate the strong influence and importance of that prameter. In this case, the AI will emphasize on this particular element. By default all the words you write in the query are set to 1, but it can be changed as here (photorealistic:1.3).

This helps the AI to better understand that it is important for us to prioritize this parameter. You can use ":" to fine-tune the importance of certain elements in the final image. But be careful not to overdo it. So, for example, the boundary values (-1 and 2) are most often not used. Most often you will find such variants as -0.5, 1.5, -0,1, 1,2, etc.

If you make all parameters have too high weights, the result will be unpredictable, even though you may write a good query.

Use of brackets

Let's take a portion of the prompt as a basis.

  • (((1girl, a girl in patterned kimono holding a dagger in her hand, (look at veiwer:1.3), (face tattoo:1.2), small oni horn)))

The parentheses within this prompt are used to indicate the weights (or probabilities) of the attributes or characteristics that describe the image. In this case, the prompt describes an image of a girl in a kimono holding a knife and some other details.

To understand the prompt let's take it apart:

  • "1girl" indicates that there should only be one girl in the image.
  • "(look at veiwer:1.3)" indicates that the girl in the image should look at the viewer, and this action has a weight of 1.3, which may imply that this is an important aspect of the image.
  • "(face tattoo:1.2)" means that there must be a tattoo on the girl's face, and this has a weight of 1.2, which can also be an important detail to create an image.
  • "small oni horn" indicates that the girl must have a small horn (demonic horn), a characteristic that may also be important to the plot or overall perception of the image.

This parsing was prepared by ChatGPT, but he didn't say anything about using brackets. I wonder why? It is because in the seaart platform that we are going to use, brackets are used for specific notation of weights.

Here are the main ones:

  • Lexical ( ) Weight x1.1,
  • Expansion [ ] Weight x1.21
  • Weakening { } Weight x1.05, may be nested.

I will not focus your attention on them, because they are already more complex aspects of work. But if you wish, you can find more detailed information here

As a result, anything inside the brackets will automatically have a higher weight than anything outside the brackets.

At the same time, multiple brackets are not required. The best solution would be to make the query like this:

  • (1girl, a girl in patterned kimono holding a dagger in her hand, look at veiwer:1.3, face tattoo:1.2, small oni horn)

We remove brackets from parameters that already have weight and remove unnecessary brackets. As a result, we get a more understandable prompt and the same result as before.

But it is important to realize that this is a feature of the seaart platform. In general, brackets are not used and will be ignored. Because they are not part of the functionality of other platforms. So for example in midjourney there is no such thing.

This way we immediately learned the basic parameters and delimiters that we will be working with during our course. Namely the main separator "," she is our main friend. Working with weights using ":". And additional parameters that we will use when working with the seaart platform.