Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 一阶运动模型_Python_Python 3.x_Python 3.7_Deep Fake - Fatal编程技术网

Python 一阶运动模型

Python 一阶运动模型,python,python-3.x,python-3.7,deep-fake,Python,Python 3.x,Python 3.7,Deep Fake,每当我运行此命令时: python demo.py --config config/vox-adv-256.yaml --driving_video driving.mp4 --source_image source.png --checkpoint vox-adv-cpk.pth.tar --relative --adapt_scale --cpu 我得到这个错误: Traceback (most recent call last): File "demo.py",

每当我运行此命令时:

python demo.py --config config/vox-adv-256.yaml --driving_video driving.mp4 --source_image source.png --checkpoint vox-adv-cpk.pth.tar --relative --adapt_scale --cpu
我得到这个错误:

Traceback (most recent call last):   File "demo.py", line 132, in <module>
    reader = imageio.get_reader(opt.driving_video)   File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\functions.py", line 129, in get_reader
    return format.get_reader(request)   File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\format.py", line 168, in get_reader
    return self.Reader(self, request)   File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\format.py", line 217, in __init__
    self._open(**self.request.kwargs.copy())   File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\plugins\ffmpeg.py", line 319, in _open
    self._exe = self._get_exe()   File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\plugins\ffmpeg.py", line 281, in _get_exe
    cls._exe = cls._exe or get_exe()   File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\plugins\ffmpeg.py", line 121, in get_exe
    raise NeedDownloadError('Need ffmpeg exe. ' imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can obtain it with either:
  - install using conda: conda install ffmpeg -c conda-forge
  - download using the command: imageio_download_bin ffmpeg
  - download by calling (in Python): imageio.plugins.ffmpeg.download()
Traceback(最近一次调用last):文件“demo.py”,第132行,在
reader=imageio.get_reader(opt.driving_video)文件“C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site packages\imageio\core\functions.py”,第129行,在get_reader中
return format.get\u reader(请求)文件“C:\Users\admin\AppData\Local\Programs\Python37\lib\site packages\imageio\core\format.py”,第168行,在get\u reader中
返回self.Reader(self,request)文件“C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site packages\imageio\core\format.py”,第217行,在\uu init中__
self.\u open(**self.request.kwargs.copy())文件“C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site packages\imageio\plugins\ffmpeg.py”,第319行,在\u open中
self._exe=self._get_exe()文件“C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site packages\imageio\plugins\ffmpeg.py”,第281行,在_get_exe中
cls._exe=cls._exe或get_exe()文件“C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site packages\imageio\plugins\ffmpeg.py”,get_exe第121行
引发NeedDownloadError('需要ffmpeg exe。'imageio.core.fetching.NeedDownloadError:需要ffmpeg exe。您可以通过以下任一方式获得它:
-使用conda安装:conda安装ffmpeg-c conda forge
-使用以下命令下载:imageio_download_bin ffmpeg
-通过调用下载(在Python中):imageio.plugins.ffmpeg.download()

请帮助!

它清楚地表明它找不到操作系统的
ffmpeg.exe
下载
ffmpeg
二进制文件,并将其路径添加到环境变量中。查看日志看起来像是在windows上,因此您可以从中下载ffmpeg-zip,然后将其解压缩,并将从解压缩数据中添加到bin文件夹的路径r环境路径和好运制作具有一阶运动模型的动画视频:P