Guest User

VSeeFace For Ubuntu Linux via Lutris/WINE

a guest
Oct 10th, 2020
11,853
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. Instructions taken from https://www.vseeface.icu/#running-on-linux and my own troubleshooting
  2.  
  3. PREP: do these before starting
  4. Download Arial font here: https://www.cufonfonts.com/font/arial
  5. Download VSeeFace here: https://www.vseeface.icu/#download
  6. If you don't have it already, install Lutris, git and wine64 with the following commands in a terminal
  7.  
  8. sudo apt install git
  9.  
  10. sudo apt install wine64
  11.  
  12. sudo apt install lutris
  13.  
  14. 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
  15.  
  16. sudo apt-get install python3 python3-pip python3-virtualenv git
  17.  
  18. git clone https://github.com/emilianavt/OpenSeeFace
  19.  
  20. cd OpenSeeFace
  21.  
  22. virtualenv -p python3 env
  23.  
  24. source env/bin/activate
  25.  
  26. pip3 install onnxruntime==1.2.0 opencv-python pillow numpy
  27.  
  28. To run the tracker, first enter the OpenSeeFace directory and activate the virtual environment for the current session:
  29.  
  30. source env/bin/activate
  31.  
  32. Then you can run the tracker:
  33.  
  34. python facetracker.py -c 0 -W 1280 -H 720 --discard-after 0 --scan-every 0 --no-3d-adapt 1 --max-feature-updates 900
  35.  
  36. 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.
  37.  
  38. Open Lutris, and unzip the .zip file VSeeFace came in with this command
  39.  
  40. unzip '<filename>.zip'
  41.  
  42. 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.
  43.  
  44. Next, open Lutris and click the Plus sign in the top left corner. Choose "Add game"
  45. 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).
  46.  
  47. 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.
  48.  
  49. Next to "Wine prefix" type in
  50.  
  51. ~/.wine64
  52.  
  53. For "Prefix architecture" choose 64-bit
  54.  
  55. 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.
  56.  
  57. 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!
  58.  
  59. The last thing to fix is the missing Arial font. Add the Arial.ttf file to /home/<YourUsername>/.wine64/drive_c/windows/Fonts/
  60. Replace <YourUsername> with the username of your computer. Alternatively, you can copy paste this location in your file browser ~/.wine64/drive_c/windows/Fonts
  61.  
  62. And you're done! In VSeeFace, select [Network tracking] as your webcam and you're all set!
  63.  
Add Comment
Please, Sign In to add comment