If you have installed Faceswap under Linux using the provided installer script, chances are that the fonts look ugly as all hell:
This is because Anaconda does not build TK with certain required libraries (for reference: https://github.com/ContinuumIO/anaconda ... ssues/6833)
There is a work around to fix this. It's a little hacky, but does work. I provide instructions below for Ububtu 20.04, but this should work for all Linux flavors with a slight change in commands to use your package manager.
Firstly install tkinter for Python 3 for your system (amend this to the package name for tkinter and the installer for your distro if not using Ubuntu):
Code: Select all
sudo apt install python3-tk
FInd where your system installs the library files for tkinter. For ubuntu this will be under
/usr/lib/x86_64-linux-gnu/
You can locate the file with the following command:Code: Select all
sudo find / -name libtk8.6.so
Navigate to the library folder for your Faceswap Conda environment. The default location will be
~/miniconda3/envs/faceswap/lib
so amend the below if you did not install Miniconda in the default location:Code: Select all
cd ~/miniconda3/envs/faceswap/lib
Backup the existing tkinter library file:
Code: Select all
mv libtk8.6.so libtk8.6.so.bk
-
Finally create a symlink to you system tkinter library file. Make sure you amend the path below to the one you found in step 2:
Code: Select all
sudo ln -s /usr/lib/x86_64-linux-gnu/libtk8.6.so libtk8.6.so
Bask in your new found readability: