@@ -5,99 +5,99 @@ English | [简体中文](./README_zh-CN.md)
|
||||
|
||||
|
||||
## Installation
|
||||
<span style="color: red;">Note: When you start the plugin for the first time, it will download all the models required by EasyPhoto. You can see the download progress in the terminal. Please do not interrupt the download (no hash verification for startup speed). If the download is interrupted, you need to manually delete the files downloaded halfway last time and download them again.</span>
|
||||
<span style="color: red;">Note: When you start the plugin for the first time, it will download all the models required by EasyPhoto. You can see the download progress in the terminal. Please do not interrupt the download (no hash verification for startup speed). If the download is interrupted, you need to manually delete the files downloaded halfway last time and download them again.</span>
|
||||
|
||||
1. First, install ComfyUI.
|
||||
1. First, install ComfyUI.
|
||||
|
||||
2. After ComfyUI runs successfully, go to the `custom_nodes` directory `ComfyUI/custom_nodes/`
|
||||
2. After ComfyUI runs successfully, go to the `custom_nodes` directory `ComfyUI/custom_nodes/`
|
||||
|
||||
```
|
||||
cd custom_nodes
|
||||
```
|
||||
```
|
||||
cd custom_nodes
|
||||
```
|
||||
|
||||
3. Clone this project into the custom_nodes directory.
|
||||
3. Clone this project into the custom_nodes directory.
|
||||
|
||||
```
|
||||
git clone https://github.com/THtianhao/ComfyUI-Portrait-Maker.git
|
||||
```
|
||||
```
|
||||
git clone https://github.com/THtianhao/ComfyUI-Portrait-Maker.git
|
||||
```
|
||||
|
||||
4. Restart ComfyUI.
|
||||
4. Restart ComfyUI.
|
||||
|
||||
## Dependent Plugin
|
||||
|
||||
[comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)
|
||||
[comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)
|
||||
|
||||
To install the dependent plugin, go to the `custom_nodes` in the same way as installing this plugin, and then execute the following:
|
||||
To install the dependent plugin, go to the `custom_nodes` in the same way as installing this plugin, and then execute the following:
|
||||
|
||||
```
|
||||
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
|
||||
```
|
||||
```
|
||||
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
|
||||
```
|
||||
|
||||
Note: This dependency is for viewing the style of openpose.
|
||||
Note: This dependency is for viewing the style of openpose.
|
||||
|
||||
## ComfyUI Workflow
|
||||
Easyphoto workflow location: [./workflow/easyphoto.json](./workflows/easyphoto.json)
|
||||
Easyphoto workflow location: [./workflow/easyphoto.json](./workflows/easyphoto.json)
|
||||
|
||||
Click "Load" in the right panel of ComfyUI and select the ./workflow/easyphoto_workflow.json file from the project.
|
||||
Click "Load" in the right panel of ComfyUI and select the ./workflow/easyphoto_workflow.json file from the project.
|
||||
|
||||

|
||||
|
||||
## Node Introduction
|
||||
|
||||
* RetainFace PM: Processes images using the pipeline `damo/cv_resnet50_face-detection_retinaface` from Model Scope
|
||||
* RetainFace PM: Processes images using the pipeline `damo/cv_resnet50_face-detection_retinaface` from Model Scope
|
||||
* image: Input image
|
||||
* multi_user_facecrop_ratio: Multiple for extracting the face area
|
||||
* FaceFusion PM: Fuses two images using the pipeline `damo/cv_unet-image-face-fusion_damo` from Model Scope
|
||||
* FaceFusion PM: Fuses two images using the pipeline `damo/cv_unet-image-face-fusion_damo` from Model Scope
|
||||
* image: Input image
|
||||
* user_image: Image to be fused
|
||||
* RatioMerge2Image PM: Merges two images according to a ratio
|
||||
* RatioMerge2Image PM: Merges two images according to a ratio
|
||||
* image1: Input image
|
||||
* Image2: Input image
|
||||
* fusion_rate: Fusion ratio, maximum is 1, larger values lean towards image1
|
||||
* MaskMerge2Image PM: Merges images using a mask
|
||||
* MaskMerge2Image PM: Merges images using a mask
|
||||
* image1: Input image
|
||||
* image2: Input image
|
||||
* mask: Mask to be replaced
|
||||
* ReplaceBoxImg PM: Replaces the image in a box area
|
||||
* ReplaceBoxImg PM: Replaces the image in a box area
|
||||
* origin_image: Original image
|
||||
* box_area: Area
|
||||
* replace_image: Image to be replaced in the area (resolution of box_area and replace_image must match)
|
||||
* ExpandMaskFaceWidth PM: Proportionally expands the width of the mask
|
||||
* ExpandMaskFaceWidth PM: Proportionally expands the width of the mask
|
||||
* mask: Input mask
|
||||
* box: Box corresponding to the mask
|
||||
* expand_width: Width expansion ratio based on the width of the box
|
||||
* BoxCropImage PM: Crops images using a box
|
||||
* ColorTransfer PM: Color transfer for images
|
||||
* FaceSkin PM: Extracts the mask of the facial part of the image
|
||||
* MaskDilateErode PM: Dilates and erodes the mask
|
||||
* SkinRetouching PM: Processes images using the pipeline `damo/cv_gpen_image-portrait-enhancement` from Model Scope
|
||||
* PortraitEnhancement PM: Processes images using the pipeline `damo/cv_gpen_image-portrait-enhancement` from Model Scope
|
||||
* ImageResizeTarget PM: Resizes images to a target width and height
|
||||
* ImageScaleShort PM: Reduces the width and height of the image's shorter side
|
||||
* BoxCropImage PM: Crops images using a box
|
||||
* ColorTransfer PM: Color transfer for images
|
||||
* FaceSkin PM: Extracts the mask of the facial part of the image
|
||||
* MaskDilateErode PM: Dilates and erodes the mask
|
||||
* SkinRetouching PM: Processes images using the pipeline `damo/cv_gpen_image-portrait-enhancement` from Model Scope
|
||||
* PortraitEnhancement PM: Processes images using the pipeline `damo/cv_gpen_image-portrait-enhancement` from Model Scope
|
||||
* ImageResizeTarget PM: Resizes images to a target width and height
|
||||
* ImageScaleShort PM: Reduces the width and height of the image's shorter side
|
||||
* image: Input image
|
||||
* size: Length to be scaled (proportionally scaled based on the shorter side of width and height)
|
||||
* crop_face: Width and height must be multiples of 32 after scaling
|
||||
* GetImageInfo PM: Extracts the width and height of the image
|
||||
* GetImageInfo PM: Extracts the width and height of the image
|
||||
|
||||
## Contribution
|
||||
|
||||
If you find any issues or have suggestions for improvement, feel free to contribute. Follow these steps:
|
||||
If you find any issues or have suggestions for improvement, feel free to contribute. Follow these steps:
|
||||
|
||||
1. Create a new feature branch: `git checkout -b feature/your-feature-name`
|
||||
2. Make changes and commit: `git commit -m "Add new feature"`
|
||||
3. Push to your remote branch: `git push origin feature/your-feature-name`
|
||||
4. Create a Pull Request (PR).
|
||||
1. Create a new feature branch: `git checkout -b feature/your-feature-name`
|
||||
2. Make changes and commit: `git commit -m "Add new feature"`
|
||||
3. Push to your remote branch: `git push origin feature/your-feature-name`
|
||||
4. Create a Pull Request (PR).
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
|
||||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
|
||||
|
||||
## Contact
|
||||
|
||||
If you have any questions or suggestions, you can reach us through:
|
||||
If you have any questions or suggestions, you can reach us through:
|
||||
|
||||
- Email: tototianhao@gmail.com
|
||||
- QQ Group: 10419777
|
||||
- WeChat Group: !()[./images/wechat.jpg]
|
||||
- Email: tototianhao@gmail.com
|
||||
- QQ Group: 10419777
|
||||
- WeChat Group: ()[./images/wechat.png]
|
||||
|
||||
Feel free to join us and contribute to the development of the EasyPhoto ConfyUI Plugin!
|
||||
Feel free to join us and contribute to the development of the EasyPhoto ConfyUI Plugin!
|
||||
|
||||
+64
-64
@@ -6,43 +6,43 @@ English | [简体中文](./README_zh-CN.md)
|
||||
|
||||
## 安装
|
||||
|
||||
<span style="color: red;">注意:初次启动插件的时候会下载EasyPhoto所需要的所有模型,在terminal中可以看到下载进度,请不要中断下载,(为了启动速度,没有做hash校验),如果中断下载,需要手动删除上次下载一半的文件,重新下载。</span>
|
||||
<span style="color: red;">注意:初次启动插件的时候会下载EasyPhoto所需要的所有模型,在terminal中可以看到下载进度,请不要中断下载,(为了启动速度,没有做hash校验),如果中断下载,需要手动删除上次下载一半的文件,重新下载。</span>
|
||||
|
||||
1. 首先安装ComfyUI
|
||||
1. 首先安装ComfyUI
|
||||
|
||||
2. ComfyUI运行成功后进入`custom_nodes` 目录 `ComfyUI/custom_nodes/`
|
||||
2. ComfyUI运行成功后进入`custom_nodes` 目录 `ComfyUI/custom_nodes/`
|
||||
|
||||
```
|
||||
cd custom_nodes
|
||||
```
|
||||
```
|
||||
cd custom_nodes
|
||||
```
|
||||
|
||||
3. 克隆此项目到custom_nodes目录中
|
||||
3. 克隆此项目到custom_nodes目录中
|
||||
|
||||
```
|
||||
git clone https://github.com/THtianhao/ComfyUI-Portrait-Maker.git
|
||||
```
|
||||
```
|
||||
git clone https://github.com/THtianhao/ComfyUI-Portrait-Maker.git
|
||||
```
|
||||
|
||||
4. 重新启动ComfyUI
|
||||
4. 重新启动ComfyUI
|
||||
|
||||
|
||||
|
||||
## 依赖插件
|
||||
|
||||
[comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)
|
||||
[comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)
|
||||
|
||||
插件安装:同本插件安装方式进入到`custom_nodes` 然后执行
|
||||
插件安装:同本插件安装方式进入到`custom_nodes` 然后执行
|
||||
|
||||
```
|
||||
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
|
||||
```
|
||||
```
|
||||
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
|
||||
```
|
||||
|
||||
提示:次依赖是为了查看openpose的样式
|
||||
提示:次依赖是为了查看openpose的样式
|
||||
|
||||
## ComfyUI 工作流
|
||||
|
||||
Easyphoto工作位置: [./workflow/easyphoto.json](./workflows/easyphoto.json )
|
||||
Easyphoto工作位置: [./workflow/easyphoto.json](./workflows/easyphoto.json )
|
||||
|
||||
在comfyUI的右侧面板中点击Load,选择项目中的./workflow/easyphoto_workflow.json 文件
|
||||
在comfyUI的右侧面板中点击Load,选择项目中的./workflow/easyphoto_workflow.json 文件
|
||||
|
||||

|
||||
|
||||
@@ -50,60 +50,60 @@ English | [简体中文](./README_zh-CN.md)
|
||||
|
||||
## 节点介绍
|
||||
|
||||
* RetainFace PM:使用Model Scope中的pipleline `damo/cv_resnet50_face-detection_retinaface`处理图像
|
||||
* image:输入图像
|
||||
* multi_user_facecrop_ratio:提取头像区域的倍数
|
||||
* FaceFusion PM:使用Model Scope中的pipleline `damo/cv_unet-image-face-fusion_damo`将两张图像进行融合
|
||||
* image:输入图像
|
||||
* user_image:要融合的头像
|
||||
* RatioMerge2Image PM: 按照比例融合两张图片
|
||||
* image1:输入的图像
|
||||
* Image2:输入的图像
|
||||
* fusion_rate: 融合比例,最大为1,越大越偏向image1
|
||||
* MaskMerge2Image PM: 利用Mask将图片进行融合
|
||||
* image1:输入的图像
|
||||
* image2:输入的图像
|
||||
* mask:需要替换的mask
|
||||
* ReplaceBoxImg PM: 替换box区域中的图片
|
||||
* origin_image: 原始图像
|
||||
* box_area:区域
|
||||
* replace_image:区域中要替换的图像(box_area和replace_image的分辨率要保持一致)
|
||||
* ExpandMaskFaceWidth PM: 对Mask的宽度进行比例扩张
|
||||
* mask:输入的Mask
|
||||
* box:mask对应的box
|
||||
* expand_width:宽度扩张的比例,根据box的宽度扩张
|
||||
* BoxCropImage PM:利用box对图片进行裁剪
|
||||
* ColorTransfer PM:对图片进行颜色迁移
|
||||
* FaceSkin PM:提取图片中人脸的部分的Mask
|
||||
* MaskDilateErode PM: 对Mask进行膨胀与腐蚀
|
||||
* SkinRetouching PM:使用Model Scope中的pipleline `damo/cv_gpen_image-portrait-enhancement`处理图像
|
||||
* PortraitEnhancement PM:使用Model Scope中的pipleline `damo/cv_gpen_image-portrait-enhancement`处理图像
|
||||
* ImageResizeTarget PM:将图片缩放到目标宽高
|
||||
* ImageScaleShort PM: 将图片的宽高中小的部分缩减到
|
||||
* image:输入图像
|
||||
* size:要缩放的长度(按照宽高中最短的一边进行比例缩放)
|
||||
* crop_face:缩放后宽高要以32为倍数
|
||||
* GetImageInfo PM: 提取图片的宽高
|
||||
* RetainFace PM:使用Model Scope中的pipleline `damo/cv_resnet50_face-detection_retinaface`处理图像
|
||||
* image:输入图像
|
||||
* multi_user_facecrop_ratio:提取头像区域的倍数
|
||||
* FaceFusion PM:使用Model Scope中的pipleline `damo/cv_unet-image-face-fusion_damo`将两张图像进行融合
|
||||
* image:输入图像
|
||||
* user_image:要融合的头像
|
||||
* RatioMerge2Image PM: 按照比例融合两张图片
|
||||
* image1:输入的图像
|
||||
* Image2:输入的图像
|
||||
* fusion_rate: 融合比例,最大为1,越大越偏向image1
|
||||
* MaskMerge2Image PM: 利用Mask将图片进行融合
|
||||
* image1:输入的图像
|
||||
* image2:输入的图像
|
||||
* mask:需要替换的mask
|
||||
* ReplaceBoxImg PM: 替换box区域中的图片
|
||||
* origin_image: 原始图像
|
||||
* box_area:区域
|
||||
* replace_image:区域中要替换的图像(box_area和replace_image的分辨率要保持一致)
|
||||
* ExpandMaskFaceWidth PM: 对Mask的宽度进行比例扩张
|
||||
* mask:输入的Mask
|
||||
* box:mask对应的box
|
||||
* expand_width:宽度扩张的比例,根据box的宽度扩张
|
||||
* BoxCropImage PM:利用box对图片进行裁剪
|
||||
* ColorTransfer PM:对图片进行颜色迁移
|
||||
* FaceSkin PM:提取图片中人脸的部分的Mask
|
||||
* MaskDilateErode PM: 对Mask进行膨胀与腐蚀
|
||||
* SkinRetouching PM:使用Model Scope中的pipleline `damo/cv_gpen_image-portrait-enhancement`处理图像
|
||||
* PortraitEnhancement PM:使用Model Scope中的pipleline `damo/cv_gpen_image-portrait-enhancement`处理图像
|
||||
* ImageResizeTarget PM:将图片缩放到目标宽高
|
||||
* ImageScaleShort PM: 将图片的宽高中小的部分缩减到
|
||||
* image:输入图像
|
||||
* size:要缩放的长度(按照宽高中最短的一边进行比例缩放)
|
||||
* crop_face:缩放后宽高要以32为倍数
|
||||
* GetImageInfo PM: 提取图片的宽高
|
||||
|
||||
## 贡献
|
||||
|
||||
如果你发现任何问题或有改进建议,欢迎贡献。请遵循以下步骤:
|
||||
如果你发现任何问题或有改进建议,欢迎贡献。请遵循以下步骤:
|
||||
|
||||
1. 分支出一个新的特性分支:`git checkout -b feature/your-feature-name`
|
||||
2. 进行修改并提交:`git commit -m "Add new feature"`
|
||||
3. 推送到你的远程分支:`git push origin feature/your-feature-name`
|
||||
4. 创建一个 Pull 请求(PR)。
|
||||
1. 分支出一个新的特性分支:`git checkout -b feature/your-feature-name`
|
||||
2. 进行修改并提交:`git commit -m "Add new feature"`
|
||||
3. 推送到你的远程分支:`git push origin feature/your-feature-name`
|
||||
4. 创建一个 Pull 请求(PR)。
|
||||
|
||||
## 许可证
|
||||
|
||||
该项目采用 MIT 许可证。查看 [LICENSE](LICENSE) 文件以获取详细信息。
|
||||
该项目采用 MIT 许可证。查看 [LICENSE](LICENSE) 文件以获取详细信息。
|
||||
|
||||
## 联系
|
||||
|
||||
如果你有任何疑问或建议,可以通过以下方式联系我们:
|
||||
如果你有任何疑问或建议,可以通过以下方式联系我们:
|
||||
|
||||
- 电子邮件:tototianhao@gmail.com
|
||||
- QQ 群:10419777
|
||||
- 微信群:
|
||||
- 电子邮件:tototianhao@gmail.com
|
||||
- QQ 群:10419777
|
||||
- 微信群:[](./images/wechat.jpg)
|
||||
|
||||
欢迎加入我们,为 EasyPhoto ConfyUI Plugin 的发展做出贡献!
|
||||
欢迎加入我们,为 EasyPhoto ConfyUI Plugin 的发展做出贡献!
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 104 KiB |
Reference in New Issue
Block a user