Fooocus Dynamic Prompt Generator Help
This guide explains how to use the Fooocus Dynamic Prompt Generator to create dynamic prompts using Fooocus syntax.
What is Fooocus Dynamic Prompt Syntax?
Dynamic prompts in Fooocus allow you to create varied outputs by specifying multiple options for parts of a prompt. The syntax uses square brackets to wrap dynamic options, separated by commas:
Example: [[option1, option2, option3]]
Steps to Use the Generator
- Select the Number of Text Boxes: Choose between 1, 2, or 3 text boxes.
- Enter the Starter Prompt: Type the beginning of your prompt.
- Fill in Text Boxes:
- Text Box 1: Paste or type items (one per line) for the first dynamic input.
- Additional Text Boxes: Enter a description (prompt) before each box, then paste items.
- Enter the Ending Prompt: Complete your prompt with any concluding text.
- Generate the Prompt: Click the "Generate Prompt" button to create your Fooocus prompt.
Features
- Dynamic Syntax: Automatically formats inputs using Fooocus syntax (e.g.,
[[item1, item2]]
).
- Total Prompt Count: Displays the number of variations based on your input.
- Download or Copy: Save the generated prompt as a `.txt` file or copy it to your clipboard.
Example
Here’s a complete example:
- Starter Prompt:
A serene landscape
- Text Box 1:
- Text Box 2:
- Prompt:
Foreground
- Pasted Text:
flowers
grass
- Text Box 3:
- Prompt:
Background
- Pasted Text:
mountains
a sunset
- Ending Prompt:
at dusk
Generated Output:
A serene landscape [[a calm river, a tranquil forest]] Foreground [[flowers, grass]] Background [[mountains, a sunset]] at dusk
Number of Dynamic Prompts
The generator calculates the total number of dynamic prompts by multiplying the number of lines in each text box.
- Text Box 1: 2 items
- Text Box 2: 2 items
- Text Box 3: 2 items
The total number of dynamic prompts is 2 × 2 × 2 = 8
.
Be sure to set the Number of Images in Fooocus to match the Number of Dynamic Prompts Created (e.g., 8 in this example).
Troubleshooting
- Missing Prompt: Ensure all required fields are filled before generating.
- Download Issues: Check your browser's download permissions or try another browser.
- Copy Issues: Ensure your browser allows clipboard access.