
Your contribution is greatly appreciated and helps me to create more content. If you like my model, please consider donating: https://ko-fi.com/aoi_android
Face Swap for img
[github]
https://github.com/Gourieff/comfyui-reactor-node
This is a simple workflow for face swapping.
Contains Reactor and Loop.
#############################################
When introducing Reactor
If you encounter an import error, please see below.
Please perform Troubleshooting I and IV.
The reactor requires something called Insightface.
[JP]
シンプルな顔の入れ替え用のワークフローです,
Reactor と Roop が入っています,
##############################################
Reactor導入時に
import errorが生じた方は下記
TroubleshootingのⅠとⅣを実行してください,
reactorにはInsightfaceというものが必要です,
####################################################
【Troubleshooting】
?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:
-
(ComfyUI Portable) From the root folder check the version of Python:
run CMD and typepython_embeded\python.exe -V
-
Download prebuilt Insightface package for Python 3.10 or for Python 3.11 (if in the previous step you see 3.11) or for Python 3.12 (if in the previous step you see 3.12) and put 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
-
From the root folder run:
-
(SD WebUI) CMD and
.\venv\Scripts\activate
-
(ComfyUI Portable) run CMD
-
-
Then update your PIP:
-
(SD WebUI)
python -m pip install -U pip
-
(ComfyUI Portable)
python_embeded\python.exe -m pip install -U pip
-
-
Then install Insightface:
-
(SD WebUI)
pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
(for 3.10) orpip install insightface-0.7.3-cp311-cp311-win_amd64.whl
(for 3.11) orpip install insightface-0.7.3-cp312-cp312-win_amd64.whl
(for 3.12) -
(ComfyUI Portable)
python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
(for 3.10) orpython_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl
(for 3.11) orpython_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl
(for 3.12)
-
-
Enjoy!
II. "AttributeError: 'NoneType' object has no attribute 'get'"
This error may occur if there's smth wrong with the model file inswapper_128.onnx
Try to download it manually from here and put it to the ComfyUI\models\insightface
replacing existing one
III. "reactor.execute() got an unexpected keyword argument 'reference_image'"
This means that input points have been changed with the latest update
Remove the current ReActor Node from your workflow and add it again
?IV. ControlNet Aux Node IMPORT failed error when using with ReActor Node
Close ComfyUI if it runs
-
Go to the ComfyUI root folder, open CMD there and run:
python_embeded\python.exe -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless
python_embeded\python.exe -m pip install opencv-python==4.7.0.72
That's it!
Download https://github.com/Gourieff/Assets/raw/main/comfyui-reactor-node/future-0.18.3-py3-none-any.whl Put it to ComfyUI root And run: Then: Try to clone with Then retrieve the rest (if you need):V. "ModuleNotFoundError: No module named 'basicsr'" or "subprocess-exited-with-error" during future-0.18.3 installation
python_embeded\python.exe -m pip install future-0.18.3-py3-none-any.whl
python_embeded\python.exe -m pip install basicsr
VI. "fatal: fetch-pack: invalid index-pack output" when you try to
git clone
the repository"--depth=1
(last commit only): git clone --depth=1 https://github.com/Gourieff/comfyui-reactor-node
git fetch --unshallow
描述:
训练词语:
名称: SIMPLEReactorAndRoopFaceSwap_v10.zip
大小 (KB): 1950
类型: Archive
Pickle 扫描结果: Success
Pickle 扫描信息: No Pickle imports
病毒扫描结果: Success