[Tip] De-uglyfying Faceswap under Linux

Installing and setting up FaceSwap

Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Post Reply
User avatar
Posts: 1305
Joined: Fri Jul 12, 2019 12:53 am
Answers: 121
Has thanked: 42 times
Been thanked: 259 times

[Tip] De-uglyfying Faceswap under Linux

Post by torzdf »

If you have installed Faceswap under Linux using the provided installer script, chances are that the fonts look ugly as all hell:

ugly.png (34.03 KiB) Viewed 1068 times

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.

  1. 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
  2. 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
  3. 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
  4. Backup the existing tkinter library file:

    Code: Select all

    mv libtk8.6.so libtk8.6.so.bk
  5. 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:

pretty.png (66.16 KiB) Viewed 1068 times

My word is final


User avatar
Posts: 31
Joined: Mon Dec 16, 2019 1:43 pm
Has thanked: 10 times
Been thanked: 4 times

Re: [Tip] De-uglyfying Faceswap under Linux

Post by tokafondo »

Definitely works!! Thanks!!

User avatar
Posts: 1
Joined: Tue Jan 05, 2021 5:52 pm

Re: [Tip] De-uglyfying Faceswap under Linux

Post by isokosan »

Works great! Thank you, looks way better.

Post Reply