Nodes Browser
ComfyDeploy: How Wild Divide works in ComfyUI?
What is Wild Divide?
This extension provides the ability to build prompts using wildcards for each region of a split image.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
Wild Divide
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
WildDivide
ComfyUI custom node that specifies wildcard prompts for multiple regions
The above workflow is docs/example.json.
Wildcard Encode (divided)
It has the same syntax as Impact Pack Wildcards. In addition, it supports the following syntax
Child selection weight
If you write a number at the beginning, that number becomes the weight to select that line.
hair:
- 4, blonde
- 5, black
- 1, red
For example, writing __hair__
will select blonde with a 4/(4+5+1) = 4/10 probability.
If a number is omitted, it is assumed to be 1.
Functionally, this is the same as writing as below in Impact Pack Wildcards.
hair:
- { 4::blonde|5::black|1::red }
Child selection pattern
Starting a line with / selects the line that matches the pattern. For example, if you write
outfit:
- /skirt/ stockings
- /pants/ socks
- bare feet
If a skirt was present at the prompt, stockings would be selected, and if pants were present, socks would be selected. If there was no matching pattern, bare feet would be selected.
Split region
You can use [SEP]
to divide an image into different regions. Each [SEP]
divides the image into n equal parts.
scene: blonde hair [SEP] black hair
For example, if written as above, blonde hair
would be applied to the left half of the image, black hair
would be applied to the right half of the image.
Comfy Divide
- Connect
positives
topositives
inWildcard Encode (divided)
.