Skip to content
Hillobar edited this page Feb 10, 2024 · 40 revisions

Overview

How to -

Install

Note: It's only configured for Windows/CUDA (Nvidia), and must use Python 3.10

  • Copy Github files to a local directory
  • Navigate to the Rope main directory (you will see requirements.txt, Rope.bat, Rope.py, and folders)
  • Right click and select 'Open in Terminal' (or open CMD and navigate there)
  • Set up a local venv
    • python.exe -m venv venv
  • Activate your new venv
    • .\venv\Scripts\activate
  • Install requirements
    • .\venv\Scripts\pip.exe install -r .\requirements.txt
  • Download the models from here. Either download the models file, which has all of the model files in it, or just grab the ones you're missing in the list.
  • Unzip models.zip and place the all of the model files into the models\ folder
  • Do this if you've never installed roop or Rope (or any other onnx runtimes):
    • Install FFMPEG
    • Install CUDA Toolkit 11.8
    • Install cuDNN v8.5 for CUDA 11.x from here
  • Double-click on Rope.bat!

Startup

  • First time use:
  1. Select your Source Faces Folder
  2. Select your Target Videos Folder
  3. Select your Output Folder
  4. Click Start Rope
  • Subsequent uses
  1. Click Load Folders. 1, 2, and 3 will be remembered from the last time Rope was used.
  • Models are only loaded when you initialize them the first time. GFPGAN, CLIP, Occluder, and Mouth Parser are not loaded into memory until you click them. If you have lower memory, you should be able to now run more threads if you don't enable them.

Using

  • Set your folders if needed
  • Click 'Start Rope'
  • Select a Video
  • Scroll to a frame with faces you want to swap
  • Click 'Find Faces'
  • Select the Found Face
  • Select an Input Face or Merged Face. This assigns it to the Found face. You can shift-click multiple Input Faces to blend them.
  • Select another Found Face and assign if you have more in the frame.
  • Click 'Swap'
  • All done! Now you can Play/Record/Adjust/etc.
Clone this wiki locally