roop教程

roop教程

  1. install python (and pip too if neeed)
  2. install git
  3. install ffmpeg
  4. If you are on Windows, install “Microsoft Visual C++ 14” and C++ build tools.
  5. git clone https://github.com/s0md3v/roop
  6. cd roop && pip install -r requirements.txt
  7. Download this file and keep it in roop directory. Mirror #1, Mirror #2, Mirror #3, Mirror #4. Rename it to inswapper_128.onnx if it isn’t already.

Done. You should be able to use this software with python run.py command.

If you are on windows, this detailed explanation will most likely work for you. If you are on linux, well read on:

  1. install CUDA toolkit from here
  2. install CUDNN from here
  3. pip uninstall onnxruntime onnxruntime-gpu
  4. pip install torch torchvision torchaudio --force-reinstall --index-url https://download.pytorch.org/whl/cu118
  5. pip install onnxruntime-gpu

Having trouble?

安装 问题

我是win10操作系统,python3.9.5

cuda_11.8.0_522.06_windows.exe

下载玩 安装cuda_11.8.0。如果之前有安装旧版本,需要先卸载旧版本后再安装。

cudnn-windows-x86_64-8.9.1.23_cuda11-archive.zip

下载好之后,直接解压cuDNN压缩包,可以看到bin、include、lib目录,如下图:

  打开C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA,找到bin、include、lib目录,如下图:


  接下来将cuDNN压缩包内对应的bin、include、lib目录下的文件对应的复制到bin、include、lib目录下。

● 注意:是复制文件夹下的文件到bin、include、lib目录,不是复制目录。

进入 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\extras\demo_suite

在此路径下打开powershell(shift+鼠标右键选择在此处打开Powershell窗口(S)),执行命令.\bandwidthTest.exe

C:/Users/bl/AppData/Roaming/Typora/typora-user-images/image-20230531175500683.png

怎么解决 Could not locate zlibwapi.dll. Please make sure it is in your library path!

Installing Zlib

Zlib is a data compression software library that is needed by cuDNN.

  1. Download and extract the zlib package from here

    If using Chrome, Edge, or other modern browsers, the file may not automatically download. If this happens, right-click the link and choose Save link as…. Then, paste the URL into a browser window.

  2. Add the directory path of zlibwapi.dll to the environment variable PATH.

    比如:C:\Windows

随机文章