Extensions/ComfyUI-YCNodes
ComfyUI Extension

ComfyUI-YCNodes

A collection of image processing extension nodes for ComfyUI.

By yichengup·Created 2 years ago·Updated 4 months ago· 47
yichengup/ComfyUI-YCNodes
Nodes57
On cloudLocal install
CategoryYCNode/Image, YCNode/Logic
Stars47
Updated4 months ago

Nodes (57)

AD Image Selector

Rotate through 10 images — randomly, cyclically, or by index

YCNode/Image
Dynamic Threshold

A fixed lookup table that maps an input number to a CFG — know what you're getting

YCNode/Logic
Image Aspect Expand

Pad an image to a target ratio — and get the mask that proves what's original

YCNode/Image
Image Batch Selector

Pull one named image out of a batch — without counting frames

YCNode/Image
Image Blend MaskFit Cover

Drop a foreground onto a background by telling it WHERE — a mask does the locating

YCNode/Image
Image Blend Resize

Place, scale, rotate, and blend one image onto another — with the mask to show it

YCNode/Image
Image IC

Stitch two images into one canvas for in-context LoRA work

YCNode/Image
Image IC Advanced

The in-context combiner with pixel-level control — overlay, XY placement, and the main image on its own

YCNode/Image
Load Image Advanced

Load an image and its alpha mask in one shot — blur and strength built in

YCNode/Image
Image Mirror

Mirror an image — yes, it's really that simple

YCNode/Image
Image Mosaic

Pixelate a face (or anything) without a trip to Photoshop

YCNode/Image
ImageScaleRestore_YC

Scale an image and its mask as one unit — then hand the original size back so you can restore it

YCNode/Image
Image Selector

Pick the keeper out of an 8-image batch — stop upscaling the other seven

YCNode/Image
Image Size Matcher

Pick a latent size that actually matches your image's aspect ratio

YCNode/Image
Image Upscale Tiled

Tile upscale without nuking your VRAM

YCNode/Image
Irregular To EllipseMask

Turn a messy hand-drawn mask into a clean, regular shape

YCNode/Mask
Load Images From Folder YC

Load a whole folder of images — single, batch, random, or stepping through one by one

YCNode/Image
Mask Batch Composite

Staple two mask batches together — despite the name, it's concatenation, not blending

YCNode/Mask/Batch
Mask Batch Copy

Duplicate a mask batch into two outputs — the splitter you didn't know you needed

YCNode/Mask/Batch
Mask Composite YC

Stamp one mask onto another at any position — with multiply, XOR, overlay, and friends

YCNode/Mask
MaskContourFill_YC

Fill in a line-art or outline mask so it becomes a solid region

YCNode/Mask
MaskCropRestore_YC

Stitch a cropped, edited image back onto its background — the 'restore' half of crop-edit-stitch

YCNode/Mask
MaskCrop_YC

Crop exactly around a mask — padding, multiple-of-8 sizing, and a live preview of the box

YCNode/Mask
Filter Mask By Solidity

Keep the solid blobs, drop the fragments — filter masks by how convex they are

YCNode/Mask
Mask From Batch

The mask slicer ComfyUI core forgot

YCNode/Mask/Batch
MaskPreview_YC

Actually look at your mask — a preview node that doesn't fake it with black boxes

YCNode/Mask
Mask Repeat Batch

One mask, a batch of frames — repeat it to match

YCNode/Mask/Batch
Resize Mask To Ratio (YC)

Pad your mask's content out to a clean aspect ratio — no canvas resize involved

YCNode/Mask
Mask Smart Valley Split

Split a joined mask along its waist — where two blobs are fused, cut the valley

YCNode/Mask
Mask Split Filter

Explode a multi-object mask into one mask per object

YCNode/Mask
Mask Top-N Filter

Keep the N biggest blobs in a mask, delete the rest

YCNode/Mask
YC Text Bracket Replace

Strip (parenthetical noise) out of your prompt — full-width brackets included

YCNode/Text
text keyword

Grab everything before (or after) a keyword — for filenames, tags, and prompt surgery

YCNode/Text
YC Constrain Image

Fit any batch of images inside max width/height — and know it's a list coming out

YCNode/Image
Extract Number (YC)

Pull the leading number out of a string — the tiny logic helper that saves a regex node

YCNode/Logic
YC text box combine

Five text boxes, one node — write your prompt in parts and get the join for free

YCNode/Text
YC Image Accumulator

Batch up every generation, then pick the winner after

YCNode/Image
Image Save YC

A save node that actually names your files and writes captions too

YCNode/Image
Yc Image Smart Crop

Crop an image and get the map of where you cropped it

YCNode/Image
Yc Image Smart Pad

Pad a canvas and get a mask of the new border — your outpainting starts here

YCNode/Image
YC Image Tile

Split a big image into overlapping tiles — the cheap ticket to upscaling past VRAM

YCNode/Image
Image Tile merg

One image, repeated into a contact sheet — the node for 'show me all the variants' boards

YCNode/Image
YC Image Untile

Stitch tiles back into a full image — the other half of tiled upscaling

YCNode/Image
Mask Blur (YC)

Feather your masks before they hit the sampler — the difference between a seam and a blend

YCNode/Mask
YC Mask Color Overlay

Paint your mask onto the image — the fastest way to see (and abuse) what you're masking

YCNode/Image
Mask Condition Switch (YC)

Route between two masks based on a text match — a tiny switch for loop workflows

YCNode/Logic
Mask Direction Expand (YC)

Grow a mask in one direction without wrecking the other

YCNode/Mask
Mask Ratio Pad (YC)

Center your subject in a ratio-perfect frame — pad, crop, and hand back every mask you need

YCNode/Mask
Remap Mask Range (YC)

Stretch a dim mask up (or pull a hot mask down) — simple range surgery for masks

YCNode/Mask
Seed List (YC)

Give every iteration of a loop its own seed — deterministic batch variety

YCNode/Logic
YC text box

Just a text box — the node you didn't know you wanted

YCNode/Text
LoRA Selector (YC)

A ten-slot LoRA switcher you can chain — and it only loads the LoRA you picked

YCNode/LoRA
Text Condition Switch (YC)

Pick between two images based on a text match — the loop workflow's cheap branch

YCNode/Logic
YC Text Image Generator

Render text to an image (and its mask) without ever leaving ComfyUI

YCNode/Text
Text Index Switch (YC)

Pick one of 12 prompts with an index — and only compute that one

YCNode/Logic
YC text replace

Find-and-replace for your prompt, up to three swaps deep — dead simple, occasionally perfect

YCNode/Text
Universal Condition Gate (YC)

A pass-through gate for ANY data type, opened by a text condition — including a not-switch

YCNode/Logic
Readme

ComfyUI-YCNodes

A collection of image processing extension nodes for ComfyUI.

Nodes Description

Image mirror, image rotate, image mosaic

ImageSelector

Multiple input images, select by custom name, select the specified image output (Ten fixed inputs)

ImageBatchSelector

Image combination batch, receiving batch image input, and selecting output specified images by custom name. Theoretically, there is no limit to the number of inputs.

Image IC

Basic image combination node with the following features:

  • Horizontal/vertical image concatenation
  • Aspect ratio scaling based on reference edges
  • Flexible position adjustment (top/center/bottom/left/right)
  • Custom background color
  • Mask processing support

Image IC Advanced

Advanced image combination node, adding the following features to the basic version:

  • Overlay mode support
  • Precise XY coordinate control
  • Independent scaling control
  • Additional output options

This two node provides advanced image combination functions, designed for IClora and fill+redux partial redraw migration images. Optimize the combination of two graphs, save the size of Flux iclora and Fill+redux when partial redrawing, and save computing power.

  • image
  • image The basic code of the nodes ic image and ic image advanced comes from https://github.com/lrzjason/Comfyui-In-Context-Lora-Utils Based on it, I optimized two nodes: ic image and ic image advanced. Thanks to the original author @小志Jason

Installation

Clone this repository into ComfyUI's custom_nodes directory:

cd custom_nodes
git clone https://github.com/your-username/Comfyui-yicheng-node.git

关于我 | About me

Bilibili:我的B站主页 QQ号 3260561522 wechat微信: DLONG189one