- Notifications
You must be signed in to change notification settings - Fork0
hsmike/avatarify-desktop
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Avatarify for desktop with a user friendly interface.
- Windows 10
- Nvidia GPU: GeForce 1070 or higher is recommended
- Web camera
- DownloadAvatarify Desktop (897 Mb).
- Double click on the installer. Windows Defender warning screen may pop up telling that the app comes from an unknown source. Click "More info", then "Run anyway".
- Follow the instructions of the setup Wizard. You may opt to the default settings.
- The app starts automatically after the installation. If that didn't happen, press Windows button and start typing "Avatarify" and select "Avatarify Desktop". Windows Defender warning screen may pop up telling that the app comes from an unknown source. Click "More info", then "Run anyway".
- In theSettings section of the main window, choose your web camera in the drop-down menu.
- Position your head in the center of the frame and press C to calibrate.
- Left-click on any avatar and start driving.
Tip: whenever your avatar screws, press C (or clickCalibrate button) to reset the initial pose.
To break into video conferencing with an avatar, set up theVirtual camera.
This example is for Zoom, but the procedure is similar in the other video-conf apps.
- In Zoom, go toSettings ->Video.
- In theCamera drop-down menu, chooseAvatarify Camera.
- You should see your avatar immediately. If you see image from your web camera, go back to Avatarify and left-click on an avatar.
- Click onOpen image file in the main window.
- Browse to your image with an avatar and open it.Requirements to images: one face, neutral emotion, frontal look.
- Crop your image. Using the slider under the window, zoom image so that shoulder are slightly captured. Drag the image using left mouse button and center the head of the avatar. Leave some space between top of the head and image border.
- Click onSave button. The new avatar will appear on the left of the avatar reel.
Avatar driving works better when your calibration pose matches the avatar's pose.
- If an avatar is selected, left-click on it to switch to the web camera mode.
- Right-click on the avatar to make it appear as an overlay on your web camera image.
- UseOverlay slider in theSettings section to change opacity of the overlay.
- Match your pose and expression with the avatar and press C to calibrate.
- Left-click on the avatar to drive it.
The app has a function to automatically track the position of your head. It's useful when your web camera is mounted sidewise and you not appear in the center of the frame.
In theSettings section, switchSmart crop slider. The app will start tracking your head and move it to the center of the frame. When it's done, press C to calibrate.
Key | Action |
---|---|
C | Calibrate. |
⬅️ ➡️ | Switch to previous / next avatar. |
F | Fullscreen mode |
- Qt
- Downloadonline installer
- Run the installer and on the Select Components page select these components:
- Qt -> Qt 5.15.2. Deselect all components except MSVC 2019 64bit to save disk space
- Qt -> Developer and Designer Tools -> OpenSSL 1.1.1d Toolkit
- libtorch. Library for NN inference. Download library here:https://pytorch.org/ (Stable; Windows; C++/Java; 10.2/None). Direct links:release,debug. Extract files to
- Release: C:\SDKs\libtorch-win-shared-with-deps-1.6.0
- Debug: C:\SDKs\libtorch-win-shared-with-deps-debug-1.6.0
Make sure path C:\SDKs\libtorch-win-shared-with-deps-1.6.0\lib (for release) is correct. Remove extra sub-directories if necessary.
- Check that you have libtorch at C:\SDKs\
git clone https://github.com/vlivashkin/avatarify-desktopcd avatarify-desktopgit submodule update --init --recursive
- Build the project with Qt Creator. Choose MSVC 2019 64-bit kit and Release configuration.
- Download additional files fromhere and unpack to C:\Users\[user]\.avatarify. This folder has the following structure:
- .avatarify\avatars: avatar pictures
- .avatarify\models: FOMM and landmark detector model weights
- Download AkVirtualCamera.plugin fromhere and unpack to [build]/avatarify. Avatarify will register еру plugin on the first run.
(not very clean solution, but at least it works)
- Build release solution
- Call
make install
in cmake-build-release folder. Clean installation files will be located in C:\Program Files\Avatarify - Compress folder with 7z and put it in avatarify-desktop\installer\packages\com.avatarify.desktop\data folder
- You need to make similar archives for models and avatars from C:\Users\[user]\.avatarify and put them to com.avatarify.desktop.models and com.avatarify.desktop.avatars folders
- Run avatarify-desktop\installer\package_for_windows.bat
About
Successor of Avatarify Python
Resources
Stars
Watchers
Forks
Packages0
Languages
- C++68.7%
- QML13.5%
- CMake9.2%
- QMake5.1%
- Qt Script3.1%
- C0.3%
- Batchfile0.1%