ShmuelRonen / ComfyUI_wav2lip

A custom node for ComfyUI that allows you to perform lip-syncing on videos using the Wav2Lip model. It takes an input video and an audio file and generates a lip-synced output video.
89 stars 20 forks source link

How to fix load failed? #21

Closed bismark211 closed 3 months ago

bismark211 commented 3 months ago

2024-06-04 05:34:06,935- root:1897- WARNING- Traceback (most recent call last): File "E:\Comfyui\ComfyUI\nodes.py", line 1879, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\Comfyui\ComfyUI\custom_nodes\ComfyUI_wav2lip__init.py", line 1, in from .wav2lip import Wav2Lip File "E:\Comfyui\ComfyUI\custom_nodes\ComfyUI_wav2lip\wav2lip.py", line 56, in from wav2lipnode import wav2lip File "E:\Comfyui\ComfyUI\custom_nodes\ComfyUI_wav2lip\wav2lip\wav2lip_node.py", line 5, in from models import Wav2Lip ImportError: cannot import name 'Wav2Lip' from 'models' (E:\Comfyui\ComfyUI\custom_nodes\ComfyUI-BiRefNet\models\init__.py)

2024-06-04 05:34:06,936- root:1898- WARNING- Cannot import E:\Comfyui\ComfyUI\custom_nodes\ComfyUI_wav2lip module for custom nodes: cannot import name 'Wav2Lip' from 'models' (E:\Comfyui\ComfyUI\custom_nodes\ComfyUI-BiRefNet\models__init__.py)

ShmuelRonen commented 3 months ago

There are a strange statement: 'cannot import name 'Wav2Lip' from 'models' (E:\Comfyui\ComfyUI\custom_nodes\ComfyUI-BiRefNet\modelsinit.py)'

Because wav2lip node works for most of the users, maybe try to change the E:\Comfyui\ folder name to something more unique like E:\Comfyui-main\

ksenia-portu commented 3 months ago

@bismark211 look into this, it supposed to fix the poblem https://github.com/ksenia-portu/ComfyUI_wav2lip

bismark211 commented 3 months ago

Yes, it worked for Windows 10 too! Thank you!