当前位置: 首页 > news >正文

Deep-Live-Cam启动

实验环境

  • 实验时间:2024年8月
  • windows 10 专业版
  • 能跟老外对喷的网络环境
  • 基于 Anaconda 创建 Python 3.10.x 环境

image.png

其它依赖

  • 下载生成工具:https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
  • 安装单个组件:共三个。

image.png

  • 安装ffmpeg。管理员身份打开Windows PowerShell,输入iex (irm ffmpeg.tc.ht),然后选择3

如果不行就自行百度换一种方式安装。

image.png
image.png

项目准备

  • 拉取项目:https://github.com/hacksider/Deep-Live-Cam

  • 下载依赖,放到models目录下:
    https://huggingface.co/hacksider/deep-live-cam/resolve/main/GFPGANv1.4.pth
    https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128_fp16.onnx

  • 安装依赖:pip install -r requirements.txt

  • 安装依赖报错:

 正在生成代码已完成代码的生成LINK : fatal error LNK1158: 无法运行“rc.exe”error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit code 1158[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)
  • 找到rc.exercdll.ddl,拷贝到报错的C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN目录下

image.png
image.png

  • 重新安装依赖:pip install -r requirements.txt

使用GPU(可选)

  • 安装CUDA:https://blog.csdn.net/anmin8888/article/details/127910084
  • 安装依赖:
pip uninstall onnxruntime onnxruntime-gpu
pip install onnxruntime-gpu==1.16.3

使用

  • 启动:python run.py --execution-provider cuda

不用GPU的话就python run.py 命令就行

文件路径不要有中文等特殊符号。

  • 替换Mp4或图片,点击preview即可。
  • 直播预览就点 live

image.png


http://www.mrgr.cn/news/10291.html

相关文章:

  • UV LED供电为什么要选择使用恒流驱动电源
  • Tomcat 优化
  • git如何进行版本回退
  • 8.21 学习playbook-roles,脚本创建数据库和表,mycat读写分离
  • Tomcat的基本使用
  • 如何给pdf加水印?这五个方法,一键批量添加/移除水印!
  • Codeforces Round 968 (Div. 2 ABCD1D2题) 视频讲解
  • netengine ar1000v
  • 银河麒麟V10+qt5,12.11编译mysql驱动连接OceanBase数据库
  • Spark-第六周
  • GAMES104:09高级动画技术:动画树、IK和表情动画-学习笔记
  • 应用实例 | Simufact 增材制造工艺仿真助力保时捷薄壁件打印
  • 设计模式(一):单例模式
  • SQL Server数据库 创建表,和表的增删改查
  • 高性能 Web 服务器:让网页瞬间绽放的魔法引擎(下)
  • 数学建模学习
  • 【Node】【3】回调函数
  • 如何本地搭建 Whisper 语音识别模型?一文解决
  • 【Python】机器学习中的 K-均值聚类算法及其优缺点
  • c++栈和队列(stack和queue)