some wyrde workflows for comfyUI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.7 KiB

# Using Tokens for Random Values
Makes extensive use of [WAS nodes.](https://github.com/WASasquatch/was-node-suite-comfyui)
* Install WAS suit and avoid a mess of red boxes.
<img src="./token random values example.png" align="middle" width="90%">
Tokens are created and then assigned random values from list boxes.
<img src="./token nodes 1.png" align="middle" width="50%">
The tokens names are placed in a text box. The contens of the list box are sent to conditioning.
<img src="./token nodes 3.png" align="middle" width="50%">
Why do this instead of {curly|braces}?
* In comfyui, words in {curly braces | separated by | pipes are | used to | generate} random results. Due to the way comfyui functions, an image's workflow will contain only the items in the prompt which were evaluated for the image. The rest of the random list is dropped.
Why the text concatenate?
* Because of how the backend evaluates the text boxes, it doesn't know the contents of the tokens have changed when parsing the prompts. There's two ways to fix this:
* put `{ | | }` in the prompt. It will evaluate the space each time and run the prompt, thus also evaluating tokens.
* make a new multiline node→random line node→text concatenate (the random result and the prompt) → text parse tokens → text to conditioning
* this is more complex, but preserves the text prompt in the image workflow.
<!-- <img src="some image" align="middle"> -->
## Example Results
* <img src="example-prefix_00008_.png" width="25%" align="middle"><img src="example-prefix_00009_.png" width="25%" align="middle">
* <img src="example-prefix_00010_.png" width="25%" align="middle"><img src="example-prefix_00011_.png" width="25%" align="middle">
* <img src="example-prefix_00012_.png" width="25%" align="middle"><img src="example-prefix_00013_.png" width="25%" align="middle">
* <img src="example-prefix_00014_.png" width="25%" align="middle"><img src="example-prefix_00015_.png" width="25%" align="middle">
<!-- <img src="" width="10%" align="middle"> -->
## resources
<!-- things people might want to duplicate results -->
Model
* https://huggingface.co/Vsukiyaki/SukiyakiMix-v1.0
Lora
* https://civitai.com/models/21458/anime-kisses
* https://civitai.com/models/21670/astrobabes
* https://civitai.com/models/25803/battle-angels
Embeds
* EasyNegative https://civitai.com/models/7808/easynegative
* bad-hands-5 https://huggingface.co/yesyeahvh/bad-hands-5/tree/main
Custom Nodes
* [WAS Suite](https://github.com/WASasquatch/was-node-suite-comfyui)
* [omar QoL](https://github.com/omar92/ComfyUI-QualityOfLifeSuit_Omar92)
<!-- will likely forget to doublecheck this -->
<p align="right"><a href="..">[back]</a><a href="../../../.."> [home]</a></p>