Sign In

Prompt Parser Strategies...

Images hidden due to mature content settings

If you're confused from the prompt which uses "{}" around groups of words, lots of colons between groups of words "::" or ":::" with terminators like "~" or "!" or "!!", "or's" using "|" outside of traditional brackets ("[" , "]") and more than two.....

This is an indication that I'm using a customized and enhanced version of a prompt_parser.

I use A1111 and while this prompt_parser is not officially supported it is very effective, and transcends between models. While it won't magically make every prompt in a different model magically as good as the prompt in the model it was designed for, it does do a pretty (imho) amazing job between "model.safetensor" files.

Note:

If you do decide to use emphasis "(", ")" or de-emphasis "[","]", ensure you do it outside of the brackets or it will cause a parser error.

However, I did update the prompt weights and also allowed steps to be specified if you want the prompt_parser to focus on specific steps for things. Occasionally I will specify something like "watermark:0-30" in the negative prompts if I use 30 steps to essentially instruct the model to try not to draw a watermark every single step. Again, it's not perfect but if you notice things keep showing up when you don't them to, it's a strategy you could try.

In this prompt below it should resolve like this, if it was a json tree. The terminators in this prompt (consiting of these characters: "!, !!, ~") are removed via the code to ensure that only the prompt is left for the model.

{
  "adult": {
    "age": "21",
    "attributes": {
      "blonde_hair": {
        "style": "long_hair",
        },
      "eye_color": {"blue_eyes"
      },
      "appearance": {
        "conservative": true,
        "casual_appearance": true
      },
      "outfit_options": [
        {
          "main_outfit": "high detailed bikini",
          "features": ["exposed upper thighs"]
        },
        {
          "main_outfit": "mini skirt",
          "features": ["shirt", "midriff"]
        },
        {
          "main_outfit": "school uniform"
        },
        {
          "main_outfit": "topless"
        },
        {
          "main_outfit": "nude"
        },
        {
          "main_outfit": "swimsuit"
        },
        {
          "main_outfit": "nightgown"
        }
      ],
      "footwear_options": [
        "barefoot",
        "sneakers",
        "heels",
        "flats",
        "sandals"
      ],
      "sock_options": [
        "ankle_socks",
        "barefeet",
        "pantyhose",
        "thigh_highs"
      ],
      "lingerie_options": [
        "none",
        "panties and bra",
        {
          "lingerie_set": "panties only"
        },
        {
          "lingerie_set": "bra only"
        },
        "nude"
      ],
      "body_details": [
        "tan-lines",
        "relaxed posture",
        "trimmed_nails",
        "standing"
      ]
    },
    "environment": {
      "lighting": "softlight",
      "clothing_color_options": [
        "blue",
        "black",
        "white",
        "pink",
        "yellow",
        "orange"
      ],
      "background_options": [
        "wall",
        "white",
        "brick",
        "concrete",
        "drywall"
      ]
    }
  }
}