librosa opencv-python requests imageio_ffmpeg timm omegaconf plyfile huggingface_hub pydub #-The following may already be present: #easyocr #pydub-optional #-Already included in the Comfyui ontology dependency package #psutil #numpy #pillow
ComfyUI-WJNodes
Node list:
Load_Image_From_Path : Load image from pathSave_Image_To_Path : Save image by overwriting the pathSave_Image_Out : Save image to output and output the pathLoad_Image_Adv : Load image with mask inversion and path output, supports multiple formats (jpg, png, jpeg, webp, tiff, bmp, gif, ico, svg)image_url_download : Download images from URLs with configurable timeout, supports batch processinginvert_channel_adv : Invert/separate image channels, RGBA to mask batch, replace channels, any channel to RGBAListMerger : Merge multiple image lists into a single batchBilateral_Filter : Image/Mask Bilateral Filtering: Can repair layered distortion caused by color or brightness scalingimage_math : Image mathematical operations with expression supportimage_math_value : Image and value mathematical calculationsRobust_Imager_Merge : Advanced image merging with robust handlingimage_scale_pixel_v2 : Advanced image scaling by total pixels with alignment, cropping, and bbox filling optionsimage_scale_pixel_option : Generate advanced options for image_scale_pixel_v2 nodeadv_crop : Advanced cropping: can quickly crop/expand/move/flip images, can output background masks and custom fillingAccurate_mask_clipping : Accurately find mask boundaries and optionally crop to those boundariescrop_by_bboxs : Crop images using bounding box datamask_crop_square : Square cropping based on mask datamask_crop_option_SmoothCrop : Smooth cropping with advanced optionsmask_crop_option_Basic : Basic mask cropping optionscrop_data_edit : Edit and modify crop datacrop_data_CoordinateSmooth : Coordinate smoothing for crop datamask_select_mask : Mask selection within a mask batch (intersection represents selection)coords_select_mask : Coordinate selection of masks, used to assist SAM2 video keying (under development)mask_line_mapping : Mask line mapping, can automatically calculate maximum and minimum values when input is -1 or 256mask_and_mask_math : Mask to mask operations, supports addition/subtraction/intersection/multiplication operations, \Adjustable cv2 and torch modes, if cv2 is not installed, automatically switches to torch
any_math : Any data calculation, supports pure data input such as images/values/arrays, and outputs images or any data typeany_math_v2 : Support arbitrary data calculation with more inputs and 3 sets of outputsSelect_Images_Batch : Batch selection and recombination of images/masks with index supportSelect_Batch_v2 : Advanced batch selection with loop, limit, and processing optionsSelectBatch_paragraph : Paragraph-based batch selectionBatch_Average : Average cutting of image/mask batches with division and completion optionsload_color_config : Load color configuration for color block to mask, supports ADE20K preprocessing color datacolor_segmentation : Color block to mask conversion, supports ADE20K and SAM2 data preprocessingcolor_segmentation_v2 : Enhanced color block to mask v2, uses keys in color configuration to select masksfilter_DensePose_color : Filter DensePose color dataload_ColorName_config : Load color name configurationColor_check_Name : Check color names and filter color dataColor_Data_Break : Break down color data into componentsVideo_fade : Two video segments can choose two ways to fade in and outSaveMP4 : Save single video as MP4 formatSaveMP4_batch : Save video batch as MP4 formatVideo_MaskBasedSplit : Split video based on mask dataDetecting_videos_mask : Detect masks in video sequencesCutting_video : Cut video sequences based on segment dataVideo_OverlappingSeparation_test : Test overlapping separation in videosMask_Detection : Mask detection: detect whether there is a mask, detect whether it is all hard edges, \detect whether the mask is pure white/pure black/pure gray and output values 0-255
get_image_data : Obtain image size data from images/masks (batch/width/height/channels/shape)get_image_ratio : Obtain image aspect ratio data (max/min dimensions, ratio float/string, ratio classification)Any_Pipe : Group any data, known bug: nested grouping will splitDetermine_Type : Display data type and determine data characteristicsload_torchvision_model : Load pre-trained torchvision models (ResNet, DenseNet, etc.) for feature extractionRun_torchvision_model : Calculate similarity between images using loaded models and various distance metricsGraphics_Detection_Reference : Test GPU computing capabilities including hardware info, precision tests, memory bandwidth, \operator performance, and AI benchmarks with RTX 4090 comparison
WAS_Mask_Fill_Region_batch : Optimize WAS plugin’s WAS_Mask_Fill_Region (mask cleanup) to support batches\SegmDetectorCombined_batch : Optimize impact-pack plugin’s SegmDetectorCombined (segm detection mask) to support batches\bbox_restore_mask : Add impact-pack plugin’s seg decomposition, restore cropped images through cropping data (SEG editing)Sam2AutoSegmentation_data : Add Sam2AutoSegmentation (kijai) node’s color list/coordinate output, used to assist SAM2 video keying\run_yolo_bboxs : Run YOLO detection and return bounding boxesrun_yolo_bboxs_v2 : Enhanced YOLO detection with additional featuresload_EasyOCR_model : Load OCR models separately for faster operation and model cachingApplyEasyOCR_batch : Modify OCR recognition nodes to support batch processing\ComfyUI_Path_Out : Output ComfyUI common paths (root, output/input, plugins, models, cache, Python environment)Str_Append : Add prefix/suffix to strings (reference KJNode)del_file : Detect whether file or path exists, whether to delete file, operation requires input signal, deletion requires write permissionSplit_Path : Path slicing, input path, output: disk symbol/path/file/extension + detect whether it is a fileFolder_Operations_CH : Folder operations with Chinese supportThese models are automatically downloaded to ComfyUI’s models directory and shared with other plugins:
models/
├── torchvision/ # Torchvision models for similarity detection
│ └── resnet/
│ ├── resnet50-11ad3fa6.pth
│ └── ...
├── EasyOCR/ # OCR models
│ ├── craft_mlt_25k.pth
│ ├── latin_g2.pth
│ └── zh_sim_g2.pth
└── sam2/ # SAM2 models (if using SAM2 features)
├── sam2_hiera_small.safetensors
└── ...
cd ComfyUI/custom_nodes
git clone https://github.com/807502278/ComfyUI-WJNodes.git
cd ComfyUI-WJNodes
pip install -r requirements.txt