Hzzone / pytorch-openpose

pytorch implementation of openpose including Hand and Body Pose Estimation.
2.07k stars 395 forks source link

FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #76

Open zhangtsingtsi opened 1 year ago

zhangtsingtsi commented 1 year ago

C:\Users\a505s.conda\envs\pytorch-openpose\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: warn(f"Failed to load image Python extension: {e}") Traceback (most recent call last): File "F:\pytorch-openpose\demo_video.py", line 77, in ffprobe_result = ffprobe(args.file) File "F:\pytorch-openpose\demo_video.py", line 31, in ffprobe result = subprocess.run(command_array, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) File "C:\Users\a505s.conda\envs\pytorch-openpose\lib\subprocess.py", line 488, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\a505s.conda\envs\pytorch-openpose\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "C:\Users\a505s.conda\envs\pytorch-openpose\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 系统找不到指定的文件。

HELP!!

zhangtsingtsi commented 1 year ago

There is an error when I run "python demo_video.py 1.mp4"

Hzzone commented 1 year ago

Use absolute path.

puterh commented 1 year ago

Absolute path is not working.

dd-rongfa commented 1 year ago

我遇到了相同的问题了,你解决了么?

skxmxm commented 1 year ago

你没有下ffmpeg,再官网下载之后加到环境变量里就行了

vielleicht-fe commented 1 year ago

我在conda环境中使用pip install ffmpeg-python下载了ffmpeg,但是仍然有这个问题

skxmxm commented 1 year ago

我在conda环境中使用pip install ffmpeg-python下载了ffmpeg,但是仍然有这个问题

你可以尝试直接在ffmpeg官网下载,然后将目录加入环境变量,这样就可以命令行调用了