simple wildcard for ComfyUI
세부 정보
파일 다운로드
모델 설명
ComfyUI-node-Lilly
설치
./custom_nodes로 이동하여 git 저장소를 클론하세요:
cd ./custom_nodes
git clone https://github.com/kuriot/ComfyUI_node_Lilly.git
또는 https://github.com/lilly1987/ComfyUI_node_Lilly/archive/refs/heads/main.zip 에서 다운로드하여 설치하세요.
와일드카드
예 - 와일드카드 사용법
형식 :
a{b|{c|}|{d|e|}|f|}g____ my결과 :
aeg quality_my, breasts, { |character_dress|dress_my}, shoulder, {high heels,| } {choker,| } {lora:__lora_lst__:__rora_num__,| } NSFW, NSFW_my, { |style_my,}
예: {3$$a1|{b2|c3|}|d4|{-$$|f|g}|{-2$$h||i}|{1-$$j|k|}}/{$$l|m|}/{0$$n|}
{1|2|3} -> 1 또는 2 또는 3
{2$$a|b|c} -> a,b 또는 b,c 또는 c,a 또는 bb 또는 ....
{9$$a|b|c} -> {3$$a|b|c} 자동 최대 개수 조정
{1-2$$a|b|c} -> 1~2 사이 랜덤 선택
{-2$$a|b|c} -> {0-2$$a|b|c} 0-2
{1-$$a|b|c} -> {0-3$$a|b|c} 1-최대
{-$$a|b|c} -> {0-3$$a|b|c} 0-최대
예 - 와일드카드 텍스트 파일 사용
- ~/a/b.txt
1
- ~/b.txt
2
b -> 1 또는 2
/b -> 2
/a/b -> 1
?b -> 2
* -> 1 또는 2
파일명 패턴 매칭
* 는 모든 내용과 매칭
? 는 단일 문자와 매칭
[seq] 는 seq 내의 any 문자와 매칭
[!seq] 는 seq 외의 any 문자와 매칭
샘플 실행
python wildcards.py
파이썬 샘플
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 파일)
from
# 주석 comment
a,b
{b|c|__anotherfile__}
__anotherfile__
result
a,b
b
c
__anotherfile__
카드 리로드
wildcards.card_load() 호출 또는 wildcards.run("{9$$-$$a|b|c}", True) 호출
ComfyUI 용
CLIPTextEncodeWildcards
CLIPTextEncodeWildcards : 시드 없음
CLIPTextEncodeWildcards : 시드 있음
SimpleSampler+modelVAE
- 와일드카드 포함
SimpleSampler
- 와일드카드 포함
SimpleSamplerVAE
- 와일드카드 포함
VAELoaderText , LoraLoaderText , CheckpointLoaderSimpleText
- 파일명 와일드카드(?*) 지원









