File size: 3,347 Bytes
baa8e90 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# ComfyUI-node-Lilly
## 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(?*)


### random_sampler_node.py

### VAELoaderDecode.py

|