Nodes Browser
ComfyDeploy: How ComfyUI_LevelPixel works in ComfyUI?
What is ComfyUI_LevelPixel?
Various nodes of the Level Pixel company. Includes convenient advanced nodes for working with images from folders; counting files in a folder; cleaning memory; tag filters. Model Unloader, LLM Unloader (GGUF unloaders), Free memory, Tag Filters, Tag Category Filters, Tag Choice Parser, File counter, Image Loader From Path (with counters), Image Remove Background based on RemBG.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI_LevelPixel
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
Level Pixel nodes for ComfyUI
The purpose of this package is to collect the most necessary and atomic nodes for working with any tasks, adapted for use in cycles and conditions. The package of nodes is aimed at those users who need all the basic things to create multitasking complex workflows using multimodal neural models and software solutions.
Our dream is to see object-oriented programming in ComfyUI. We will try to get closer to it.
In this Level Pixel node pack you will find: LLM nodes, LLaVa and other VLM nodes, Image Remove Background based on RemBG, Tag Category Filter nodes, Model Unloader nodes, Autotagger, File Counter, Image Loader From Path, Load Image, Fast Checker Pattern, Float Slider, Load LoRA Tag, Image Overlay, Conversion nodes.
Contacts:
For cooperation, suggestions and ideas you can write to email: levelpixel.dev@gmail.com
Installation:
Installation Using ComfyUI Manager (recommended):
Install ComfyUI Manager and do steps introduced there to install this repo 'ComfyUI-LevelPixel'. The nodes of the current package will be updated automatically when you click "Update ALL" in ComfyUI Manager.
Alternative installation:
Clone the repository:
git clone https://github.com/LevelPixel/ComfyUI-LevelPixel.git
to your ComfyUI custom_nodes
directory
The script will then automatically install all custom scripts and nodes. It will attempt to use symlinks and junctions to prevent having to copy files and keep them up to date.
- For uninstallation:
- Delete the cloned repo in
custom_nodes
- Ensure
web/extensions/levelpixel
has also been removed
- Delete the cloned repo in
- For manual update:
- Navigate to the cloned repo e.g.
custom_nodes/ComfyUI-LevelPixel
git pull
- Navigate to the cloned repo e.g.
Features
All nodes Level Pixel:
<img width="1171" alt="level-pixel-nodes_2" src="https://github.com/user-attachments/assets/63b42605-1720-4a10-a54d-d2950d3d013f">LLM nodes
A node that generates text using the LLM model with subsequent unloading of the model from memory. Useful in those workflows where there is constant switching between different models and technologies under conditions of insufficient RAM of the video processor.
Our LLM nodes support the latest LLM and CLIP models, and should support future ones (please let us know if any models stop working).
The core functionality is taken from ComfyUI_VLM_nodes and belongs to its authors.
LLaVa nodes
A node that generates text using the LLM model and CLIP by image and prompt with subsequent unloading of the model from memory.
Our LLava nodes support the latest LLM models, and should support future ones (please let us know if any models stop working).
The core functionality is taken from ComfyUI_VLM_nodes and belongs to its authors.
Image Remove Background based on RemBG
A more improved version of rembg nodes for ComfyUI with an extended list of models.
To use on GPU, at least CUDA 12.4 (Pytorch cu124) is required, so I recommend upgrading to newer versions of ComfyUI and Pytorch. If GPU still doesn't work, use for your python:
pip uninstall rembg
pip install rembg[gpu]
The core functionality is taken from RemBG nodes for ComfyUI and belongs to its authors.
Autotagger
An image autotagger that creates highly relevant tags using fast and ultra-accurate, highly specialized models. More diverse models are planned to be added to the list of models in the future.
This node allows it to be used in cycles and conditions (in places where it is not necessary to execute this node according to the specified conditions), since it is not a node with mandatory execution.
The core functionality is taken from ComfyUI-WD14-Tagger and belongs to its authors.
Tag Category Filter nodes
A set of nodes that allow you to filter tags by category. There is an option to remove or leave certain categories of tags, there is a function for defining categories of all tags, there is a function for removing certain tags.
Nodes are very convenient because you can use them to remove unnecessary tags by certain categories, for example, to clean up tags and prepare them for use. You can use this to get certain prompts from an image (for example, if you need a description of only the background from an image - you can get this category of tags if you set the "background" category in Tag Category Keeper).
The core functionality is taken from comfyui_tag_fillter and belongs to its authors.
Load LoRA Tag
LoRA loader from text in the style of Automatic1111 and Forge WebUI. For this version of loader, text output for errors when loading LoRA has been added as widget on node.
The core functionality is taken from comfyui_lora_tag_loader and belongs to its authors.
Model Unloader nodes
A node that automatically unloads all checkpoints from memory. It must be added to a sequential chain of nodes in the workflow. There are three versions of this node: Hard (complete unloading of all checkpoints from memory, except for GGUF (not supported yet)), Middle (the same as Hard, but in the future I plan to add widgets with the ability to select a mode), Soft (without unloading checkpoints from memory, just soft cleaning of memory from garbage).
File Counter
A simple counter of files in a given folder. Convenient when you need to count the number of files in a certain format (for example, for subsequent use in loops or conditions).
Image Loader From Path
Loads images from a specific folder or path. It is convenient because you can specify both absolute paths and local paths (from the input folder), as well as the ability to sequentially receive images into the workflow at each step of the cycle by number. In addition, you can load images in batches with a certain number of loaded images in a batch. And the cherry on the cake - you can get a list of image file names at the output.
Load Image
This is a new image loading node that can retrieve the name of the files you load into your workflow.
Image Overlay
A node that allows you to overlay one image on another with the ability to specify a mask. In this package, Image Overlay has an extended range of specified sizes for the final image, and also has another standard image size.
The core functionality is taken from efficiency-nodes-comfyui and belongs to its authors.
Fast Checker Pattern
Quickly creates a background image with a checkerboard pattern according to the specified parameters for subsequent testing of images with a transparent background. You need to combine the resulting background image with your image with a transparent background in other ComfyUI nodes (at the moment there is no universal node, but perhaps we will make one in the future).
Simple Float Slider
Simple Float Slider is a handy slider from 0.0 to 1.0 to conveniently manage variables in your workflow. The min and max values cannot be changed on the interface (but you can change these values inside Python if you really need to). The pack contains two additional sliders - "Simple Float Slider - Tenths Step" and "Simple Float Slider - Hundredths Step" for working with more precisely defined values in tenths and hundredths (work correctly only if you have not changed the value of "Float widget rounding decimal places" in the ComfyUI settings. If you have changed it, then return the value to 0).
The core functionality is taken from comfyui-mixlab-nodes and belongs to its authors.
Other nodes
There are a few more nodes in this package that have some unusual uses:
- Preview Image Bridge - only output an image to the screen if there is a connection to the output node. Useful in loops and conditions where the execution of this node is not required due to current conditions (variables).
- Show Text Bridge - only output text to the screen if there is a connection to the output node. Useful in loops and conditions where the execution of this node is not required due to current conditions (variables).
- Show Text - output text to the screen with mandatory execution. The node is executed in any case, whether the output is connected or not.
- Text - a simple node for entering multi-line text (similar to Prompt from other node packages).
- String - a simple node for entering single-line text (similar to String from other node packages).
- Conversion nodes - a variety of different nodes that allow you to transform different types of variables into other variables. The big difference from other current node packages is that they cover a larger number of variable types. Conversion nodes: StringToFloat, StringToInt, StringToBool, StringToNumber, StringToCombo, IntToString, FloatToString, BoolToString, FloatToInt, IntToFloat, IntToBool, BoolToInt.
Credits
ComfyUI/ComfyUI - A powerful and modular stable diffusion GUI.
VLM nodes for ComfyUI/ComfyUI_VLM_nodes - Best VLM nodes for ComfyUI.
Tag Filter nodes for ComfyUI/comfyui_tag_fillter - Best tag filter by category nodes for ComfyUI.
Load LoRA Tag node for ComfyUI/comfyui_lora_tag_loader - Thanks to the author for this great node for LoRAs!
Efficiency-nodes-comfyui/efficiency-nodes-comfyui - Thanks for Image Overlay!
RemBG nodes for ComfyUI/rembg-comfyui-node - RemBG nodes for ComfyUI.
RemBG software package/rembg - Best software to remove background for any object in the picture.
License
Copyright (c) 2024-present Level Pixel
Licensed under Apache License