ComfyUI Extension: KJNodes for ComfyUI
Various quality of life -nodes for ComfyUI, mostly just visual stuff to improve usability.
Custom Nodes (178)
- Get Latents From Batch Indexed
- Image Grab PIL
- Save Image With Alpha
- Dummy Latent Out
- (Down)load CLIPSeg
- Mask Or Image To Weight
- ReferenceOnlySimple3
- Image Batch Multi
- Image Grid Composite 3x3
- Image Normalize -1 to 1
- Reverse Image Batch
- Image Concatenate
- Round Mask
- Conditioning Multi Combine
- Bbox To Int
- String Constant Multiline
- Sleep
- Insert Images To Batch Indexed
- ImagePass
- Merge Image Channels
- Preview Animation
- Shuffle Image Batch
- Batch Crop From Mask
- Batch Crop From Mask Advanced
- Bbox Visualize
- INT Constant
- Float Constant
- String Constant
- Color To Mask
- Create Gradient Mask
- Create Fade Mask
- Create Fluid Mask
- Create Shape Mask
- Get Mask Size & Count
- Remap Mask Range
- Separate Masks
- Image Add Multi
- Get Images From Batch Indexed
- Get Image Size & Count
- ImageAndMaskPreview
- ImageBatchRepeatInterleaving
- Flip Sigmas Adjusted
- Image Batch Test Pattern
- Image Grid Composite 2x2
- Image Grid To Batch
- Image Pad For Outpaint Masked
- Inject Noise To Latent
- Image Pad For Outpaint Target Size
- Image Prep For ICLora
- ConditioningSetMaskAndCombine
- Insert Latent To Index
- Remap Image Range
- Replace Images In Batch
- Batch Uncrop
- Split Bboxes
- NormalizeLatent
- Batch Uncrop Advanced
- String to Float List
- Save String KJ
- Dummy Out
- Camera Pose Visualizer
- Join String Multi
- Something To String
- VRAM Debug
- Style Model Apply Advanced
- NormalizedAmplitudeToMask
- Interpolate Coords
- ConditioningSetMaskAndCombine3
- Stable Zero123 Batch Schedule
- Superprompt
- Screencap mss
- Flux Block Lora Select
- Hunyuan Video Block Lora Select
- CheckpointLoaderKJ
- TorchCompileModelHyVideo
- DrawInstanceDiffusionTracking
- Patch Sage Attention KJ
- VAELoader KJ
- ConditioningSetMaskAndCombine4
- BOOL Constant
- Cross Fade Images Multi
- Float To Sigmas
- Image Crop By Mask
- Image Crop By Mask And Resize
- Apply RifleXRoPE HunuyanVideo
- Image Crop By Mask Batch
- Image Noise Augmentation
- Empty Latent Image Custom Presets
- Model Save KJ
- ConditioningSetMaskAndCombine5
- CondPassThrough
- GetMaskSize
- Create Text Mask
- Create Audio Mask
- Split Image Channels
- Image Concatenate Multi
- GLIGENTextBoxApplyBatch
- Create Gradient From Coords
- Create Fade Mask Advanced
- Create Voronoi Mask
- Grow Mask With Blur
- Offset Mask
- Resize Mask
- Add Label
- Color Match
- Create Magic Mask
- Mask Batch Multi
- ImagePad KJ
- Image Tensor List
- Gradient To Float
- Float To Mask
- Image Concatenate From Batch
- Image Uncrop By Mask
- Resize Image
- Image Upscale With Model Batched
- Load & Resize Image
- Load Images From Folder (KJ)
- Save Image KJ
- Transition Images Multi
- Transition Images In Batch
- FilterZeroMasksAndCorrespondingImages
- Insert Image Batch By Indexes
- Generate Noise
- Custom Sigmas
- Widget To String
- OffsetMaskByNormalizedAmplitude
- ImageTransformByNormalizedAmplitude
- Create Shape Image On Path
- Create Text On Path
- Cut And Drag On Path
- Weight Schedule Convert
- Plot Coordinates
- Points Editor
- Sound Reactive
- SV3D Batch Schedule
- Intrinsic Lora Sampling
- CheckpointPerturbWeights
- Webcam Capture CV2
- Differential Diffusion Advanced
- Custom ControlNet Weights Flux From List
- TorchCompileModelFluxAdvanced
- TorchCompileVAE
- TorchCompileControlNet
- Patch Model Patcher Order
- TorchCompileLTXModel
- TorchCompileCosmosModel
- TorchCompileModelWanVideo
- Scheduled CFG Guidance
- Apply RifleXRoPE WanVideo
- WanVideo Tea Cache (native)
- WanVideo Enhance A Video (native)
- Timer Node KJ
- CreateInstanceDiffusionTracking
- AppendInstanceDiffusionTracking
- Scale Batch Prompt Schedule
- Append Strings To List
- Join Strings
- Empty Latent Image Presets
- ModelPass
- Set Shakker Labs Union ControlNet Type
- NormalizedAmplitudeToFloatList
- AudioConcatenate
- Spline Editor
- Create Shape Mask On Path
- Sigmas To Float
- Stability API SD3
- LoadResAdapterNormalization
- Weight Schedule Extend
- GLIGENTextBoxApplyBatchCoords
- Flux Block Lora Loader
- Diffusion Model Loader KJ
- Leapfusion Hunyuan I2V Patcher
- Batch CLIPSeg
- HunyuanVideo Encode Keyframes To Cond
- Cross Fade Images
- Get Image or Mask Range From Batch
- Get Latent Range From Batch
- Fast Preview
README
KJNodes for ComfyUI
Various quality of life and masking related -nodes and scripts made by combining functionality of existing nodes for ComfyUI.
I know I'm bad at documentation, especially this project that has grown from random practice nodes to... too many lines in one file. I have however started to add descriptions to the nodes themselves, there's a small ? you can click for info what the node does. This is still work in progress, like everything else.
Installation
- Clone this repo into
custom_nodes
folder. - Install dependencies:
pip install -r requirements.txt
or if you use the portable install, run this in ComfyUI_windows_portable -folder:
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-KJNodes\requirements.txt
Javascript
browserstatus.js
Sets the favicon to green circle when not processing anything, sets it to red when processing and shows progress percentage and the length of your queue. Default off, needs to be enabled from options, overrides Custom-Scripts favicon when enabled.
Nodes:
Set/Get
Javascript nodes to set and get constants to reduce unnecessary lines. Takes in and returns anything, purely visual nodes. On the right click menu of these nodes there's now an options to visualize the paths, as well as option to jump to the corresponding node on the other end.
Known limitations:
- Will not work with any node that dynamically sets it's outpute, such as reroute or other Set/Get node
- Will not work when directly connected to a bypassed node
- Other possible conflicts with javascript based nodes.
ColorToMask
RBG color value to mask, works with batches and AnimateDiff.
ConditioningMultiCombine
Combine any number of conditions, saves space.
ConditioningSetMaskAndCombine
Mask and combine two sets of conditions, saves space.
GrowMaskWithBlur
Grows or shrinks (with negative values) mask, option to invert input, returns mask and inverted mask. Additionally Blurs the mask, this is a slow operation especially with big batches.
RoundMask
WidgetToString
Outputs the value of a widget on any node as a string
Enable node id display from Manager menu, to get the ID of the node you want to read a widget from:
Use the node id of the target node, and add the name of the widget to read from
Recreating or reloading the target node will change its id, and the WidgetToString node will no longer be able to find it until you update the node id value with the new id.