Page 1 of 1
Running any of the scripts just quit without an error
Posted: Sat Jul 27, 2019 11:03 am
by vicky_vigia
Hi Team,
Please help me as whatever option that I use, whether to extract or GUI, I get the following message and the code quits:
07/27/2019 16:26:21 INFO Log level set to: INFO
I am stuck here, did whatever I can, but not sure what should I do next!!
Please help me!!

Re: the script just quits without any error!
Posted: Sat Jul 27, 2019 3:47 pm
by torzdf
We would need more information than this.
What OS are you on? How did you install Faceswap?
Re: the script just quits without any error!
Posted: Mon Jul 29, 2019 6:01 am
by vicky_vigia
Sure, I am using Ubuntu 18.04. I installed using miniconda, as mentioned in this reference: https://github.com/deepfakes/faceswap/b ... tall-Guide
Installation was smooth, however, when I ran it for the first time it gave me an error message to downgrade my tensorflow-gpu, which I did to 1.12
Thank you for your reply.
Re: the script just quits without any error!
Posted: Tue Jul 30, 2019 5:01 am
by vicky_vigia
Hi Team,
Please, can anyone help me?
I am stuck for days now!
Best,
Vicky
Re: the script just quits without any error!
Posted: Tue Jul 30, 2019 1:09 pm
by torzdf
Ok, the most likely thing is a Tensorflow conflict somewhere. Running setup.py should not install a tensorflow version higher than is supported.....
system python + conda can conflict.... If you're comfortable setting up a virtual environment in your system python, then removing Conda, installing the correct Cuda and cuDNN and running that way may be the way to go.
Otherwise, from inside your environment, can you give me the output of
and
Re: the script just quits without any error!
Posted: Wed Jul 31, 2019 4:40 am
by vicky_vigia
Many thanks for your reply. I made a virtual environemnt and working on this code. If there are any specific settings to be done in my env, kindly let me know. Meanwhile, the output of pip freeze:
Code: Select all
absl-py==0.7.1
asn1crypto==0.24.0
astor==0.7.1
astroid==2.2.5
certifi==2019.6.16
cffi==1.12.3
chardet==3.0.4
conda==4.7.10
conda-package-handling==1.3.11
cryptography==2.7
fastcluster==1.1.25
ffmpy==0.2.2
gast==0.2.2
grpcio==1.16.1
h5py==2.9.0
idna==2.8
imageio-ffmpeg==0.3.0
isort==4.3.21
joblib==0.13.2
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
lazy-object-proxy==1.4.1
libarchive-c==2.8
Markdown==3.1.1
matplotlib==2.2.2
mccabe==0.6.1
mkl-fft==1.0.12
mkl-random==1.0.2
mkl-service==2.0.2
numpy==1.16.2
nvidia-ml-py3==7.352.1
opencv-python==4.1.0.25
protobuf==3.8.0
psutil==5.6.3
pycosat==0.6.3
pycparser==2.19
pylint==2.3.1
pyOpenSSL==19.0.0
PySocks==1.7.0
requests==2.22.0
ruamel-yaml==0.15.46
scikit-learn==0.21.2
scipy==1.3.0
six==1.12.0
tensorboard==1.12.2
tensorflow==1.12.0
termcolor==1.1.0
toposort==1.5
tqdm==4.32.1
typed-ast==1.4.0
urllib3==1.24.2
Werkzeug==0.15.4
The Output of conda list:
Code: Select all
# packages in environment at /home/vicky/miniconda3/envs/env_condaface:
#
# Name Version Build Channel
Re: the script just quits without any error!
Posted: Wed Jul 31, 2019 9:39 am
by torzdf
Ok, it looks like you have no Conda packages installed.....
What I suggest is deleting that environment and then creating a new one and running setup.py. This will install everything correctly for you:
In the following code replace <envname> with the name of your faceswap environment. (Most likely "faceswap")
On Windows go Start > Anaconda Prompt to get to an Anaconda Prompt, then:
Code: Select all
conda env remove -n <envname>
conda create -n faceswap python=3.6
conda activate faceswap
cd faceswap
python setup.py
Follow the prompts....
Say "No" to "Docker" but make sure everything else is correct for your setup
Re: the script just quits without any error!
Posted: Wed Jul 31, 2019 11:07 am
by vicky_vigia
Thank you, it worked!
However, I am getting the following errors while extracting:
Code: Select all
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/vicky/miniconda3/envs/env_faceswap/lib/python3.6/tkinter/__init__.py", line 1702, in __call__
return self.func(*args)
File "/home/vicky/miniconda3/envs/env_faceswap/lib/python3.6/tkinter/__init__.py", line 746, in callit
func(*args)
File "/home/vicky/Vicky/Projects/facial/faceswap/lib/gui/display_page.py", line 248, in <lambda>
self.after(waittime, lambda t=waittime: self.update_page(t))
File "/home/vicky/Vicky/Projects/facial/faceswap/lib/gui/display_page.py", line 246, in update_page
self.display_item_set()
File "/home/vicky/Vicky/Projects/facial/faceswap/lib/gui/display_command.py", line 28, in display_item_set
frame_dims=(self.winfo_width(), self.winfo_height()))
File "/home/vicky/Vicky/Projects/facial/faceswap/lib/gui/utils.py", line 317, in load_latest_preview
self.load_images_to_cache(imagefiles, frame_dims, thumbnail_size)
File "/home/vicky/Vicky/Projects/facial/faceswap/lib/gui/utils.py", line 368, in load_images_to_cache
draw.rectangle(((0, 0), (thumbnail_size, thumbnail_size)), outline="#E5E5E5", width=1)
TypeError: rectangle() got an unexpected keyword argument 'width'
Any suggestions?
Re: the script just quits without any error!
Posted: Wed Jul 31, 2019 11:13 am
by torzdf
Can you open a new topic and post the crash_report (from your facewap folder) there please.
Also, please mark my post previous as "Answer" (the tick icon)
I'm going to lock this one off as it's solved 
Re: Running any of the scripts just quit without an error
Posted: Wed Jul 31, 2019 12:09 pm
by vicky_vigia
Done! Your word is final so lock it! 