deepfakes / faceswap

Deepfakes Software For All
https://www.faceswap.dev
GNU General Public License v3.0
50.52k stars 13.06k forks source link

Requirements now needs a correct version of theano installed. #261

Closed bryanlyon closed 6 years ago

bryanlyon commented 6 years ago

Expected behavior

All functions work.

Actual behavior

After update, system errors out with

ImportError: No module named 'theano'

Installing the latest theano (python3 -m pip install theano) gives the error

ValueError: You are tring to use the old GPU back-end. It was removed from Theano. Use device=cuda* now. See https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29 for more information.

Steps to reproduce

Run any version after 232d9313afabc075e28c1a42047b22e0568200e6 with the INSTALL directions

Proposed solution

Requirements.txt files should include an appropriate version of theano that corresponds to the Keras==2.1.2 that was installed.

I am unsure which version is used or I would have included a patch and pull request.

Other relevant information

Ubuntu Linux, python 3.5

iperov commented 6 years ago

faceswap requie tensorflow, not theano

Clorr commented 6 years ago

Not sure why you have something related to theano. If confirmed please open an issue in faceswap-playground as this is more related to install

bryanlyon commented 6 years ago

Traceback (most recent call last): File "faceswap.py", line 10, in from scripts.extract import ExtractTrainingData File "/superm/data/Projects/faceswap/scripts/extract.py", line 7, in from lib.cli import DirectoryProcessor File "/superm/data/Projects/faceswap/lib/cli.py", line 7, in from lib.faces_detect import detect_faces, DetectedFace File "/superm/data/Projects/faceswap/lib/faces_detect.py", line 1, in from lib import FaceLandmarksExtractor File "/superm/data/Projects/faceswap/lib/FaceLandmarksExtractor/init.py", line 1, in from .FaceLandmarksExtractor import extract File "/superm/data/Projects/faceswap/lib/FaceLandmarksExtractor/FaceLandmarksExtractor.py", line 6, in import keras File "/local/lib/python3.5/site-packages/keras/init.py", line 3, in from . import utils File "/local/lib/python3.5/site-packages/keras/utils/init.py", line 6, in from . import conv_utils File "/local/lib/python3.5/site-packages/keras/utils/conv_utils.py", line 3, in from .. import backend as K File "/local/lib/python3.5/site-packages/keras/backend/init.py", line 80, in from .theano_backend import * File "/home/nikkelitous/.local/lib/python3.5/site-packages/keras/backend/theano_backend.py", line 3, in import theano

Clorr commented 6 years ago

see https://github.com/deepfakes/faceswap-playground/issues/91