遇见数据集

crystantine/sd-reactor-node

收藏
Hugging Face2023-08-21 更新2024-03-04 收录
官方服务:

资源简介:

# ReActor Node 0.1.1b for ComfyUI ### The Fast and Simple "roop-like" Face Swap Extension Node for ComfyUI, based on [ReActor (ex Roop-GE)](https://github.com/Gourieff/sd-webui-reactor) SD-WebUI Face Swap Extension > This Node goes without NSFW filter (uncensored, use it on your own responsibility) --- [**Disclaimer**](#disclaimer) | [**Installation**](#installation) | [**Usage**](#usage) | [**Troubleshooting**](#troubleshooting) | [**Updating**](#updating) --- ### Disclaimer This software is meant to be a productive contribution to the rapidly growing AI-generated media industry. It will help artists with tasks such as animating a custom character or using the character as a model for clothing etc. The developers of this software are aware of its possible unethical applicaitons and are committed to take preventative measures against them. We will continue to develop this project in the positive direction while adhering to law and ethics. Users of this software are expected to use this software responsibly while abiding the local law. If face of a real person is being used, users are suggested to get consent from the concerned person and clearly mention that it is a deepfake when posting content online. **Developers and Contributors of this software are not responsible for actions of end-users.** ## Installation [SD WebUI](#sdwebui) | [Standalone ComfyUI](#standalone) <a name="sdwebui">If you use [AUTOMATIC1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui/) or [SD.Next](https://github.com/vladmandic/automatic) 1. Close (stop) your SD-WebUI/Comfy Server if it's running 2. (For Windows Users) Install [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) (Community version - you need this step to build Insightface) -OR- only [VS C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) and select "Desktop Development with C++" under "Workloads -> Desktop & Mobile" -OR- if you don't want to install VS or VS C++ BT - follow [this steps (sec. I)](#insightfacebuild) 3. Go to the `extensions\sd-webui-comfyui\ComfyUI\custom_nodes` 4. Open Console or Terminal and run `git clone https://github.com/Gourieff/comfyui-reactor-node` 5. Go to the SD WebUI root folder, open Console or Terminal and run (Windows users)`.\venv\Scripts\activate` or (Linux/MacOS)`venv/bin/activate` 6. `python -m pip install -U pip` 7. `cd extensions\sd-webui-comfyui\ComfyUI\custom_nodes\comfyui-reactor-node` 8. `python install.py` 9. Please, wait until the installation process will be finished 10. Run SD WebUI and check console for the message that ReActor Node is running: <img src="uploads/console_status_running.jpg" alt="console_status_running" width="759"/> 11. Go to the ComfyUI tab and find there ReActor Node inside the menu `image/postprocessing` or by using a search: <img src="uploads/webui-demo.png" alt="webui-demo" width="100%"/> <img src="uploads/search-demo.png" alt="webui-demo" width="1043"/> 12. Enjoy! <a name="standalone">If you use Standalone [ComfyUI](https://github.com/comfyanonymous/ComfyUI) for Windows 1. Go to the `ComfyUI\custom_nodes` directory 2. Open Console and run `git clone https://github.com/Gourieff/comfyui-reactor-node` 3. Run install.bat 4. Run ComfyUI and find there ReActor Node inside the menu `image/postprocessing` or by using a search ## Usage Just connect all required nodes and run the query ## Troubleshooting <a name="insightfacebuild">**I. (For Windows users) If you still cannot build Insightface for some reasons or just don't want to install Visual Studio or VS C++ Build Tools - do the following:** 1. Download and put [prebuilt Insightface package](https://github.com/Gourieff/sd-webui-reactor/raw/main/example/insightface-0.7.3-cp310-cp310-win_amd64.whl) into the stable-diffusion-webui (A1111 or SD.Next) root folder (where you have "webui-user.bat" file) or into ComfyUI root folder if you use ComfyUI Portable 2. From the root folder run: - (SD WebUI) CMD and `.\venv\Scripts\activate` - (ComfyUI Portable) run CMD 3. Then update your PIP: - (SD WebUI) `python -m pip install -U pip` - (ComfyUI Portable) `python_embeded\python.exe -m pip install -U pip` 4. Then install Insightface: - (SD WebUI) `pip install insightface-0.7.3-cp310-cp310-win_amd64.whl` - (ComfyUI Portable) `python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl` 5. Enjoy! ## Updating Just put .bat or .sh script from this [Repo](https://github.com/Gourieff/sd-webui-extensions-updater) to the `ComfyUI\custom_nodes` directory and run it when you need to check for updates

提供机构:
crystantine
原始信息汇总

ReActor Node 0.1.1b for ComfyUI

概述

ReActor Node 0.1.1b 是一个基于 ReActor (原 Roop-GE) SD-WebUI 人脸交换扩展的 ComfyUI 快速且简单的人脸交换扩展节点。

免责声明

该软件旨在作为对快速发展的 AI 生成媒体行业的有益贡献。它将帮助艺术家完成诸如动画化自定义角色或将角色用作服装模型等任务。开发者意识到该软件可能存在不道德的应用,并致力于采取预防措施。用户应负责任地使用该软件,并遵守当地法律。如果使用真实人物的脸部,用户应获得相关人员的同意,并在在线发布内容时明确指出这是深度伪造。开发者及贡献者不对最终用户的行动负责。

安装

SD WebUI

  1. 关闭正在运行的 SD-WebUI/Comfy 服务器。
  2. 安装 Visual Studio 2022 社区版或仅安装 VS C++ Build Tools,并选择“桌面开发与 C++”。
  3. 进入 extensionssd-webui-comfyuiComfyUIcustom_nodes 目录。
  4. 在控制台或终端中运行 git clone https://github.com/Gourieff/comfyui-reactor-node。
  5. 进入 SD WebUI 根目录,激活虚拟环境并更新 pip。
  6. 进入 comfyui-reactor-node 目录并运行 python install.py。
  7. 安装完成后,启动 SD WebUI 并检查控制台消息。
  8. 在 ComfyUI 标签中找到 ReActor Node。

Standalone ComfyUI

  1. 进入 ComfyUIcustom_nodes 目录。
  2. 在控制台中运行 git clone https://github.com/Gourieff/comfyui-reactor-node。
  3. 运行 install.bat。
  4. 启动 ComfyUI 并找到 ReActor Node。

使用

只需连接所有必需的节点并运行查询。

故障排除

构建 Insightface 失败

  1. 下载预构建的 Insightface 包并放入根目录。
  2. 激活虚拟环境并更新 pip。
  3. 安装 Insightface 包。

更新

将更新脚本放入 ComfyUIcustom_nodes 目录并在需要时运行。

搜集汇总
数据集介绍
构建方式
在人工智能图像生成领域,人脸替换技术正逐步成为创意工具的重要组成部分。crystantine/sd-reactor-node数据集源于ReActor(前身为Roop-GE)扩展,专为ComfyUI平台设计,旨在提供高效且简洁的人脸替换功能。该数据集通过集成Insightface等依赖库,构建了一套无需NSFW过滤器的无审查节点系统。其构建过程包括从GitHub克隆仓库、安装Visual Studio或VS C++ Build Tools以编译Insightface,并执行安装脚本以确保所有组件正确配置。用户需将节点置于ComfyUI的custom_nodes目录下,通过控制台或终端运行安装命令,最终在图像后处理菜单中启用该功能。
特点
该数据集的核心特点在于其快速、简单且无审查的人脸替换能力,类似于经典的“roop”方法,但基于更先进的ReActor框架优化。它支持在ComfyUI环境中无缝集成,提供直观的节点化操作界面,使用户能够通过连接必要节点直接执行查询。数据集强调用户责任,明确警示其无审查特性需谨慎使用,并附有法律与伦理声明,要求用户尊重他人肖像权并遵守当地法律。此外,它兼容AUTOMATIC1111和SD.Next等主流SD-WebUI,增强了跨平台适用性。
使用方法
使用该数据集时,用户需首先确保环境已正确安装所有依赖,包括Insightface和必要的构建工具。在ComfyUI中,通过图像后处理菜单或搜索功能找到ReActor节点,将其与输入源图像和目标图像连接。配置参数后,运行查询即可触发人脸替换流程。对于Windows用户,若Insightface构建失败,可下载预编译包手动安装。更新则通过专用脚本在custom_nodes目录下执行,以保持节点与最新版本同步。整个过程强调简洁性,仅需基本节点连接即可实现高效操作。
背景与挑战
背景概述
在生成式人工智能与计算机视觉交叉领域,面部替换技术作为深度伪造(Deepfake)的核心应用之一,近年来引发了学术界与工业界的广泛关注。crystantine/sd-reactor-node数据集诞生于2024年,由开发者Gourieff基于此前广受争议的ReActor(原名Roop-GE)项目重构而成,专门为ComfyUI这一模块化图像生成平台设计。该数据集的核心研究问题在于如何在保持高实时性与低计算开销的前提下,实现精准、自然的面部替换,同时规避传统NSFW过滤器的限制,以服务于合法的艺术创作场景,例如虚拟角色动画或服装模型渲染。作为SD-WebUI生态中Face Swap扩展的重要延伸,该节点因其无审查特性与高效推理能力,已成为AI生成媒体领域内极具影响力的工具,推动了面部编辑技术从实验室走向实用化部署的进程。
当前挑战
该数据集所面临的挑战首先体现在领域技术层面:面部替换需解决源人脸与目标人脸在姿态、光照、表情及肤色上的高保真融合,而现有模型在极端角度或遮挡情况下常出现伪影与身份泄露问题。此外,构建过程中遭遇了显著的工程瓶颈,包括Insightface库在Windows环境下的编译困难——依赖Visual Studio C++工具链或预编译包的手动部署,以及多平台(SD WebUI与独立ComfyUI)安装流程的碎片化。尤为关键的是,数据集的“无NSFW过滤”特性虽赋予创作者更大自由度,却引发了伦理与法律风险,如何在技术开放性与滥用防范之间建立平衡,成为其持续演进中必须直面的核心挑战。
常用场景
经典使用场景
在生成式人工智能与图像处理交叉领域,ReActor Node作为ComfyUI生态中一款轻量级人脸替换节点,其经典使用场景聚焦于基于扩散模型的局部面部编辑。该节点通过InsightFace实现面部特征提取与对齐,结合Stable Diffusion的潜空间生成能力,能够在保持目标图像背景与姿态不变的前提下,精准替换源人脸。这一流程广泛应用于角色一致性生成、影视后期虚拟试妆以及个性化头像定制等任务,为创作者提供了高效且可控的面部操作工具。
实际应用
在实际应用层面,ReActor Node已渗透至数字内容创作产业的多个环节。影视制作中,它被用于快速替换演员面部以降低重拍成本;电商领域,虚拟模特试衣系统借助该节点实现用户面部与服装模型的融合;社交媒体上,用户通过它生成趣味性换脸视频或虚拟形象。此外,在医疗美容行业,该节点可辅助模拟手术效果,帮助患者直观预览面部调整后的样貌。这些场景均依赖其低延迟、易集成的特性,显著提升了创意工作的效率与灵活性。
衍生相关工作
基于ReActor Node的核心技术,学术界与工业界衍生出多项经典工作。例如,研究者将其与ControlNet结合,提出基于条件控制的人脸替换框架,实现了对表情、年龄等属性的精细调节;另有一些工作将其扩展为视频级换脸工具,通过帧间一致性优化解决了闪烁问题。此外,ReActor Node的轻量化设计启发了如FaceFusion等开源项目,后者进一步改进了遮挡处理与多人脸场景的鲁棒性。这些工作共同推动了人脸生成技术向实用化、伦理化方向演进。
以上内容由遇见数据集搜集并总结生成
二维码
社区交流群
二维码
科研交流群
商业服务