smthemex / ComfyUI_EchoMimic

You can using EchoMimic in ComfyUI
Apache License 2.0
269 stars 31 forks source link

ffmpeg已经重装过了 文件位置也没问题 [WinError 2] 系统找不到指定的文件。 #16

Open aigcchumen opened 4 months ago

aigcchumen commented 4 months ago

error occurred when executing Echo_Sampler:

[WinError 2] 系统找不到指定的文件。

File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\EchoMimic_node.py", line 463, in em_main output_video = process_video(image, audio_file, width, height, length, seeds, facemask_ratio, File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\EchoMimic_node.py", line 163, in process_video video = pipe( File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\src\pipelines\pipeline_echo_mimic_pose.py", line 434, in call whisper_feature = self.audio_guider.audio2feat(audio_path) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\src\models\whisper\audio2feature.py", line 100, in audio2feat result = self.model.transcribe(audio_path) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\src\models\whisper\whisper\transcribe.py", line 85, in transcribe mel = log_mel_spectrogram(audio) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\src\models\whisper\whisper\audio.py", line 111, in log_mel_spectrogram audio = load_audio(audio) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\custom_nodes\ComfyUI_EchoMimic\src\models\whisper\whisper\audio.py", line 42, in load_audio ffmpeg.input(file, threads=0) File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\python\lib\site-packages\ffmpeg_run.py", line 313, in run process = run_async( File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\python\lib\site-packages\ffmpeg_run.py", line 284, in run_async return subprocess.Popen( File "", line 217, in sentry_patched_popen_init File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\python\lib\subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "F:\ComfyUI\ComfyUI-aki-v1.3\ComfyUI-aki-EchoMimic\python\lib\subprocess.py", line 1456, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

smthemex commented 4 months ago

我说明文件说得很清楚了,VH的音频转换有ffmpeg冲突,无法使用VH的音频合成,建议使用内置的音频合成就好,用VH就是为了看个图方便而已。

aigcchumen commented 4 months ago

我说明文件说得好了,VH的音频转换有ffmpeg冲突,无法使用VH的音频合成,建议使用内置的音频合成就好,用VH就是为了看个图方便而已。

大佬,我已经按照你的回复出来过了,还是报错,求指点 image image image

smthemex commented 4 months ago

除了这个ffmpeg-python ,你还有没有装exe版本的ffmpeg?因为要进系统路径,至于ffmpeg的系统路径如何加入,你可以看我其他的报错信息,有类似的解决办法。

liuxiaobianzai commented 4 months ago

我说明文件说得好了,VH的音频转换有ffmpeg冲突,无法使用VH的音频合成,建议使用内置的音频合成就好,用VH就是为了看个图方便而已。

大佬,我已经按照你的回复过了,还是报错,指点 图像 图像 图像

俺也一样,请问你问题解决了吗

8thmouse commented 4 months ago

same issue here

izhoubin commented 3 months ago

最新版本,同样的问题,试过所有issues内的方法未解决

smthemex commented 3 months ago

出现这个问题的基本上都是秋叶包,如果是其他能自己pip装库的comfyUI,如果用不了基本上可以按以下流程安装: 先 pip uninstall torchaudio torchvision torch xformers ffmpeg 再 pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121 pip install xformers==0.0.24 pip install facenet_pytorch ffmpeg-python moviepy av

JimWang151 commented 3 months ago

xformers0.024太难装了。

zuojianghua commented 1 week ago

我也遇到一样的问题了,load_audio里面会用到 cmd ffmpeg。它会调用window系统里的ffmpeg,但是如果win的path里面安装就会报错。

解决方案:下载安装一个UniGetUI,然后搜索ffmpeg,安装一个最新的版本,这样在你的powershell里面应该也能直接运行ffmpeg命令了。然后关掉启动comfyUI的powershell窗口,新开一个窗口(我卡在这一步好久),启动comfyUI。即可解决。