Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instructions taken from https://www.vseeface.icu/#running-on-linux and my own troubleshooting
- PREP: do these before starting
- Download Arial font here: https://www.cufonfonts.com/font/arial
- Download VSeeFace here: https://www.vseeface.icu/#download
- If you don't have it already, install Lutris, git and wine64 with the following commands in a terminal
- sudo apt install git
- sudo apt install wine64
- sudo apt install lutris
- To make this work, you will need an opensource face tracker the VSeeFace will read from, since programs in wine can't detect a camera. To install, run the following commands in this order
- sudo apt-get install python3 python3-pip python3-virtualenv git
- git clone https://github.com/emilianavt/OpenSeeFace
- cd OpenSeeFace
- virtualenv -p python3 env
- source env/bin/activate
- pip3 install onnxruntime==1.2.0 opencv-python pillow numpy
- To run the tracker, first enter the OpenSeeFace directory and activate the virtual environment for the current session:
- source env/bin/activate
- Then you can run the tracker:
- python facetracker.py -c 0 -W 1280 -H 720 --discard-after 0 --scan-every 0 --no-3d-adapt 1 --max-feature-updates 900
- OpenSeeFace is now ready to go, but we'll still need to install VSeeFace and get it running in WINE. To make this a bit easier, we'll use Lutris as a GUI which can be simpler to uderstand. If you are comfortable with using WINE the standard way, feel free to do that instead.
- Open Lutris, and unzip the .zip file VSeeFace came in with this command
- unzip '<filename>.zip'
- replace <filename> with the name of your .zip file and leave the '' in case the name has spaces. Move the now extracted folder to where you will want the program to live as we'll need to not change its location once Lutris is set up.
- Next, open Lutris and click the Plus sign in the top left corner. Choose "Add game"
- In the Game Info tab, enter the name of your program (In our case, VSeeFace) and select the runner. We'll want the newest wine version so if you don't have that, click "install runners" next to the drop-down menu and scroll down untill you see Wine. click the icon that says "Manage versions" when your mouse is over it and hit the check box next to the newest version (as of writing, the latest version is lutris-5.7-10).
- Once you have that installed and you have selected WINE for the runner, click on the "Game options" tab, and click the "browse" on the line for the executable. Locate where you saved the VSeeFace folder and select "VSeeFace.exe" from within that folder. If you ever move this folder, you'll need to reselect it in this tab.
- Next to "Wine prefix" type in
- ~/.wine64
- For "Prefix architecture" choose 64-bit
- In the "Runner Options" tab, make sure the WINE version you installed is chosen, and leave the rest at the defaults. Click "Save" in the bottom right.
- Back in the main Lutris page, you should now have an entry for VSeeFace (or whatever you named it). Click on it, and then "Play" in the menu on the right. If it works, you're ready for the last fix!
- The last thing to fix is the missing Arial font. Add the Arial.ttf file to /home/<YourUsername>/.wine64/drive_c/windows/Fonts/
- Replace <YourUsername> with the username of your computer. Alternatively, you can copy paste this location in your file browser ~/.wine64/drive_c/windows/Fonts
- And you're done! In VSeeFace, select [Network tracking] as your webcam and you're all set!
Add Comment
Please, Sign In to add comment