ComfyUI Extension: ComfyUI_Fill-Nodes

Authored by filliptm

Created

Updated

322 stars

VFX nodes, Shaders, Utilities, Mask tools, Prompting Tools, and much more!

README

ComfyUI_Fill-Nodes

Image randomizer from directory, Image Captioning saver.

Image randomizer: - A load image directory node that allows you to pull images either in sequence (Per que render) or at random (also per que render)

Video

https://github.com/filliptm/ComfyUI_Fill-Nodes/assets/55672949/8d222109-cda1-40f8-9558-6f8136e07617

It uses a dummy int value that you attach a seed to to enure that it will continue to pull new images from your directory even if the seed is fixed. In order to do this right click the node and turn the run trigger into an input and connect a seed generator of your choice set to random.

interesting uses for this

-loading up a directory and letting it cycle through all your images in order

-connecting this node to something like IPAdapter, while being set to random, allowing you to cycle through styles via images

-batch processing of any kind on large amounts of images

Image Captioning saver: - takes an input image (single or batch) and saves a matching .txt file with the image with desired captioning.

Both files will be over written for continuous experimentation. Required to have an output attached for monitoring. Will overwrite images and text on each run. Built this node to save Lora captions from my Dataset Creator

image

Dimension Display: - Simply shows the dimension of an image in a string for monitoring. No need for INTS.

image

Pixelator: - Custom effect that bit reduces an image and makes it black and white. See examples

current implementation requires you to break batches into a list and back into a batch if you want to use it on video. for VRAM management.

image

Audio Tools (WIP): - Load audio, scans for BPM, crops audio to desired bars and duration

other nodes that are a work in progress take the sliced audio/bpm/fps and hold an image for the duration. There is also a VHS converter node that allows you to load audio into the VHS video combine for audio insertion on the fly!

image

Directory Crawler: - Simple node that loads all images in a directory and any subdirectories as well

image

Raw Code Node: - Simple node that loads Python and allows you to dev inside comfy without having to reload the instance every time

Great for developing ideas and writing custom stuff quickly

image

Glitch: Video and image effect

Slices up your image or video to make a glitching feel

image

Ripple: Video and image effect

Ripples your video or image

image

Pixel Sort: Video and image

CAUTION: This node is a very heavy operation. It takes 5-10 seconds per frame. (WIP)

image

Hexagon: Video an image

This one is really fun. It masks your image and video in slices, but thats not all! Each slice acts as its own video or image when you start rotating and messing with the parameters.

image

Ascii: Video and image

This one allows for a TON of different styles. This node also works with Alt Codes like this: alt+3 = ♥ or alt+219 = █ If you play with the spacing of 219 you can actually get a pixel art effect. ALSO, the last character in the list will always be applied to the highest luminance areas of the image. This is useful because you can do silly things like leave the last character as a blank space, allowing for negative space to be applied to light areas.

SYSTEM vs. LOCAL FONTS

The default font list is populated from the fonts located within the extension/fonts folder. You can add more fonts to this location and when ComfyUI is started it will load those fonts into the list.

You also have the option to use system fonts. You can set the env var:

SET FL_USE_SYSTEM_FONTS=true (default: false)

And the dropdown will populate with all the available system ttf and otf fonts.

<img width="1136" alt="Screenshot 2024-04-29 192646" src="https://github.com/filliptm/ComfyUI_Fill-Nodes/assets/55672949/926287e9-e22a-4e64-9e4f-7fd6e096b558">

Prompt Selector: - simple prompt selector/randomizer

Great for iterating through a lot of prompts or randomizing a list of things you already know works.

<img width="1021" alt="Screenshot 2024-05-15 144223" src="https://github.com/filliptm/ComfyUI_Fill-Nodes/assets/55672949/1e96e75a-e9f4-4056-a55a-0ee1cc316dff">

Random Number Range: - Randomize numbers within a selected range.

Has a lot of uses where you want numbers randomized, but you need them in a specific range for error purposes.

<img width="683" alt="Screenshot 2024-05-15 144242" src="https://github.com/filliptm/ComfyUI_Fill-Nodes/assets/55672949/b2d15b5c-aeda-44d1-b341-075940d83a3f">

Half Tone FX: - Creates a black and white half-tone effect.

Lots of fun with this one. Get interesting effects on both images and video.

<img width="953" alt="Screenshot 2024-05-15 144011" src="https://github.com/filliptm/ComfyUI_Fill-Nodes/assets/55672949/486e0e4f-ad37-4353-8e92-42e85767f882">

Infinite Zoom: - Creates a zooming effect for both images and video.

Screenshot 2024-05-27 222117

Paper Drawn: - Filter effect that makes your images and videos look like pencil drawn.

Screenshot 2024-05-27 222434

Image Notes: - Adds a black bar with a string input to save images with notes.

Screenshot 2024-06-07 223629

Games: - Tetris and Bullet Hell.

https://github.com/user-attachments/assets/37cb820c-18d7-4ce8-8c5a-8351f73ec4e4

SD Ultimate Slice Calculator: - Allows you to select a multiplier, and a slice pattern and automatically calculates dimensions so you don't have to do the math. The image output returns the original images as a pass-through.

image