Tensorflow version error

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
pjcrabbit
Posts: 2
Joined: Thu Oct 29, 2020 12:10 pm

Tensorflow version error

Post by pjcrabbit »

Hi,

I'm trying to run faceswap on my Linux system:

Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

Using an old NVIDIA GPU (GeForce 930MX) with nvidia-driver-450

Installation went fine, but when I try to run the GUI launcher I get this:

$cat faceswap_gui.log
10/29/2020 10:33:05 MainProcess MainThread logger log_setup INFO Log level set to: INFO
10/29/2020 10:33:06 MainProcess MainThread launcher execute_script ERROR The maximumum supported Tensorflow is version 2.2 but you have version 2.3 installed. Please downgrade Tensorflow.

My launcher:

source "/home/paulo/miniconda3/etc/profile.d/conda.sh" activate &&
conda activate 'faceswap' &&
python "/home/paulo/faceswap/faceswap.py" gui

And apparently, I have the right version of Tensorflow:

(faceswap) paulo@paulo-pc:~/faceswap$ conda list | grep tensorflow
tensorflow 2.2.0 gpu_py38hb782248_0
tensorflow-base 2.2.0 gpu_py38h83e3d50_0
tensorflow-estimator 2.2.0 pyh208ff02_0
tensorflow-gpu 2.2.0 h0d30ee6_0

Help?

Thanks

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: Tensorflow version error

Post by bryanlyon »

It looks like your system might be breaking out of your conda to a system-wide install of tensorflow. I'd suggest removing any system installed libraries and making everything run under a conda environment.

User avatar
pjcrabbit
Posts: 2
Joined: Thu Oct 29, 2020 12:10 pm

Re: Tensorflow version error

Post by pjcrabbit »

I also thought that could be it, but my system-wide tensorflow version is also 2.2. Don't know where it got the 2.3 reference. Anyway, my machine just broke and I'll need to fix it and set everything up again. It's my chance to setup faceswap on a fresh Ubuntu install, see if it helps.

Thanks

Locked