main
ComfyUI Sokes Nodes 🦬
A small node suite for ComfyUI featuring the following nodes:
| Node | Description |
|---|---|
| Current Date & Time | Add the current date and or time to the filename with custom formatting. E.g. YYYY-MM-DDTip: Also supports python formated date & time properties |
| Empty Latent Selector (9 Inputs) | Useful for generating a random latent dimentions based on a fixed set |
| Get Files in Folder with Extension | Gets a list of files with a specific extension from a given folder |
| Global Folder and Project Settings | Set save folder and project name Tip: Used in conjunction with Save File Path and Name node(s) |
| Hex to Color Name | Convert hex to descriptive color names for image-generation prompts |
| Load Random Image | Load a random image(s) and output optional alpha channel and reference image path(s)Tip: You can use wildcards "*" and or "|"'s in the folder path input |
| Random Line | Picks a single line from a multiline text field based on the seed (seed 1 = first line, wraps around). The seed can be randomized or incremented. Outputs the picked line and a count of non-empty lines. |
| Random Number | A user friendly random number generator that supports int, float, and bool |
| Replace Text with RegEx | Useful for using RegEx for text replacement |
| Runpod Serverless | Call a Runpod serverless endpoint (text or image+text). Outputs: response_text, full_response, status, execution_time.Tip: Set RUNPOD_API_KEY env var |
| Save File Path and Name | Save path and filename formatting. Tip: Used in conjunction with Global Folder and Project Settings node |
| Street View Loader | Loads Google Street View images based on address or lat/lon. Outputs an image.Tip: Set GOOGLE_STREET_VIEW_API_KEY env var |
Instalation
To install nodes follow these steps:
Via ComfyUI Manager
- Open ComfyUI Manager
- Open Custom Nodes Manager
- Search for
ComfyUI Sokes Nodes - Click Install
Manually
- Open a terminal or a command line interface.
- Navigate to the ComfyUI/custom_nodes/ directory.
- Run the following command:
git clone https://github.com/m-sokes/ComfyUI-Sokes-Nodes.git - Activate your environment (assuming there is one)
pip install -r requirements.txt- Restart ComfyUI.
What is ComfyUI?
ComfyUI is a node based interface and backend for all things AI related, including image, video, audio, and text generation.
Recommended ComfyUI extension: ComfyUI-Manager
Runpod Serverless node
- Requirements: Set environment variable
RUNPOD_API_KEY. - Note: For vision models, connect an
IMAGEinput; for text-only, leave it unconnected.
Street View Loader node
- Requirements: Set environment variable
GOOGLE_STREET_VIEW_API_KEY.
Why a bison 🦬 emoji?
There's no offical musk ox emoji...I'll reached out to the Unicode Consortium.
Future Node Concepts
- Prompt Styler node with custom categories based on json file(s)
- Palette-to-Prompt Builder
Get Files in Folder By Extension Node
- Inputs:
folder_path(string),file_extension(string). - Outputs:
file_list(list of strings). - Note: The
file_extensioninput can be provided with or without a leading dot (e.g., "mp3" or ".mp3"). The output list of files will be sorted alphabetically.
Hex to Color Name Node
- Inputs:
hex_color(string, comma-separated hex codes),use_css_name(boolean).
Languages
Python
69.2%
JavaScript
30.8%