Nodes Browser
ComfyDeploy: How simple wildcard for ComfyUI works in ComfyUI?
What is simple wildcard for ComfyUI?
These custom nodes provides a feature to insert arbitrary inputs through wildcards in the prompt. Additionally, this tool provides features that help simplify workflows, such as VAELoaderDecoder and SimplerSample.
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
simple wildcard for ComfyUI
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI-node-Lilly
No longer maintained.
i use https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md
install
Go to ./custom_nodes and clone git repo:
cd ./custom_nodes
git clone https://github.com/kuriot/ComfyUI_node_Lilly.git
or https://github.com/lilly1987/ComfyUI_node_Lilly/archive/refs/heads/main.zip install this like
wildcards
ex - wildcard
-
form :
a{b|{c|}|{d|e|}|f|}g____ my -
to :
aeg quality_my, breasts, { |character_dress|dress_my}, shoulder, {high heels,| } {choker,| } {lora:__lora_lst__:__rora_num__,| } NSFW, NSFW_my, { |style_my,}
ex : {3$$a1|{b2|c3|}|d4|{-$$|f|g}|{-2$$h||i}|{1-$$j|k|}}/{$$l|m|}/{0$$n|}
{1|2|3} -> 1 or 2 or 3
{2$$a|b|c} -> a,b or b,c or c,a or bb or ....
{9$$a|b|c} -> {3$$a|b|c} auto fix max count
{1-2$$a|b|c} -> 1~2 random choise
{-2$$a|b|c} -> {0-2$$a|b|c} 0-2
{1-$$a|b|c} -> {0-3$$a|b|c} 1-max
{-$$a|b|c} -> {0-3$$a|b|c} 0-max
ex - wildcard text file use
- ~/a/b.txt
1
- ~/b.txt
2
- b to 1 or 2
- /b to 2
- /a/b to 1
- ?b to 2
- * to 1 or 2
filename pattern matching
- * is matches everything
- ? is matches any single character
- [seq] is matches any character in seq
- [!seq] is matches any character not in seq
- reference https://docs.python.org/3/library/fnmatch.html
run sample
python wildcards.py
python sample
import wildcards as w
# 가져올 파일 목록. get wildcards file
w.card_path=os.path.dirname(__file__)+"\\wildcards\\**\\*.txt"
# 실행 run
print(w.run("a{__b__|{c|}|{__d__|e|}|f|}g____ __my__"))
txt file (supports .txt files in different encodings.)
from
# 주석 comment
a,b
{b|c|__anotherfile__}
__anotherfile__
result
a,b
b
c
__anotherfile__
reload card
call wildcards.card_load() or wildcards.run("{9$$-$$a|b|c}",True)
for ComfyUI
CLIPTextEncodeWildcards
- CLIPTextEncodeWildcards : no seed
- CLIPTextEncodeWildcards : seed
SimpleSampler+modelVAE
- include wildcards
SimpleSampler
- include wildcards
SimpleSamplerVAE
- include wildcards
VAELoaderText , LoraLoaderText , CheckpointLoaderSimpleText
- support file name Wildcard(?*)