Stable Diffusion Prompt Comment

Stable Diffusion Prompt Commenting

When creating prompts for Stable Diffusion, it can be useful to comment out certain parts of the prompt to test variations. Here are some best practices for commenting prompts:

  • Use ::-1 or <rem> tags to comment out sections of text. For example:
a photo of a cute cat ::-1 playing with yarn
  • Comment out full lines by starting the line with // or #. For example:
// a photo of a cute cat
playing with yarn
  • Break up your prompt into logical sections using comments. This makes it easier to tweak parts of the prompt. For example:
// Subject 
a photo of a cute cat

// Action
playing with yarn

// Style
cute, warm lighting
  • When sharing prompts with others, use comments liberally so people can understand the structure.
  • Be careful not to include comments in the final prompt you generate images from, as it may confuse the AI.

Using comments effectively takes some practice, but it’s a simple way to iterate on prompts. Test what works best through experimentation.

Here are some useful references on prompt commenting:

How to Comment Out Parts of Your Stable Diffusion Prompts

Stable Diffusion Prompt Comment Syntax

I hope this overview on prompt commenting helps you engineer better Stable Diffusion prompts! Let me know if you have any other questions.