手动下模型解决,这次需要放在models下的insightface里,所以先去创建一个insightface文件夹,然后找一下之前下过的inswapper_128.onnx。 还有个文件夹叫buffalo_l,里面有5个模型,我搜了下电脑文件,也是在faceswap的时候就下载了。 其次,还是要安装visual studio的东西,和roop一样,就不重复了,参考下在roop里写的安装...
1、先把依赖安装好 节点文件夹里会有install.bat 需要科学上网然后双击它就自己安装了,如果显示你没有python,那你还是先解决python的问题吧,不然你安其他插件也会出问题。 然后就是这个文件夹facerestore_models。 这个文件夹里需要有这些东西,我是把这些文件放在这之后就好了的,我把这个文件夹链接放下面: 通过网盘...
swap_model: 作用:指定用于面部交换的模型。 推荐值:通常使用inswapper_128.onnx,这是一个预训练的面部交换模型。 示例: json "swap_model": "models/insightface/inswapper_128.onnx" facedetection: 作用:选择用于人脸检测的模型。 推荐值:可以选择如retinaface_resnet50等高性能模型。 示例: json "face...
Build Blended Face Model 和 ReActor-Fast Face Swap,一个是用来训练混合的节点,一个是主节点。 从版本 0.4.0 开始,我们可以将面部模型保存为safetensors文件(存储在ComfyUI\models\reactor\faces)并将其加载到 ReActor 中,实现不同的场景并保留您使用的面部的超轻量级面部模型。 face_model_name:这个mix_face_...
ModelA=merge1, ModelB=merge2, multiplier=0.5, weighted sum, merge to create final face model Curious if anyone else has success with this approach or if they can whip up a workflow to automate. tried it, but the ModelA always wins, there's no different between mixed models and ModelA...
https://huggingface.co/datasets/Gourieff/ReActor/blob/main/models/buffalo_l.zip 最后,就是简单使用了。 首先,是使用Build Blended Face Model来训练一个节点。 face_model_name:这个mix_face_model就是我们自己训练的模型名字。 compute_method:计算方式,里面有3种默认就好。
没关系,先别慌,咱们研究一下那行指令:Downloading: "https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth" to E:\Webui\sd-webui-aki-v4.9\models\GFPGAN\detection_Resnet50_Final.pth(这是第二次需要安装的东西,但套路是一模一样的。)把第一个双引号里面的...
Note: When you run this program for the first time, it will download some models ~1Gb in size. Executing python run.py command will launch this window: Choose a face (image with desired face) and the target image/video (image/video in which you want to replace the face) and click ...
FaceSwapScript, get_models, get_current_faces_model, analyze_faces, half_det_size, providers ) from scripts.reactor_logger import logger from reactor_utils import ( batch_tensor_to_pil, batched_pil_to_tensor, tensor_to_pil, img2tensor, tensor2img, save_face_model, ...
FaceSwapScript, get_models, get_current_faces_model, analyze_faces, half_det_size, providers ) from scripts.reactor_logger import logger from reactor_utils import ( batch_tensor_to_pil, batched_pil_to_tensor, tensor_to_pil, img2tensor, tensor2img, save_face_model, ...