gball个人知识库
首页
基础组件
基础知识
算法&设计模式
  • 操作手册
  • 数据库
  • 极客时间
  • 每日随笔
  • 学习
  • 面试
  • 心情杂货
  • 实用技巧
  • 友情链接
  • 画图工具 (opens new window)
关于
  • 网盘 (opens new window)
  • 分类
  • 标签
  • 归档
项目
GitHub (opens new window)

ggball

后端界的小学生
首页
基础组件
基础知识
算法&设计模式
  • 操作手册
  • 数据库
  • 极客时间
  • 每日随笔
  • 学习
  • 面试
  • 心情杂货
  • 实用技巧
  • 友情链接
  • 画图工具 (opens new window)
关于
  • 网盘 (opens new window)
  • 分类
  • 标签
  • 归档
项目
GitHub (opens new window)
  • 操作手册

    • 7
    • es640安装
    • frp
    • gitlab_docker安装
    • nginx
    • 支付宝支付环境搭建
    • ngrok搭建
    • Onedrive云盘同步本地文件夹(适用于Windows)
    • oneUploader搭建
    • redis
    • skyWalking搭建
    • skyWalking搭配springboot应用
    • sublime操作
    • unblockMusic
    • win10右键新建md文件
    • yarn安装
    • 搭建cloudreve并选择onedrive作为加载策略
    • 服务器管理
    • 网盘
    • 针对支付宝-当面付实现的个人支付
    • 网页调试技巧
    • 利用vercel一键部署自己的chatgpt网站
    • MeterSphere-Jenkins插件实现测试计划触发执行
    • python安装
    • 个人网站实现微信扫码登录
    • esxi创建虚拟机,安装centos7
    • windows安装Deep-Live-Cam教程
      • windows10配合1650显卡安装Deep-Live-Cam教程,实现实时换脸,效果流畅!
        • 官方实例
        • 使用GPU加速
        • 安装过程遇到的问题
    • AIIDE
  • maven

  • 部署

  • git

  • 工具包

  • 测试

  • docker

  • chatgpt

  • 工具与部署
  • 操作手册
ggball
2024-08-11

windows安装Deep-Live-Cam教程

# windows10配合1650显卡安装Deep-Live-Cam教程,实现实时换脸,效果流畅!

# 官方实例

demo

# 1.环境配置

  • python (3.10 recommended)
  • pip
  • git
  • ffmpeg (opens new window) 需要配置环境变量
  • visual studio 2022 runtimes (windows) (opens new window)

# 2. 克隆仓库

https://github.com/hacksider/Deep-Live-Cam.git

# 3. 下载模型

  1. GFPGANv1.4 (opens new window)
  2. inswapper_128_fp16.onnx (opens new window)

下载好之后,将模型放到models文件夹下 20240811131835

# 4. 安装依赖

强烈推荐使用venv虚拟环境

# 创建虚拟环境
python -m venv venv
# 激活虚拟环境
venv\Scripts\activate
1
2
3
4
pip install -r requirements.txt
1

# 5. 运行

python run.py
1

# 6.使用实时摄像头

20240811135212

# 7.演示效果

8月11日

# 使用GPU加速

  1. 安装 CUDA Toolkit 11.8 (opens new window)

  2. 安装依赖:

pip uninstall onnxruntime onnxruntime-gpu
pip install onnxruntime-gpu==1.16.3

1
2
3
  1. 如果gpu可以使用,则使用下面的命令:
python run.py --execution-provider cuda

1
2

# 安装过程遇到的问题

# AttributeError: 'NoneType' object has no attribute 'configure'

原因:没有安装 ffmpeg 或者没有配置环境变量 对应issue:https://github.com/hacksider/Deep-Live-Cam/issues/67

# tb-nightly install error

原因:未知 解决方案:

pip install tb_nightly==2.14.0a20230808 -i https://mirrors.aliyun.com/pypi/simple
pip install gfpgan==1.3.8
1
2

对应issue:https://github.com/hacksider/Deep-Live-Cam/issues/127

# 画面模糊

原因:依赖的onnxruntime-gpu版本问题 解决方案:

pip uninstall onnxruntime onnxruntime-gpu
pip install onnxruntime-gpu==1.16.3
1
2

对应issue:无

上次更新: 2025/06/04, 15:06:15
esxi创建虚拟机,安装centos7
AIIDE

← esxi创建虚拟机,安装centos7 AIIDE→

最近更新
01
AIIDE
03-07
02
githubActionCICD实战
03-07
03
2023-12
01-01
更多文章>
Theme by Vdoing
总访问量 次 | 总访客数 人
| Copyright © 2021-2025 ggball | 赣ICP备2021008769号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式
×

评论

  • 评论 ssss
  • 回复
  • 评论 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  • 回复
  • 评论 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  • 回复
×