alievk / avatarify
- воскресенье, 12 апреля 2020 г. в 00:21:20
Python
Avatars for Zoom and Skype
Avatars for Skype and Zoom. Democratized.
Disclaimer: This project is unrelated to Samsung AI Center.
vox-adv-cpk.pth.tar file in the root directoryLinux uses v4l2loopback to create virtual camera.
Install avatarify dependencies (sudo privelege is required):
bash scripts/install.shFor Mac it's quite difficult to create a virtual camera, so we'll use CamTwist app:
avatarify conda environment with all required dependencies:source scripts/install_mac.shComing soon!
Copy your avatars into avatars folder. Crop pictures to make them square. Prefer pictures with uniform background.
Your web cam must be plugged-in. You can choose your camera by changing CAMID in scripts/settings.sh script.
It is supposed that there is only one web cam connected to the computer at /dev/video0. The run script will create virtual camera /dev/video9. You can change these settings in scripts/settings.sh.
You can use command v4l2-ctl --list-devices to list all devices in your system. For example, if the web camera is /dev/video1 then the device id is 1.
Run:
bash run.shbash run_mac.shDesktop+ and press Select.Settings section choose Confine to Application Window and select python (avatarify) from the drop-down menu.Your face should fit in the red rectagle: it should not fit perfectly, but don't get too close/far. After that, press any number from 0 to 9 on your keyboard and one of the avatars from avatars directory will appear.
Run Skype or Zoom only when Avatarify is running.
Go to Settings -> Audio & Video, choose avatarify or CamTwist camera.
Go to Settings -> Video and choose avatarify or CamTwist from Camera drop-down menu.
Make a call, allow browser using cameras, click on Settings icon, choose avatarify in Video settings drop-down menu.
Our goal is to democratize deepfake avatars. To make the technology even more accessible, we have to tackle two major problems:
Please make pull requests if you have any improvements or bug-fixes.
avatarify camera. Restart Zoom/Skype and try again.bash run_mac.sh crashes with "Cannot open camera": Try to change CAMID in run_mac.sh from 0 to 1 or 2pipe:0: Invalid data found when processing input: Make sure CAMID in scripts/settings.sh is correct. Use v4l2-ctl --list-devices to query available devices.