The nodes detached from [ComfyUI Layer Style](https://github.com/chflame163/ComfyUI_LayerStyle) are mainly those with complex requirements for dependency packages.
709
stars
109
commits
Python
primary language
Apr 8, 2026
updated
The nodes detached from ComfyUI Layer Style are mainly those with complex requirements for dependency packages.
Some JSON workflow files in the workflow directory, That's examples of how these nodes can be used in ComfyUI.
(Taking ComfyUI official portable package and Aki ComfyUI package as examples, please modify the dependency environment directory for other ComfyUI environments)
Recommended use ComfyUI Manager for installation.
Or open the cmd window in the plugin directory of ComfyUI, like ComfyUI\custom_nodes,type
git clone https://github.com/chflame163/ComfyUI_LayerStyle_Advance.git
Or download the zip file and extracted, copy the resulting folder to ComfyUI\custom_nodes
for ComfyUI official portable package, double-click the install_requirements.bat in the plugin directory, for Aki ComfyUI package double-click on the install_requirements_aki.bat in the plugin directory, and wait for the installation to complete.
Or install dependency packages, open the cmd window in the ComfyUI_LayerStyle plugin directory like
ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance and enter the following command,
for ComfyUI official portable package, type:
..\..\..\python_embeded\python.exe -s -m pip install .\whl\docopt-0.6.2-py2.py3-none-any.whl
..\..\..\python_embeded\python.exe -s -m pip install .\whl\hydra_core-1.3.2-py3-none-any.whl
..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
for Aki ComfyUI package, type:
..\..\python\python.exe -s -m pip install .\whl\docopt-0.6.2-py2.py3-none-any.whl
..\..\python\python.exe -s -m pip install .\whl\hydra_core-1.3.2-py3-none-any.whl
..\..\python\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
Chinese domestic users from BaiduNetdisk or QuarkNetdisk , other users from huggingface.co/chflame163/ComfyUI_LayerStyle
download all files and copy them to ComfyUI\models folder. This link provides all the model files required for this plugin.
Or download the model file according to the instructions of each node.
Some nodes named "Ultra" will use the vitmatte model, download the vitmatte model and copy to ComfyUI/models/vitmatte folder, it is also included in the download link above.
If the node cannot load properly or there are errors during use, please check the error message in the ComfyUI terminal window. The following are common errors and their solutions.
This warning message indicates that the ini file cannot be found and does not affect usage. If you do not want to see these warnings, please modify all *.ini.example files in the plugin directory to *.ini.
This error is that the psd_tools were not installed correctly.
Solution:
../../../python_embeded/python.exe -s -m pip install psd_tools
If error occurs during the installation of psd_tool, such as ModuleNotFoundError: No module named 'docopt' , please download docopt's whl and manual install it.
execute the following command in terminal window:
../../../python_embeded/python.exe -s -m pip install path/docopt-0.6.2-py2.py3-none-any.whl the path is path name of whl file.This error is caused by incorrect version of the opencv-contrib-python package,or this package is overwriteen by other opencv packages.
The reason for the problem is the same as above.
This error is caused by the low version of transformers package.
This error is caused by the low version of protobuf package.
repair_dependency.bat (for Official ComfyUI Protable) or repair_dependency_aki.bat (for ComfyUI-aki-v1.x) in the plugin folder to automatically fix them.Solution:
Reinstall the onnxruntime dependency package.
Check the network environment. If you cannot access huggingface.co normally in China, try modifying the huggingface_hub package to force the use hf_mirror.
Find constants.py in the directory of huggingface_hub package (usually Lib/site packages/huggingface_hub in the virtual environment path),
Add a line after import os
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
This error is caused by the mask area being too large or too small when using the PyMatting method to handle the mask edges.
Solution:
When this error has occurred, please check the network environment.
If this error occurs when executing JoyCaption2 node and it has been confirmed that the model file has been placed in the correct directory,
please check the transformers dependency package version is at least 4.43.2 or higher.
If transformers version is higher than or equal to 4.45.0, and also have error message:
Error loading models: De️️scriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
......
Please try downgrading the protobuf dependency package to 3.20.3, or set environment variables: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python.
**If the dependency package error after updating, please double clicking repair_dependency.bat (for Official ComfyUI Protable) or repair_dependency_aki.bat (for ComfyUI-aki-v1.x) in the plugin folder to reinstall the dependency packages.
modeling_florence2.py and configuration_florence2.py from the florence2_models folder, copy and overwrite them to the model folder in ComfyUI/models/florence2.api_key.ini directory in the plugin directory.zhipu_api_key=.ComfyUI/models/smol folder.Randomly collage the input images into one large image.

Node Options:

Inference the prompts based on the image. this node is repackage of the ComfyUI_VLM_nodes's UForm-Gen2 Qwen Node, thanks to the original author.
Download model files from huggingface or Baidu Netdisk to ComfyUI/models/LLavacheckpoints/files_for_uform_gen2_qwen folder.

Node Options:
Use the Llama 3.2 vision model for local inference. Can be used to generate prompt words. part of the code for this node comes from ComfyUI-PixtralLlamaMolmoVision, thank you to the original author.
To use this node, the transformers need upgraded to 4.45.0 or higher.
Download models from BaiduNetdisk or huggingface/SeanScripts , and copy to ComfyUI/models/LLM.

Node Options:

Use the JoyCaption-alpha-two model for local inference. Can be used to generate prompt words. this node is https://huggingface.co/John6666/joy-caption-alpha-two-cli-mod Implementation in ComfyUI, thank you to the original author.
Download models form BaiduNetdisk and BaiduNetdisk ,
or huggingface/Orenguteng and huggingface/unsloth , then copy to ComfyUI/models/LLM,
Download models from BaiduNetdisk or huggingface/google , and copy to ComfyUI/models/clip,
Donwload the cgrkzexw-599808 folder from BaiduNetdisk or huggingface/John6666 , and copy to ComfyUI/models/Joy_caption。

Node Options:

The node of JoyCaption2 separate model loading and inference, and when multiple JoyCaption2 nodes are used, the model can be shared to improve efficiency.
Node Options:

JoyCaption2's model loading node, used in conjunction with JoyCaption2Split.
Node Options:

The extra_options parameter node of JoyCaption2.
Node Options:

refer_character_name.Generate prompt words using the JoyCaption Beta One model. This node is https://huggingface.co/fancyfeast/llama-joycaption-beta-one-hf-llava Implementation in ComfyUI.
The first time using the node, the model will be automatically downloaded to the ComfyUI/models/LLavacheckpoints/llama-joycaption-beta-one-hf-llava folder.
You can also download llama-joycaption-beta-one-hf-llava folder from BaiduNetdisk or Quark or huggingface/fancyfeast/llama-joycaption-beta-one-hf-llava and copy to ComfyUI/models/LLavacheckpoints

Node Options:

Load JoyCaption Beta One Model node.The model loading node of JoyCaption Beta One, used in conjunction with JoyCaption Beta One.
Node Options:

fancyfeast/llama-joycaption-beta-one-hf-llava model is available for selection currently.The extra_options parameter node of JoyCaption Beta One.
Node Options:

refer_character_name.Use Microsoft Phi 3.5 text and visual models for local inference. Can be used to generate prompt words, process prompt words, or infer prompt words from images. Running this model requires at least 16GB of video memory.
Download model files from BaiduNetdisk or huggingface.co/microsoft/Phi-3.5-vision-instruct and huggingface.co/microsoft/Phi-3.5-mini-instruct and copy to ComfyUI\models\LLM folder.

Node Options:

Use Google Gemini API for text and visual models for local inference. Can be used to generate prompt words, process prompt words, or infer prompt words from images.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node options:

On the basis of Gemini nodes, switch to using the new google-genai dependency package, which supports the latest gemini-2.0-flash, gemini-2.0-flash-lite, and gemini-2.5-pro-exp-03-25 models.

Add on the original node:

Implement multimodal image editing using the gemini-2.0-flash-exp-image-generation model.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node Options:

Use the DeepSeek API for text inference, supporting multi node context concatenation.
Apply for an API key for free at https://platform.deepseek.com/api_keys, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after deepseek_api_key= and save it.

Node Options:

Outputs:
On the basis of the DeepSeekAPI node, DeepSeek API supporting AliYun and VolcEngine will be added, and these two Chinese cloud service providers will provide more stable API services.
On VolcEngine Applying for the VolcEngine API key, there is a free quota of 500 thousand tokens. If you fill in my invitation code 27RVS1QN when applying, you will receive an additional 3.75 million R1 model free tokens.
On AliYun Apply for AliYun API key.
Fill in the obtained API key into the fields volcengine_api_key and aliyun_api_key of api_key.ini. This file is located in the root directory of the plugin, with a default name of api_key.ini.example. Edit it and change the file extension to '.ini'.
Add Options:

Use the Zhipu API for text inference, supporting multi node context concatenation.
Apply for an API key for free at https://bigmodel.cn/usercenter/proj-mgmt/apikeys, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after zhipu_api_key= and save it.

Node Options:

Outputs:
Use the Zhipu API for visual inference.
Apply for an API key for free at https://bigmodel.cn/usercenter/proj-mgmt/apikeys, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after zhipu_api_key= and save it.
Node Options:

Output:
Use the SmolLM2 model for local inference.
Download model files from BaiduNetdisk or huggingface,
find the SmolLM2-135M-Instruct, SmolLM2-360M-Instruct, SmolLM2-1.7B-Instruct folders, download at least one of them, copy to ComfyUI/models/smol folder.

Node Options:

Load SmolLM2 model.
Node Options:

Using SmolVLM lightweight visual models for local inference.
Donwload the SmolVLM-Instruct folder from BaiduNetdisk or huggingface and copy to ComfyUI/models/smol folder.

Node Options:

Load SmolVLM model.
Node Options:

Edit images using the Jimeng API.
Please create an account on Volcano Engine, apply for API AccessKeyID and SecretAccessKey, and fill them in api_key. ini. This file is located in the root directory of the plugin and its default name is api_key.ini.example. When using this file for the first time, you need to change the file extension to '.ini'. Open with text editing software and fill in the corresponding values after volcengine_SecretAccessKey= and volcengine_SecretAccessKey=.

Node Options:

UserPrompt preset for generating SD text to image prompt words.
Node options:

UserCompt preset for generating SD text to image prompt words based on input content.
Node options:

UserPrompt preset used to replace a keyword in text with different content. This is not only a simple replacement, but also a logical sorting of the text based on the context of the prompt words to achieve the rationality of the output content.
Node options:

Inference the prompts based on the image. it can replace key word for the prompt. This node currently uses Google Gemini API as the backend service. Please ensure that the network environment can use Gemini normally.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node options:

Enter simple prompt words, output polished prompt words, and support inputting images as references, and support Chinese input. This node currently uses Google Gemini API as the backend service. Please ensure that the network environment can use Gemini normally.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node options:

Use the Florence 2 model to infer prompt words. The code for this node section is fromyiwangsimple/florence_dw, thanks to the original author.
*When using it for the first time, the model will be automatically downloaded. You can also download the model file from BaiduNetdisk to ComfyUI/models/florence2 folder.

Node Options:

Obtain the main color or average color from the image and output RGB values.

Node options:

Output type:
V2 upgrade of GetColorTone. You can specify the dominant or average color to get the body or background.

The following changes have been made on the basis of GetColorTong:

Output:

Rating bulk pictures and outputting top-ranked pictures. it used [ImageReward] (https://github.com/THUDM/ImageReward) for image scoring, thanks to the original authors.

Node options:
Outputs:

Erase objects from the image based on the mask. this node is repackage of IOPaint, powered by state-of-the-art AI models, thanks to the original author.
It is have LaMa, LDM, ZITS,MAT, FcF, Manga models and the SPREAD method to erase. Please refer to the original link for the introduction of each model.
Please download the model files from lama models(BaiduNetdisk) or lama models(Google Drive) to ComfyUI/models/lama folder.
Node optons:


Automatically cutout and crop the image according to the mask. it can specify the background color, aspect ratio, and size for output image. this node is designed to generate the image materials for training models.
*Please refer to the model installation methods for SegmentAnythingUltra and RemBgUltra.
Node options:

Output: cropped_image: Crop and replace the background image. box_preview: Crop position preview. cropped_mask: Cropped mask.
The V2 upgrad version of ImageAutoCrop, it has made the following changes based on the previous version:

fill_background. When set to False, the background will not be processed and any parts beyond the frame will not be included in the output range.aspect_ratio adds the original option.scale_by to specify the length of the edge.Automatically crop the image to the specified size. You can input a mask to preserve the specified area of the mask. This node is designed to generate image materials for training the model.
Node Options:

Outputs: cropped_image: The cropped image. box_preview: Preview of cutting position.

Enhanced save image node. You can customize the directory where the picture is saved, add a timestamp to the file name, select the save format, set the image compression rate, set whether to save the workflow, and optionally add invisible watermarks to the picture. (Add information in a way that is invisible to the naked eye, and use the ShowBlindWaterMark node to decode the watermark). Optionally output the json file of the workflow.
Node Options:

png and jpg. Note that only png format is supported for RGBA mode pictures.ShowBlindWaterMark node can decode watermarks. Note that pictures with watermarks are recommended to be saved in png format, and lower-quality jpg format will cause watermark information to be lost.* Enter%date for the current date (YY-mm-dd) and %time for the current time (HH-MM-SS). You can enter / for subdirectories. For example, %date/name_%tiem will output the image to the YY-mm-dd folder, with name_HH-MM-SS as the file name prefix.
Added custom file name and dpi options on the SaveImagePlus node.
NodeOptions:

* Enter%date for the current date (YY-mm-dd) and %time for the current time (HH-MM-SS). You can enter / for subdirectories. For example, %date/name_%tiem will output the image to the YY-mm-dd folder, with name_HH-MM-SS as the file name prefix.

Add an invisible watermark to a picture. Add the watermark image in a way that is invisible to the naked eye, and use the ShowBlindWaterMark node to decode the watermark.
Node Options:

Decoding the invisible watermark added to the AddBlindWaterMark and SaveImagePlus nodes.

Generate a square QR code picture.
Node Options:

Decoding the QR code.
Node Options:



Load the PSD format file and export the layers.
Note that this node requires the installation of the psd_tools dependency package, If error occurs during the installation of psd_tool, such as ModuleNotFoundError: No module named 'docopt' , please download docopt's whl and manual install it.
Node Options:

ComfyUI/input, where previously loaded psd images can be selected.Outputs: flat_image: PSD preview image. layer_iamge: Find the layer output. all_layers: Batch images containing all layers.

Encapsulate the four nodes of Negative Condition in SD3 into a separate node.
Node Options:

It is the implementation of PramaLLC/BEN project in ComfyUI. Thank you to the original author.
Download all files from huggingface or BaiduNetdisk and copy to ComfyUI/models/BEN folder.

Node Options:

Load the BEN model.
Node Options:

Improvements to ComfyUI Segment Anything, thanks to the original author.
*Please refer to the installation of ComfyUI Segment Anything to install the model. If ComfyUI Segment Anything has been correctly installed, you can skip this step.
ComfyUI/models/bert-base-uncased folder.ComfyUI/models/grounding-dino folder.ComfyUI/models/sams folder.
*Or download them from GroundingDino models on BaiduNetdisk and SAM models on BaiduNetdisk .


Node options:

The V2 upgraded version of SegmentAnythingUltra has added the VITMatte edge processing method.(Note: Images larger than 2K in size using this method will consume huge memory)

On the basis of SegmentAnythingUltra, the following changes have been made:

Separate model loading from inference nodes to avoid duplicate model loading when using multiple SAM nodes.

Node Options:
Same as SegmentAnythingUltra, removed sam_comodel and ground-dino_comodel, changed them to be obtained from node input.
Load SegmentAnything models.

This node is modified from kijai/ComfyUI-segment-anything-2. Thank to kijai for making significant contributions to the Comfyui community.
SAM2 Ultra node only support single image. If you need to process multiple images, please first convert the image batch to image list.
*Download models from BaiduNetdisk or huggingface.co/Kijai/sam2-safetensors and copy to ComfyUI/models/sam2 folder.

Node Options:

On the basis of SAM2 Ultra nodes, changing the SAM2 model to an external input saves resources when using multiple nodes.
Modified node options:

Load SAM2 Model node.Load SAM2 model.
Node Options:

SAM2 Video Ultra node support processing multiple frames of images or video sequences. Please define the recognition box data in the first frame of the sequence to ensure correct recognition.
https://github.com/user-attachments/assets/4726b8bf-9b98-4630-8f54-cb7ed7a3d2c5
https://github.com/user-attachments/assets/b2a45c96-4be1-4470-8ceb-addaf301b0cb
Node Options:

bboxes and first_frame_mask must have least one input. If first_frame_mask inputed, bbboxes will be ignored.bboxes and first_frame_mask must have least one input. If first_frame_mask inputed, bbboxes will be ignored.Use Gemini API for object detection.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node Options:

On the basis of the ObjectDetectorGemini node, change to using a new google-genai dependency package that supports the latest gemini-2.5-pro-exp-03-25 model.
Node Options:

Same as ObjectDetectorGemini
Use the Florence2 model to identify objects in images and output recognition box data.
*Download models from BaiduNetdisk and copy to ComfyUI/models/florence2 folder.
Node Options:

Due to potential installation issues with dependency packages, this node has been obsoleted. To use, please manually install the following dependency packages:
pip install inference-cli>=0.13.0
pip install inference-gpu[yolo-world]>=0.13.0
Use the YOLO-World model to identify objects in images and output recognition box data.
*Download models from BaiduNetdisk or GoogleDrive and copy to ComfyUI/models/yolo-world folder.
Node Options:

Use the YOLO-8 model to identify objects in images and output recognition box data.
*Download models from GoogleDrive or BaiduNetdisk and copy to ComfyUI/models/yolo folder.
Node Options:

Use mask as recognition box data. All areas surrounded by white areas on the mask will be recognized as an object. Multiple enclosed areas will be identified separately.
Node Options:

Merge recognition box data.
Node Options:

Draw the recognition BBoxes data output by the Object Detector node as a mask.

Node Options:

Add rounded rectangle drawing to the DrawBBoxMask node.

Add Options:

This node is implementation of EVF-SAM in ComfyUI.
*Please download model files from BaiduNetdisk or huggingface/EVF-SAM2, huggingface/EVF-SAM to ComfyUI/models/EVF-SAM folder(save the models in their respective subdirectories).

Node Options:

Using the segmentation function of the Florence2 model, while also having ultra-high edge details.
The code for this node section is from spacepxl/ComfyUI-Florence-2, thanks to the original author.
*Download the model files from BaiduNetdisk to ComfyUI/models/florence2 folder.

Node Options:

Florence2 model loader. *When using it for the first time, the model will be automatically downloaded.

At present, there are base, base-ft, large, large-ft, DocVQA, SD3-Captioner and base-PromptGen models to choose from.
Using the BiRefNet model to remove background has better recognition ability and ultra-high edge details. The code for the model part of this node comes from Viper's ComfyUI-BiRefNet,thanks to the original author.
*From https://huggingface.co/ViperYX/BiRefNet or BaiduNetdisk download the BiRefNet-ep480.pth,pvt_v2_b2.pth,pvt_v2_b5.pth,swin_base_patch4_window12_384_22kto1k.pth, swin_large_patch4_window12_384_22kto1k.pth 5 files to ComfyUI/models/BiRefNet folder.

Node options:

This node supports the use of the latest BiRefNet model.
*Download model file from BaiduNetdisk or GoogleDrive named BiRefNet-general-epoch_244.pth to ComfyUI/Models/BiRefNet/pth folder. You can also download more BiRefNet models and put them here.

Node Options:

Load the BiRefNet model.
Node Options:

CoomfyUI/models/BiRefNet/pth folder for selection.This node is a PR submitted by jimlee2048 and supports loading RMBG-2.0 models.
Download model files from huggingface or 百度网盘 and copy to ComfyUI/models/BiRefNet/RMBG-2.0 folder.
Node Options:

BiRefNet-General and RMBG-2.0.Using the transparent-background model to remove background has better recognition ability and speed, while also having ultra-high edge details.
*From googledrive or BaiduNetdisk download all files to ComfyUI/models/transparent-background folder.

Node Options:

Generate masks for portrait's face, hair, body skin, clothing, or accessories. Compared to the previous A Person Mask Generator node, this node has ultra-high edge details.
The model code for this node comes from a-person-mask-generator, edge processing code from ComfyUI-Image-Filters,thanks to the original author.
*Download model files from BaiduNetdisk to ComfyUI/models/mediapipe folder.

Node options:

The V2 upgraded version of PersonMaskUltra has added the VITMatte edge processing method.(Note: Images larger than 2K in size using this method will consume huge memory)
On the basis of PersonMaskUltra, the following changes have been made:

Used for generate human body parts masks, it is based on the warrper of metal3d/ComfyUI_Human_Parts, thank the original author.
This node has added ultra-fine edge processing based on the original work. Download model file from BaiduNetdisk or huggingface and copy to ComfyUI\models\onnx\human-parts folder.

Node Options:

Use the YoloV8 model to detect faces, hand box areas, or character segmentation. Supports the output of the selected number of channels.
Download the model files from GoogleDrive or BaiduNetdisk to ComfyUI/models/yolo folder.

Node Options:

seg name can output segmented masks, otherwise they can only output box masks.all is to merge all mask outputs. The selected number is how many masks to output, sorted by recognition confidence to merge the output.Outputs:
Use the Mediapipe model to detect facial features, segment left and right eyebrows, eyes, lips, and tooth.
*Download the model files from BaiduNetdisk to ComfyUI/models/mediapipe folder.

Node Options:

Calculate the differences between two images and output them as mask.

Node options:

1 The layer_image, layer_mask and the background_image(if have input), These three items must be of the same size.
2 The mask not a mandatory input item. the alpha channel of the image is used by default. If the image input does not include an alpha channel, the entire image's alpha channel will be automatically created. if have masks input simultaneously, the alpha channel will be overwrite by the mask.
3 The Blend Mode include normal, multply, screen, add, subtract, difference, darker, color_burn, color_dodge, linear_burn, linear_dodge, overlay, soft_light, hard_light, vivid_light, pin_light, linear_light, and hard_mix. all of 19 blend modes in total.

*Preview of the blend mode
3 The BlendModeV2 include normal, dissolve, darken, multiply, color burn, linear burn, darker color, lighten, screen, color dodge, linear dodge(add), lighter color, dodge, overlay, soft light, hard light, vivid light, linear light, pin light, hard mix, difference, exclusion, subtract, divide, hue, saturation, color, luminosity, grain extract, grain merge all of 30 blend modes in total.
Part of the code for BlendMode V2 is from Virtuoso Nodes for ComfyUI. Thanks to the original authors.

*Preview of the Blend Mode V2
4 The RGB color described by hexadecimal RGB format, like '#FA3D86'.
5 The layer_image and layer_mask must be of the same size.
LayerStyle Advance nodes follows the MIT license, Some of its functional code comes from other open-source projects. Thanks to the original author. If used for commercial purposes, please refer to the original project license to authorization agreement.
Python
97.7%
Jupyter Notebook
1.9%
The nodes detached from [ComfyUI Layer Style](https://github.com/chflame163/ComfyUI_LayerStyle) are mainly those with complex requirements for dependency packages.
709
stars
109
commits
Python
primary language
Apr 8, 2026
updated
The nodes detached from ComfyUI Layer Style are mainly those with complex requirements for dependency packages.
Some JSON workflow files in the workflow directory, That's examples of how these nodes can be used in ComfyUI.
(Taking ComfyUI official portable package and Aki ComfyUI package as examples, please modify the dependency environment directory for other ComfyUI environments)
Recommended use ComfyUI Manager for installation.
Or open the cmd window in the plugin directory of ComfyUI, like ComfyUI\custom_nodes,type
git clone https://github.com/chflame163/ComfyUI_LayerStyle_Advance.git
Or download the zip file and extracted, copy the resulting folder to ComfyUI\custom_nodes
for ComfyUI official portable package, double-click the install_requirements.bat in the plugin directory, for Aki ComfyUI package double-click on the install_requirements_aki.bat in the plugin directory, and wait for the installation to complete.
Or install dependency packages, open the cmd window in the ComfyUI_LayerStyle plugin directory like
ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance and enter the following command,
for ComfyUI official portable package, type:
..\..\..\python_embeded\python.exe -s -m pip install .\whl\docopt-0.6.2-py2.py3-none-any.whl
..\..\..\python_embeded\python.exe -s -m pip install .\whl\hydra_core-1.3.2-py3-none-any.whl
..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
for Aki ComfyUI package, type:
..\..\python\python.exe -s -m pip install .\whl\docopt-0.6.2-py2.py3-none-any.whl
..\..\python\python.exe -s -m pip install .\whl\hydra_core-1.3.2-py3-none-any.whl
..\..\python\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
Chinese domestic users from BaiduNetdisk or QuarkNetdisk , other users from huggingface.co/chflame163/ComfyUI_LayerStyle
download all files and copy them to ComfyUI\models folder. This link provides all the model files required for this plugin.
Or download the model file according to the instructions of each node.
Some nodes named "Ultra" will use the vitmatte model, download the vitmatte model and copy to ComfyUI/models/vitmatte folder, it is also included in the download link above.
If the node cannot load properly or there are errors during use, please check the error message in the ComfyUI terminal window. The following are common errors and their solutions.
This warning message indicates that the ini file cannot be found and does not affect usage. If you do not want to see these warnings, please modify all *.ini.example files in the plugin directory to *.ini.
This error is that the psd_tools were not installed correctly.
Solution:
../../../python_embeded/python.exe -s -m pip install psd_tools
If error occurs during the installation of psd_tool, such as ModuleNotFoundError: No module named 'docopt' , please download docopt's whl and manual install it.
execute the following command in terminal window:
../../../python_embeded/python.exe -s -m pip install path/docopt-0.6.2-py2.py3-none-any.whl the path is path name of whl file.This error is caused by incorrect version of the opencv-contrib-python package,or this package is overwriteen by other opencv packages.
The reason for the problem is the same as above.
This error is caused by the low version of transformers package.
This error is caused by the low version of protobuf package.
repair_dependency.bat (for Official ComfyUI Protable) or repair_dependency_aki.bat (for ComfyUI-aki-v1.x) in the plugin folder to automatically fix them.Solution:
Reinstall the onnxruntime dependency package.
Check the network environment. If you cannot access huggingface.co normally in China, try modifying the huggingface_hub package to force the use hf_mirror.
Find constants.py in the directory of huggingface_hub package (usually Lib/site packages/huggingface_hub in the virtual environment path),
Add a line after import os
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
This error is caused by the mask area being too large or too small when using the PyMatting method to handle the mask edges.
Solution:
When this error has occurred, please check the network environment.
If this error occurs when executing JoyCaption2 node and it has been confirmed that the model file has been placed in the correct directory,
please check the transformers dependency package version is at least 4.43.2 or higher.
If transformers version is higher than or equal to 4.45.0, and also have error message:
Error loading models: De️️scriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
......
Please try downgrading the protobuf dependency package to 3.20.3, or set environment variables: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python.
**If the dependency package error after updating, please double clicking repair_dependency.bat (for Official ComfyUI Protable) or repair_dependency_aki.bat (for ComfyUI-aki-v1.x) in the plugin folder to reinstall the dependency packages.
modeling_florence2.py and configuration_florence2.py from the florence2_models folder, copy and overwrite them to the model folder in ComfyUI/models/florence2.api_key.ini directory in the plugin directory.zhipu_api_key=.ComfyUI/models/smol folder.Randomly collage the input images into one large image.

Node Options:

Inference the prompts based on the image. this node is repackage of the ComfyUI_VLM_nodes's UForm-Gen2 Qwen Node, thanks to the original author.
Download model files from huggingface or Baidu Netdisk to ComfyUI/models/LLavacheckpoints/files_for_uform_gen2_qwen folder.

Node Options:
Use the Llama 3.2 vision model for local inference. Can be used to generate prompt words. part of the code for this node comes from ComfyUI-PixtralLlamaMolmoVision, thank you to the original author.
To use this node, the transformers need upgraded to 4.45.0 or higher.
Download models from BaiduNetdisk or huggingface/SeanScripts , and copy to ComfyUI/models/LLM.

Node Options:

Use the JoyCaption-alpha-two model for local inference. Can be used to generate prompt words. this node is https://huggingface.co/John6666/joy-caption-alpha-two-cli-mod Implementation in ComfyUI, thank you to the original author.
Download models form BaiduNetdisk and BaiduNetdisk ,
or huggingface/Orenguteng and huggingface/unsloth , then copy to ComfyUI/models/LLM,
Download models from BaiduNetdisk or huggingface/google , and copy to ComfyUI/models/clip,
Donwload the cgrkzexw-599808 folder from BaiduNetdisk or huggingface/John6666 , and copy to ComfyUI/models/Joy_caption。

Node Options:

The node of JoyCaption2 separate model loading and inference, and when multiple JoyCaption2 nodes are used, the model can be shared to improve efficiency.
Node Options:

JoyCaption2's model loading node, used in conjunction with JoyCaption2Split.
Node Options:

The extra_options parameter node of JoyCaption2.
Node Options:

refer_character_name.Generate prompt words using the JoyCaption Beta One model. This node is https://huggingface.co/fancyfeast/llama-joycaption-beta-one-hf-llava Implementation in ComfyUI.
The first time using the node, the model will be automatically downloaded to the ComfyUI/models/LLavacheckpoints/llama-joycaption-beta-one-hf-llava folder.
You can also download llama-joycaption-beta-one-hf-llava folder from BaiduNetdisk or Quark or huggingface/fancyfeast/llama-joycaption-beta-one-hf-llava and copy to ComfyUI/models/LLavacheckpoints

Node Options:

Load JoyCaption Beta One Model node.The model loading node of JoyCaption Beta One, used in conjunction with JoyCaption Beta One.
Node Options:

fancyfeast/llama-joycaption-beta-one-hf-llava model is available for selection currently.The extra_options parameter node of JoyCaption Beta One.
Node Options:

refer_character_name.Use Microsoft Phi 3.5 text and visual models for local inference. Can be used to generate prompt words, process prompt words, or infer prompt words from images. Running this model requires at least 16GB of video memory.
Download model files from BaiduNetdisk or huggingface.co/microsoft/Phi-3.5-vision-instruct and huggingface.co/microsoft/Phi-3.5-mini-instruct and copy to ComfyUI\models\LLM folder.

Node Options:

Use Google Gemini API for text and visual models for local inference. Can be used to generate prompt words, process prompt words, or infer prompt words from images.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node options:

On the basis of Gemini nodes, switch to using the new google-genai dependency package, which supports the latest gemini-2.0-flash, gemini-2.0-flash-lite, and gemini-2.5-pro-exp-03-25 models.

Add on the original node:

Implement multimodal image editing using the gemini-2.0-flash-exp-image-generation model.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node Options:

Use the DeepSeek API for text inference, supporting multi node context concatenation.
Apply for an API key for free at https://platform.deepseek.com/api_keys, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after deepseek_api_key= and save it.

Node Options:

Outputs:
On the basis of the DeepSeekAPI node, DeepSeek API supporting AliYun and VolcEngine will be added, and these two Chinese cloud service providers will provide more stable API services.
On VolcEngine Applying for the VolcEngine API key, there is a free quota of 500 thousand tokens. If you fill in my invitation code 27RVS1QN when applying, you will receive an additional 3.75 million R1 model free tokens.
On AliYun Apply for AliYun API key.
Fill in the obtained API key into the fields volcengine_api_key and aliyun_api_key of api_key.ini. This file is located in the root directory of the plugin, with a default name of api_key.ini.example. Edit it and change the file extension to '.ini'.
Add Options:

Use the Zhipu API for text inference, supporting multi node context concatenation.
Apply for an API key for free at https://bigmodel.cn/usercenter/proj-mgmt/apikeys, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after zhipu_api_key= and save it.

Node Options:

Outputs:
Use the Zhipu API for visual inference.
Apply for an API key for free at https://bigmodel.cn/usercenter/proj-mgmt/apikeys, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after zhipu_api_key= and save it.
Node Options:

Output:
Use the SmolLM2 model for local inference.
Download model files from BaiduNetdisk or huggingface,
find the SmolLM2-135M-Instruct, SmolLM2-360M-Instruct, SmolLM2-1.7B-Instruct folders, download at least one of them, copy to ComfyUI/models/smol folder.

Node Options:

Load SmolLM2 model.
Node Options:

Using SmolVLM lightweight visual models for local inference.
Donwload the SmolVLM-Instruct folder from BaiduNetdisk or huggingface and copy to ComfyUI/models/smol folder.

Node Options:

Load SmolVLM model.
Node Options:

Edit images using the Jimeng API.
Please create an account on Volcano Engine, apply for API AccessKeyID and SecretAccessKey, and fill them in api_key. ini. This file is located in the root directory of the plugin and its default name is api_key.ini.example. When using this file for the first time, you need to change the file extension to '.ini'. Open with text editing software and fill in the corresponding values after volcengine_SecretAccessKey= and volcengine_SecretAccessKey=.

Node Options:

UserPrompt preset for generating SD text to image prompt words.
Node options:

UserCompt preset for generating SD text to image prompt words based on input content.
Node options:

UserPrompt preset used to replace a keyword in text with different content. This is not only a simple replacement, but also a logical sorting of the text based on the context of the prompt words to achieve the rationality of the output content.
Node options:

Inference the prompts based on the image. it can replace key word for the prompt. This node currently uses Google Gemini API as the backend service. Please ensure that the network environment can use Gemini normally.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node options:

Enter simple prompt words, output polished prompt words, and support inputting images as references, and support Chinese input. This node currently uses Google Gemini API as the backend service. Please ensure that the network environment can use Gemini normally.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node options:

Use the Florence 2 model to infer prompt words. The code for this node section is fromyiwangsimple/florence_dw, thanks to the original author.
*When using it for the first time, the model will be automatically downloaded. You can also download the model file from BaiduNetdisk to ComfyUI/models/florence2 folder.

Node Options:

Obtain the main color or average color from the image and output RGB values.

Node options:

Output type:
V2 upgrade of GetColorTone. You can specify the dominant or average color to get the body or background.

The following changes have been made on the basis of GetColorTong:

Output:

Rating bulk pictures and outputting top-ranked pictures. it used [ImageReward] (https://github.com/THUDM/ImageReward) for image scoring, thanks to the original authors.

Node options:
Outputs:

Erase objects from the image based on the mask. this node is repackage of IOPaint, powered by state-of-the-art AI models, thanks to the original author.
It is have LaMa, LDM, ZITS,MAT, FcF, Manga models and the SPREAD method to erase. Please refer to the original link for the introduction of each model.
Please download the model files from lama models(BaiduNetdisk) or lama models(Google Drive) to ComfyUI/models/lama folder.
Node optons:


Automatically cutout and crop the image according to the mask. it can specify the background color, aspect ratio, and size for output image. this node is designed to generate the image materials for training models.
*Please refer to the model installation methods for SegmentAnythingUltra and RemBgUltra.
Node options:

Output: cropped_image: Crop and replace the background image. box_preview: Crop position preview. cropped_mask: Cropped mask.
The V2 upgrad version of ImageAutoCrop, it has made the following changes based on the previous version:

fill_background. When set to False, the background will not be processed and any parts beyond the frame will not be included in the output range.aspect_ratio adds the original option.scale_by to specify the length of the edge.Automatically crop the image to the specified size. You can input a mask to preserve the specified area of the mask. This node is designed to generate image materials for training the model.
Node Options:

Outputs: cropped_image: The cropped image. box_preview: Preview of cutting position.

Enhanced save image node. You can customize the directory where the picture is saved, add a timestamp to the file name, select the save format, set the image compression rate, set whether to save the workflow, and optionally add invisible watermarks to the picture. (Add information in a way that is invisible to the naked eye, and use the ShowBlindWaterMark node to decode the watermark). Optionally output the json file of the workflow.
Node Options:

png and jpg. Note that only png format is supported for RGBA mode pictures.ShowBlindWaterMark node can decode watermarks. Note that pictures with watermarks are recommended to be saved in png format, and lower-quality jpg format will cause watermark information to be lost.* Enter%date for the current date (YY-mm-dd) and %time for the current time (HH-MM-SS). You can enter / for subdirectories. For example, %date/name_%tiem will output the image to the YY-mm-dd folder, with name_HH-MM-SS as the file name prefix.
Added custom file name and dpi options on the SaveImagePlus node.
NodeOptions:

* Enter%date for the current date (YY-mm-dd) and %time for the current time (HH-MM-SS). You can enter / for subdirectories. For example, %date/name_%tiem will output the image to the YY-mm-dd folder, with name_HH-MM-SS as the file name prefix.

Add an invisible watermark to a picture. Add the watermark image in a way that is invisible to the naked eye, and use the ShowBlindWaterMark node to decode the watermark.
Node Options:

Decoding the invisible watermark added to the AddBlindWaterMark and SaveImagePlus nodes.

Generate a square QR code picture.
Node Options:

Decoding the QR code.
Node Options:



Load the PSD format file and export the layers.
Note that this node requires the installation of the psd_tools dependency package, If error occurs during the installation of psd_tool, such as ModuleNotFoundError: No module named 'docopt' , please download docopt's whl and manual install it.
Node Options:

ComfyUI/input, where previously loaded psd images can be selected.Outputs: flat_image: PSD preview image. layer_iamge: Find the layer output. all_layers: Batch images containing all layers.

Encapsulate the four nodes of Negative Condition in SD3 into a separate node.
Node Options:

It is the implementation of PramaLLC/BEN project in ComfyUI. Thank you to the original author.
Download all files from huggingface or BaiduNetdisk and copy to ComfyUI/models/BEN folder.

Node Options:

Load the BEN model.
Node Options:

Improvements to ComfyUI Segment Anything, thanks to the original author.
*Please refer to the installation of ComfyUI Segment Anything to install the model. If ComfyUI Segment Anything has been correctly installed, you can skip this step.
ComfyUI/models/bert-base-uncased folder.ComfyUI/models/grounding-dino folder.ComfyUI/models/sams folder.
*Or download them from GroundingDino models on BaiduNetdisk and SAM models on BaiduNetdisk .


Node options:

The V2 upgraded version of SegmentAnythingUltra has added the VITMatte edge processing method.(Note: Images larger than 2K in size using this method will consume huge memory)

On the basis of SegmentAnythingUltra, the following changes have been made:

Separate model loading from inference nodes to avoid duplicate model loading when using multiple SAM nodes.

Node Options:
Same as SegmentAnythingUltra, removed sam_comodel and ground-dino_comodel, changed them to be obtained from node input.
Load SegmentAnything models.

This node is modified from kijai/ComfyUI-segment-anything-2. Thank to kijai for making significant contributions to the Comfyui community.
SAM2 Ultra node only support single image. If you need to process multiple images, please first convert the image batch to image list.
*Download models from BaiduNetdisk or huggingface.co/Kijai/sam2-safetensors and copy to ComfyUI/models/sam2 folder.

Node Options:

On the basis of SAM2 Ultra nodes, changing the SAM2 model to an external input saves resources when using multiple nodes.
Modified node options:

Load SAM2 Model node.Load SAM2 model.
Node Options:

SAM2 Video Ultra node support processing multiple frames of images or video sequences. Please define the recognition box data in the first frame of the sequence to ensure correct recognition.
https://github.com/user-attachments/assets/4726b8bf-9b98-4630-8f54-cb7ed7a3d2c5
https://github.com/user-attachments/assets/b2a45c96-4be1-4470-8ceb-addaf301b0cb
Node Options:

bboxes and first_frame_mask must have least one input. If first_frame_mask inputed, bbboxes will be ignored.bboxes and first_frame_mask must have least one input. If first_frame_mask inputed, bbboxes will be ignored.Use Gemini API for object detection.
Apply for your API key on Google AI Studio, And fill it in api_key.ini, this file is located in the root directory of the plug-in, and the default name is api_key.ini.example. to use this file for the first time, you need to change the file suffix to .ini. Open it using text editing software, fill in your API key after google_api_key= and save it.

Node Options:

On the basis of the ObjectDetectorGemini node, change to using a new google-genai dependency package that supports the latest gemini-2.5-pro-exp-03-25 model.
Node Options:

Same as ObjectDetectorGemini
Use the Florence2 model to identify objects in images and output recognition box data.
*Download models from BaiduNetdisk and copy to ComfyUI/models/florence2 folder.
Node Options:

Due to potential installation issues with dependency packages, this node has been obsoleted. To use, please manually install the following dependency packages:
pip install inference-cli>=0.13.0
pip install inference-gpu[yolo-world]>=0.13.0
Use the YOLO-World model to identify objects in images and output recognition box data.
*Download models from BaiduNetdisk or GoogleDrive and copy to ComfyUI/models/yolo-world folder.
Node Options:

Use the YOLO-8 model to identify objects in images and output recognition box data.
*Download models from GoogleDrive or BaiduNetdisk and copy to ComfyUI/models/yolo folder.
Node Options:

Use mask as recognition box data. All areas surrounded by white areas on the mask will be recognized as an object. Multiple enclosed areas will be identified separately.
Node Options:

Merge recognition box data.
Node Options:

Draw the recognition BBoxes data output by the Object Detector node as a mask.

Node Options:

Add rounded rectangle drawing to the DrawBBoxMask node.

Add Options:

This node is implementation of EVF-SAM in ComfyUI.
*Please download model files from BaiduNetdisk or huggingface/EVF-SAM2, huggingface/EVF-SAM to ComfyUI/models/EVF-SAM folder(save the models in their respective subdirectories).

Node Options:

Using the segmentation function of the Florence2 model, while also having ultra-high edge details.
The code for this node section is from spacepxl/ComfyUI-Florence-2, thanks to the original author.
*Download the model files from BaiduNetdisk to ComfyUI/models/florence2 folder.

Node Options:

Florence2 model loader. *When using it for the first time, the model will be automatically downloaded.

At present, there are base, base-ft, large, large-ft, DocVQA, SD3-Captioner and base-PromptGen models to choose from.
Using the BiRefNet model to remove background has better recognition ability and ultra-high edge details. The code for the model part of this node comes from Viper's ComfyUI-BiRefNet,thanks to the original author.
*From https://huggingface.co/ViperYX/BiRefNet or BaiduNetdisk download the BiRefNet-ep480.pth,pvt_v2_b2.pth,pvt_v2_b5.pth,swin_base_patch4_window12_384_22kto1k.pth, swin_large_patch4_window12_384_22kto1k.pth 5 files to ComfyUI/models/BiRefNet folder.

Node options:

This node supports the use of the latest BiRefNet model.
*Download model file from BaiduNetdisk or GoogleDrive named BiRefNet-general-epoch_244.pth to ComfyUI/Models/BiRefNet/pth folder. You can also download more BiRefNet models and put them here.

Node Options:

Load the BiRefNet model.
Node Options:

CoomfyUI/models/BiRefNet/pth folder for selection.This node is a PR submitted by jimlee2048 and supports loading RMBG-2.0 models.
Download model files from huggingface or 百度网盘 and copy to ComfyUI/models/BiRefNet/RMBG-2.0 folder.
Node Options:

BiRefNet-General and RMBG-2.0.Using the transparent-background model to remove background has better recognition ability and speed, while also having ultra-high edge details.
*From googledrive or BaiduNetdisk download all files to ComfyUI/models/transparent-background folder.

Node Options:

Generate masks for portrait's face, hair, body skin, clothing, or accessories. Compared to the previous A Person Mask Generator node, this node has ultra-high edge details.
The model code for this node comes from a-person-mask-generator, edge processing code from ComfyUI-Image-Filters,thanks to the original author.
*Download model files from BaiduNetdisk to ComfyUI/models/mediapipe folder.

Node options:

The V2 upgraded version of PersonMaskUltra has added the VITMatte edge processing method.(Note: Images larger than 2K in size using this method will consume huge memory)
On the basis of PersonMaskUltra, the following changes have been made:

Used for generate human body parts masks, it is based on the warrper of metal3d/ComfyUI_Human_Parts, thank the original author.
This node has added ultra-fine edge processing based on the original work. Download model file from BaiduNetdisk or huggingface and copy to ComfyUI\models\onnx\human-parts folder.

Node Options:

Use the YoloV8 model to detect faces, hand box areas, or character segmentation. Supports the output of the selected number of channels.
Download the model files from GoogleDrive or BaiduNetdisk to ComfyUI/models/yolo folder.

Node Options:

seg name can output segmented masks, otherwise they can only output box masks.all is to merge all mask outputs. The selected number is how many masks to output, sorted by recognition confidence to merge the output.Outputs:
Use the Mediapipe model to detect facial features, segment left and right eyebrows, eyes, lips, and tooth.
*Download the model files from BaiduNetdisk to ComfyUI/models/mediapipe folder.

Node Options:

Calculate the differences between two images and output them as mask.

Node options:

1 The layer_image, layer_mask and the background_image(if have input), These three items must be of the same size.
2 The mask not a mandatory input item. the alpha channel of the image is used by default. If the image input does not include an alpha channel, the entire image's alpha channel will be automatically created. if have masks input simultaneously, the alpha channel will be overwrite by the mask.
3 The Blend Mode include normal, multply, screen, add, subtract, difference, darker, color_burn, color_dodge, linear_burn, linear_dodge, overlay, soft_light, hard_light, vivid_light, pin_light, linear_light, and hard_mix. all of 19 blend modes in total.

*Preview of the blend mode
3 The BlendModeV2 include normal, dissolve, darken, multiply, color burn, linear burn, darker color, lighten, screen, color dodge, linear dodge(add), lighter color, dodge, overlay, soft light, hard light, vivid light, linear light, pin light, hard mix, difference, exclusion, subtract, divide, hue, saturation, color, luminosity, grain extract, grain merge all of 30 blend modes in total.
Part of the code for BlendMode V2 is from Virtuoso Nodes for ComfyUI. Thanks to the original authors.

*Preview of the Blend Mode V2
4 The RGB color described by hexadecimal RGB format, like '#FA3D86'.
5 The layer_image and layer_mask must be of the same size.
LayerStyle Advance nodes follows the MIT license, Some of its functional code comes from other open-source projects. Thanks to the original author. If used for commercial purposes, please refer to the original project license to authorization agreement.
Python
97.7%
Jupyter Notebook
1.9%