Installatim on Linux Mint 21.1

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.

Locked
User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Installatim on Linux Mint 21.1

Post by tim2xu »

I installed with the installer and used the shortcut to start it up. It shows up the terminal for a second and disappears. I tried using the cli and the following shows up:

tim@htpc:~$ conda activate faceswap
(faceswap) tim@htpc:~$ python faceswap,py -h
python: can't open file '/home/tim/faceswap,py': [Errno 2] No such file or directory
(faceswap) tim@htpc:~$ cd faceswap
(faceswap) tim@htpc:~/faceswap$ python faceswap,py -h
Traceback (most recent call last):
File "/home/tim/faceswap/faceswap,py", line 6, in <module>
from lib.cli import args as cli_args
File "/home/tim/faceswap/lib/cli/args,py", line 14, in <module>
from lib.utils import get_backend
File "/home/tim/faceswap/lib/utils,py", line 132, in <module>
_FS_BACKEND: ValidBackends = Backend().backend
File "/home/tim/faceswap/lib/utils,py", line 55, in init
self.backend = self.
get_backend()
File "/home/tim/faceswap/lib/utils,py", line 100, in _get_backend
fs_backend = config.get("backend", "").lower()
AttributeError: 'NoneType' object has no attribute 'lower'
(faceswap) tim@htpc:~/faceswap$

Machine:
Type: Desktop System: Intel product: NUC7i5BNH v: J31169-311 serial: <superuser required>
Chassis: type: 3 v: 2 serial: <superuser required>
Mobo: Intel model: NUC7i5BNB v: J31144-310 serial: <superuser required> UEFI: Intel
v: BNKBL357.86A.0080.2019.0725.1139 date: 07/25/2019
CPU:
Info: dual core model: Intel Core i5-7260U bits: 64 type: MT MCP arch: Amber/Kaby Lake
note: check rev: 9 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
Speed (MHz): avg: 3400 min/max: 400/3400 cores: 1: 3400 2: 3400 3: 3400 4: 3400
bogomips: 17599
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel Iris Plus Graphics 640 driver: i915 v: kernel ports: active: DP-1
empty: DP-2,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5926
Display: x11 server: X,Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa
gpu: i915 display-ID: :0 screens: 1

I also tried uninstalling and reinstalling a couple of times.
Any help would be appticiated.

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Installatim on Linux Mint 21.1

Post by bryanlyon »

Looks like something failed to install. Can you (from inside the faceswap conda environment) get us your sysinfo.

Code: Select all

GUI Users: Go to Help -> Output system information

CLI Users: From inside your virtual environment, inside your faceswap folder, run:
python -c "from lib.sysinfo import sysinfo ; print(sysinfo)"

And post the log data here. That way we can look at the versions that you're running and see if there are any known leaks in those.

After that, the first thing I'd recommend is running "update-deps.py" from inside the faceswap folder. That tries again to download the latest version of everything. Then see if it works?

User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Re: Installatim on Linux Mint 21.1

Post by tim2xu »

Thiis is what showed up:


(faceswap) tim@htpc:~/faceswap$ python -c "from lib.sysinfo import sysinfo ; print(sysinfo)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tim/faceswap/lib/sysinfo.py", line 12, in <module>
import psutil
ModuleNotFoundError: No module named 'psutil'
(faceswap) tim@htpc:~/faceswap$

User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Re: Installatim on Linux Mint 21.1

Post by tim2xu »

I went ahead and re-downloaded everything and started over and this is where I got to:

Resolving deltas: 100% (528/528), done.
INFO Setting up Faceswap...
INFO Running without root/admin privileges
INFO The tool provides tips for installation and installs required python packages
INFO Setup in Linux 5.15.0-58-generic
INFO Installed Python: 3.9.16 64bit
INFO Running in Conda
INFO Running in a Virtual Environment
INFO Encoding: UTF-8
INFO Installed pip: 22.3.1
INFO Faceswap config written to: /home/tim/faceswap/config/.faceswap
Traceback (most recent call last):
File "/home/tim/faceswap/setup.py", line 1615, in <module>
Install(ENV)
File "/home/tim/faceswap/setup.py", line 968, in init
self._packages.get_required_packages()
File "/home/tim/faceswap/setup.py", line 447, in get_required_packages
with open(requirements_file, encoding="utf8") as req:
FileNotFoundError: [Errno 2] No such file or directory: '/home/tim/faceswap/requirements/requirements_None.txt'
INFO Faceswap installation is complete!
INFO You can launch Faceswap from the icon on your desktop
tim@htpc:~/Downloads$

it still won't run.

User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Re: Installatim on Linux Mint 21.1

Post by tim2xu »

(faceswap) tim@htpc:~/faceswap$ python -c "from lib.sysinfo import sysinfo ; print(sysinfo)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tim/faceswap/lib/sysinfo.py", line 14, in <module>
from lib.gpu_stats import GPUStats, GPUInfo
File "/home/tim/faceswap/lib/gpu_stats/init.py", line 7, in <module>
from lib.utils import get_backend
File "/home/tim/faceswap/lib/utils.py", line 132, in <module>
_FS_BACKEND: ValidBackends = Backend().backend
File "/home/tim/faceswap/lib/utils.py", line 55, in init
self.backend = self.
get_backend()
File "/home/tim/faceswap/lib/utils.py", line 100, in _get_backend
fs_backend = config.get("backend", "").lower()
AttributeError: 'NoneType' object has no attribute 'lower'
(faceswap) tim@htpc:~/faceswap$

User avatar
torzdf
Posts: 2667
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: Installatim on Linux Mint 21.1

Post by torzdf »

Could you tell us what version you attempted to set Faceswap up for when you ran the installer.

My word is final

User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Re: Installatim on Linux Mint 21.1

Post by tim2xu »

/home/tim/Downloads/faceswap_setup_x64.sh

User avatar
torzdf
Posts: 2667
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: Installatim on Linux Mint 21.1

Post by torzdf »

Sorry. I mean what version (CPU, Nvidia, ROCm, etc) when selecting that option in the installer.

My word is final

User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Re: Installatim on Linux Mint 21.1

Post by tim2xu »

It was CPU

Last edited by tim2xu on Sat Feb 11, 2023 4:30 pm, edited 1 time in total.
User avatar
torzdf
Posts: 2667
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: Installatim on Linux Mint 21.1

Post by torzdf »

There was a bug in CPU mode of the installer. Has now been fixed.

Please re-download (https://github.com/deepfakes/faceswap/r ... tup_x64.sh) and try again.

My word is final

User avatar
tim2xu
Posts: 8
Joined: Thu Feb 09, 2023 1:45 am
Been thanked: 1 time

Re: Installatim on Linux Mint 21.1

Post by tim2xu »

That did the trick.
Thanks.

Locked