Gourieff / comfyui-reactor-node

Fast and Simple Face Swap Extension Node for ComfyUI
GNU General Public License v3.0
1.36k stars 129 forks source link

(IMPORT FAILED) ReActor Node for ComfyUI #369

Closed eotamis closed 4 weeks ago

eotamis commented 1 month ago

First, confirm

What happened?

I have not figured out the very reason why reactor node would fail to load giving an "import failed" remark and an option to fix it in the custom nodes manager. I try this and it works until I quit comfy ui and restart it.

Steps to reproduce the problem

Your workflow I have followed every step of the git page references going through insight face installation (looks like installation was somehow correct since manager lets me fix it until a restart).

I am getting below errors when I restart comfy ui when I restart the server. Please any help is appreciated.

Sysinfo

Win 11, rtx3070ti mobile

Relevant console log

Traceback (most recent call last):
File "C:\Users\eo_dummy\Documents\GEN_AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1931, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\eo_dummy\Documents\GEN_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node_init.py", line 23, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "C:\Users\eo_dummy\Documents\GEN_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in
from insightface.app.common import Face
ModuleNotFoundError: No module named 'insightface'

Cannot import C:\Users\eo_dummy\Documents\GEN_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'insightface'
[comfyui_controlnet_aux] | INFO -> Using ckpts path: C:\Users\eo_dummy\Documents\GEN_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
C:\Users\eo_dummy\Documents\GEN_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py:26: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly
warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly")

Additional information

No response

ostap667inbox commented 1 month ago

same

### Loading: ComfyUI-Manager (V2.48.1)
### ComfyUI Revision: 2364 [7914c47d] *DETACHED | Released on '2024-07-14'
Traceback (most recent call last):
  File "F:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1931, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 23, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in <module>
    from insightface.app.common import Face
ModuleNotFoundError: No module named 'insightface'

Cannot import F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'insightface'

Import times for custom nodes:
   0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
   0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
   0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
   0.2 seconds (IMPORT FAILED): F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
   0.3 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Starting server

To see the GUI go to: http://127.0.0.1:8188
Gourieff commented 1 month ago

https://github.com/Gourieff/comfyui-reactor-node#insightfacebuild

https://github.com/Gourieff/comfyui-reactor-node/issues?q=is%3Aissue+is%3Aclosed+No+module+named+%27insightface%27

curious-george-is-available commented 1 day ago

I'm trying to deploy a comfy workflow to Baseten Serverless Inference and I'm getting the error Cannot import /app/ComfyUI/custom_nodes/comfyui-reactor-node module for custom nodes: No module named 'insightface'

Can please someone guide me? non-coder here

curious-george-is-available commented 1 day ago

I'm trying to deploy a comfy workflow to Baseten Serverless Inference and I'm getting the error Cannot import /app/ComfyUI/custom_nodes/comfyui-reactor-node module for custom nodes: No module named 'insightface'

Can please someone guide me? non-coder here

@Gourieff