ComfyUI_photomakerV2_native

ComfyUI_photomakerV2_native
★ 13

人脸增强模型加载图像编码原生节点
为 ComfyUI 提供 PhotoMaker V2 原生节点(PhotoMakerLoaderV2、PhotoMakerEncodeV2),集成 InsightFace 人脸特征,支持 photomaker-v2 模型自动下载与加载,便于在人像生成/增强流程中进行高保真编码与解码。
💡 在 ComfyUI 中加载并使用 PhotoMaker V2 对人像进行高保真编码与增强。
🍴 1 Forks💻 Python🔄 2025-11-24
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/b6135d9bd930
📦 requirements.txt
insightface==0.7.3
📄 README

PhotoMakerV2 Native

PhotoMaker released version v2 a few months ago, but no one had updated it for Comfy v1. This repository provides an adaptation of PhotoMaker v2 for Comfy, as Comfy did not accept the original PR. The code here is very similar to the Comfy v1 version.

Most of the code originates from PhotoMaker; it has been adapted for Comfy by modifying the v1 code and adding two new nodes.

Installation

Clone this repository into ComfyUI/custom_nodes:

git clone https://github.com/zhangp365/ComfyUI_photomakerV2_native.git

PhotoMaker v2 requires the InsightFace library, so please ensure all dependencies are installed by running:

pip install -r requirements.txt

As in v1, download and place the photomaker-v2.bin file in the comfyui/models/photomaker directory.

When the node runs for the first time, it will automatically download the InsightFace model.

Base Model

It’s recommended to use the official base model realvisxlV40_v40Bakedvae.

Trigger Word

As in the official Comfy v1 version, the trigger word is photomaker, not img.

workflow and example

workflow

the image of the workflow.