ComfyUI / Python - prompt iterators - compose Python inside the grid - create custom gates

Published: 10 June 2024
on channel: Bin Bash
221
like

#comfyui #stablediffusion #python

Python Gates - ComfyUI nodes to iterate compound lists and perform Python operations.

At around 7:25 you'll notice that I forgot the + sign, this will result in an error that I was about to chase as a bug and then realized my error.

Description:

In this video I'll example a few of the nodes I made for ComfyUI.

Clip Text Encode - additional inputs and outputs
Green Box - a prompt iterator, not wild-cards
Python - a node that allows you to execute python code right inside ComfyUI.

The work-flow takes a couple of prompt nodes, pipes them through a couple more, concatenates them, tests using Python and ultimately adds to the prompt if the condition is met. The Python node, in this instance, is effectively used as a gate.

Note that this Python node is incredibly versatile and, I believe, can give newer people an easily accessible interface to Python, for learning.

/ D

I separated the Python node from my main install, so if you need that then it's a different repository and can be found here:
https://shinsplat.com/comfy/python

The remaining nodes:
https://shinsplat.com/comfy/

Come chatter on Discord:
https://shinsplat.com/sd/


On this page of the site you can watch the video online ComfyUI / Python - prompt iterators - compose Python inside the grid - create custom gates with a duration of hours minute second in good quality, which was uploaded by the user Bin Bash 10 June 2024, share the link with friends and acquaintances, this video has already been watched 221 times on youtube and it was liked by like viewers. Enjoy your viewing!