Midjourney

How to use prompt weights In Midjourney (eg. '::2')

by

Yubin

updated

2 Comments

You might've seen numbers like '::2' inside Midjourney prompts. These are called prompt weights and they help you emphasize (or de-emphasize) certain parts of prompts.

Some weighing basics:

  • All words have a default weight of 1 (but words at the start of a prompt have a greater effect on the result than words at the end)
  • Commas are soft breaks, '::' are hard breaks
    So a comma between phrases of words says "these are different concepts" and a '::' divider says "these are very different concepts".
  • Prompt Weights: :: by itself is just a hard break. If you add a number after it, such as ::2 or ::10, emphasis will be added to the section preceding the ::
  • You can also add a negative weights such as ::-1 (for what you don't want)
  • The --no command is a shortcut for assigning the weight ::-0.5, which is a pretty good amount for specifying what you don't want.
  • IMAGE WEIGHTS: You can weigh image prompts as well, with --iw.

Seems like a lot to remember, but it's actually pretty intuitive. Let's go through some examples:

PromptImageComments
wood::teapotIf you don't specify a weight after the :: it defaults to 1
wood::2 teapot::1Pretty big change
wood::3 teapot::1More wood than teapot
wood::4 teapot::1I guess that's a handle??
wood::5 teapot::1Yep that's wood

Note: I'm setting the seed value to be the same in all these examples. Controlling the seed lets you keep images consistent across generations, so we can see the effect of changing the image weights only.

Let's go the other direction now:

PromptImageComments
wood::teapotSame starting point
wood::1 teapot::2Slowly getting rid of wood
wood::1 teapot::3Slowly getting rid of wood
wood::1 teapot::4More of the same
wood::1 teapot::5More of the same

There's no need to set a super high weight value; I've noticed that once you go past a ratio like 1:5, the underemphasized element completely stops mattering.

Keep in mind:

Relative weights matter, not absolute

Weights matter in proportion to each other.

So wood::4 teapot::1 will yield the same result as wood::8 teapot::2, which yields the same result at wood::16 teapot::4, and so on.

Negative weights

Let's see what happens when we use negative weights to describe what you don't want:

PromptImageComments
studio ghibli anime, stormtrooperNo negative weights added yet
studio ghibli anime, stormtrooper::1 3d render realistic::-0.1Add the following negative weight to "3d render realistic" because I don't want the realistic style here
studio ghibli anime, stormtrooper::1 3d render realistic::-0.2A little negative prompt goes a long way
studio ghibli anime, stormtrooper::1 3d render realistic::-0.3More of the same
studio ghibli anime, stormtrooper::1 3d render realistic::-0.5More of the same
studio ghibli anime, stormtrooper::1 3d render realistic::-1 The negative prompt is just as strong as the positive prompt creating unpredictable results.

Keeping in mind negative prompts are also relative, so wood::1 teapot::-1 is the same as wood::10 teapot::-10.

Side note: If you are trying to generate anime styles you should 100% be using Midjourney's Niji model.

'--no' command

The --no command is a shorthand for "::-0.5" which is just a regular negative weight.

You write the things you don't want after the --no. Such as --no 3d realistic realism.

You can use it if you prefer not to think about numeric weights.

-0.5 is a pretty good benchmark: it zaps out things you don't want without making the negative prompt too strong.

Awesome free stuff? Why yes, we do have that...

FREE
Midjourney V5 Prompt Book: Fantasy & Worldbuilding

94-pages, 200+ prompts and techniques for creating the heroes and lost worlds of your imagination.

2 thoughts on “How to use prompt weights In Midjourney (eg. '::2')”

Leave a Comment