TheArtOfPour / avatarify-windows

Real-Time Deepfake Avatars for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avatarify

Avatars for video calls - set up for Windows, updated for Python 3.8

Based on:

Requirements

Performance:

  • Windows (with 1080 Ti GPU): ~30 fps

Guide

▶️ YOUTUBE TUTORIAL

Install

Download

  1. Download model's weights from Google Drive [716 MB] or from Mega [716 MB]
  2. Place vox-adv-cpk.pth.tar file in the root directory

Windows

  1. Setup avatarify conda environment with all required dependencies. Open your miniconda command prompt, navigate to the avatarify-windows folder and run: install.bat
  2. Now execute run.bat - you should now see the application running, and two windows will appear, if everything is working correctly. Ensure your webcam is not already in use.
  3. To output to webcam, download and install OBS
  4. Download and install the latest Windows release of OBS-VirtualCam
  5. Reboot.
  6. You are now able to use OBS to capture the output window of Avatarify, and output your result to a virtual webcam.

Setup avatars

Copy your avatars into avatars folder. Crop pictures to make them square. Prefer pictures with uniform background.

Run

Your web cam must be plugged-in. You can choose your camera when running run.bat

Controls

Keys Controls
1-9 These will immediately switch between the first 9 avatars.
0 Toggles avatar display on and off.
A/D Previous/next avatar in folder.
W/S Zoom camera in/out.
Z/C Adjust avatar target overlay opacity.
X Reset reference frame.
F Toggle reference frame search mode.
R Mirror reference window.
T Mirror output window.

Tips

It is recommended to use the avatar overlay and the zoom in/out function to align your face in the preview window as closely as possible in proportion and position to the target avatar. When you have aligned, hit 'X' to use this frame as reference to drive the rest of the animation.

Alternatively, you can hit 'F' for the software to attempt to find a better reference frame itself. This will slow down the framerate, but while this is happening, you can keep moving your head around: the preview window will flash green when it finds your facial pose is a closer match to the avatar than the one it is currently using. You will see two numbers displayed as well: the first number is how closely you are currently aligned to the avatar, and the second number is how closely the reference frame is aligned.

You want to get the first number as small as possible - around 10 is usually a good alignment. When you are done, press 'F' again to exit reference frame search mode.

You don't need to be exact, and some other configurations can yield better results still, but it's usually a good starting point.

Skype

Go to Settings -> Audio & Video, choose OBS-Camera camera.

Zoom

Go to Settings -> Video and choose OBS-Camera from Camera drop-down menu.

Slack

Make a call, allow browser using cameras, click on Settings icon, choose OBS-Camera in Video settings drop-down menu.

Discord

Go to User Settings -> Voice & Video, choose OBS-Camera from Camera drop-down menu.

About

Real-Time Deepfake Avatars for Windows

License:Other


Languages

Language:Python 79.5%Language:Shell 15.6%Language:Batchfile 5.0%