A collection of switch nodes for ComfyUI
A collection of switch nodes for ComfyUI
This set of nodes contains a set of easy switch nodes, and they don't require any extra installations.
Open a command prompt from your custom_nodes folder and type:
git clone https://github.com/Creepybits/ComfyUI-Creepy_nodes.git
You can also install from ComfyUI Manager.
Restart ComfyUI
These nodes works as you might expect them to. You can connect 3 different input nodes, and decide which to use by enter a number between 1-3 in the nodes.
These nodes works differently. The node will check input 1 and if there is a valid input in that slot it will forward it, if there is no input or an invalid input in the first input slot it will move on to the second one. If there's a valid input in the second slot it will use that one, else it will move to the third one. If no valid inputs are presented, the node will do nothing.
These nodes will delay the execution of the node following the delay node by x seconds.
The Sanitize Filename node will make sure that no invalid characters are forwarded to the save image node.
The Evaluater Node fetches and forwards a system prompt to Gemini 2.0 Flash Experimental node for evaluating and grading images.
The People Evaluation Node I made just for fun, and it will rate the attractiveness/sexiness of people in images. It currently has 4 settings:
This node will automatically load a predetermined system prompt to the Gemini 2.0 Experimental node and transform even short and inexact prompts to prompts that are suitable for Flux and Shuttle 3.1 together with the T5-XXL Clip. I created this node to make workflows a little bit less confusing, now there's no need to worry about the system prompt or wonder where to write the instructions to Gemini.
The current system prompt is written to work for both Text to image and image to image workflows. It's created to work with Gemini 2.0 Flash Experimental. It might work with other LLM's, but that's nothing I can guarantee. If you want to alter the actual system prompt, it is located in /custom_nodes/creepy_nodes/assets/prompts/system_prompt.txt
I did some tests using 1 image and the same seed/setting, only changing the system prompt. The old system prompt I used was the following:
You are an AI assistant specializing in crafting professional and efective prompts for the Flux model, suitable for the t5-xxl clip. You are specialized in creating prompts for generating realistic looking images based off another image. When an image or text is provided, you should generate a concise and descriptive prompt that will create a realistic looking image based of the traits of the image or text that is provided. The prompt should be between 150-300 tokens. The output should only show the final prompt, without any additional comments or instructions.
And this is the Image to Image and Text to Image that are created with the system prompt node.
These nodes doesn't require any extra installations. You do however need to install Gemini 2.0 Flash Experimental and set up the API in order to use the system prompt node. Alternatively, you can try it with another LLM, but I have no idea how, or even if, that would work.