The infinite monkey method of creating your perfect workflow for ComfyUI. My first project and it's a work in progress so keep expectations low. As it is now the yaml file can be confusing and a pain to edit, you probably should have some experience with python/yaml and patience.
So what are the advantages of using this over the web-ui? I know a lot of randomizing can be done in the web-ui, but probably not everything that is done here, haven't tried it myself though. One big advantage is that the resulting workflow is a lot cleaner using this script. Another advantage for me at least is better memory management, I can merge 6 checkpoints no problem where as in the web-ui it would have crashed my computer.
-
ComfyScript, install instructions at https://github.com/Chaoses-Ib/ComfyScript
-
WAS Node Suite, install via Comfy-manager or https://github.com/WASasquatch/was-node-suite-comfyui
-
AutomaticCFG, install via Comfy-manager or https://github.com/Extraltodeus/ComfyUI-AutomaticCFG
-
Dynamic prompts, https://github.com/adieyal/dynamicprompts
pip install dynamicprompts pip install "dynamicprompts[magicprompt]"
Put randomize.py and randomize.yml in a subfolder of ComfyScript e.g ComfyUI\custom_nodes\ComfyScript\scripts\Randomizer
Edit the yaml file to make it use your models, use:
python randomizer.py list
to get a list of all models, useful when editing the yaml file. The settings in the yaml file is rather conservative right now to avoid images that have artifacts and are too out there, but that can be changed of course.
python randomizer.py
To run the randomizer. The resulting images can be loaded in ComfyUI web-ui.
- A GUI for the settings would be great, but probably not going to happen.
- Random shape/gradients blending (almost done)
- Random regional prompts using color segmentation, maybe
- Other small things like random VAE and image save options
- Upscaler version of this script
Cherry picked from 200 generated images using prompt "monkey typing on a typewriter"