Portrait Tools: Facial detection cropping, alignment, ID photo, etc.
Currently includes the following nodes:
Examples:
[2025-04-14]⚒️: Add automatic image watermarking.
[2025-04-11] ⚒️: Released version v1.0.0.
cd ComfyUI/custom_nodes
git clone https://github.com/billwuhao/ComfyUI_PortraitTools.git
cd ComfyUI_PortraitTools
pip install -r requirements.txt
# python_embeded
./python_embeded/python.exe -m pip install -r requirements.txt
If you are using the ComfyUI-ReActor and ComfyUI-RMBG nodes, you do not need to download the models, as they are shared.
Otherwise, download detection_Resnet50_Final.pth and place it in the ComfyUI\models\facedetection
folder. The models for ComfyUI-RMBG will be automatically downloaded to the ComfyUI\models\RMBG
folder.
Thanks to the following projects: