* Support anonymous wildcards.

This commit is contained in:
Antonio Cordero Balcazar
2024-10-19 16:05:21 +02:00
parent e9092b877c
commit c87c24924e
4 changed files with 91 additions and 29 deletions
+7
View File
@@ -822,6 +822,13 @@ class TestPromptPostProcessor(unittest.TestCase):
ppp=self.__nocupppp,
)
def test_wc_anonymouswildcard_yaml(self): # yaml anonymous wildcard
self.__process(
PromptPair("the choices are: __yaml/nesteddict__", ""),
PromptPair("the choices are: six", ""),
ppp=self.__nocupppp,
)
# ComfyUI tests
def test_comfyui_attention(self): # attention conversion
+11
View File
@@ -52,3 +52,14 @@ yaml:
even_more_nested: # this would be __yaml/more_nested/even_more_nested__
- one
- two
nesteddict:
- one
- two
- # anonymous wildcard without options
- three
- four
- 3 if _is_sdxl: # anonymous wildcard with options
- five
- six
- { weight: 1, text: [seven, eight] } # anonymous wildcard used in a choice in object format