Giter Club home page Giter Club logo

Comments (13)

lukaville avatar lukaville commented on July 23, 2024 2

@nerdprogrammergm I successfully used floydhub, I made a post about it https://www.reddit.com/r/deepfakes/comments/7mgpki/floydhub_cloud_training/

from faceswap.

yangchen8710 avatar yangchen8710 commented on July 23, 2024

use python3.6 instead of python3?

from faceswap.

Ganonmaster avatar Ganonmaster commented on July 23, 2024

Make sure you are running python 3.6 or otherwise try adding pathlib through pip:

pip install --upgrade pathlib

from faceswap.

Ganonmaster avatar Ganonmaster commented on July 23, 2024

Otherwise, try running the script in a virtualenv as described in the guide.

from faceswap.

nerdprogrammergm avatar nerdprogrammergm commented on July 23, 2024

Thanks for quick reply.
I figured out the issue and now working on further part.
Presently I am getting this error:
Using TensorFlow backend.
usage: faceswap.py [-h] {extract,train,convert} ...
faceswap.py: error: invalid choice: 'extract/trump' (choose from 'extract', 'train', 'convert')

I have extracted the faces in extract/trump and extract/cage,
using this command to train the model: python3.6 faceswap.py -A extract/trump -B extract/cage -m models -p

What wrong am I doing?

from faceswap.

lukaville avatar lukaville commented on July 23, 2024

Most likely you are trying to start the script with invalid arguments. You have to specify 'extract', 'train' or 'convert' right after faceswap.py

from faceswap.

nerdprogrammergm avatar nerdprogrammergm commented on July 23, 2024

I am following the instructions mentioned on this lnk:https://github.com/deepfakes/faceswap/blob/master/USAGE.md

which says to execute the following command to train the model!
python3.6 faceswap.py -A ~/faceswap/data/trump -B ~/faceswap/data/cage -m ~/faceswap/models/

from faceswap.

lukaville avatar lukaville commented on July 23, 2024

Looks like it's a typo in the doc. Use python faceswap.py train -A ~/faceswap/data/trump -B ~/faceswap/data/cage -m ~/faceswap/models/ instead.

from faceswap.

nerdprogrammergm avatar nerdprogrammergm commented on July 23, 2024

Got the issue, its the "train" missed out from the command!
This command should be used to train the model: python3.6 faceswap.py train -A extract/trump -B extract/cage -m models -p
@lukaville @yangchen8710 @Ganonmaster

from faceswap.

nerdprogrammergm avatar nerdprogrammergm commented on July 23, 2024

Yes, thanks man. Have you tried to setup this on aws ec2 p2 instance?
Overthere, I am dealing with the issue for cuda9, got to wait until tensorflow support cuda9.
For cuda8, I tried but somewhere dlib through error about lib related to 9.so . Try to troubleshoot it but found that its tensorflow which is not compatible with cuda9 yet :/
You got any solution for this?

from faceswap.

nerdprogrammergm avatar nerdprogrammergm commented on July 23, 2024

There is also a typo in the doc for converting:
Using TensorFlow backend.
usage: faceswap.py [-h] {extract,train,convert} ...
faceswap.py: error: invalid choice: 'data/trump' (choose from 'extract', 'train', 'convert')

Proper command to convert is: python3.6 faceswap.py convert -i data/trump -o output/trump -m models

@Ganonmaster @yangchen8710

Sorry for tagging ya all, m noob at using github too!

from faceswap.

nerdprogrammergm avatar nerdprogrammergm commented on July 23, 2024

Cool @lukaville , great job.
Will give it a try ;)
In the mean time can you have a look on this link and help me out?
deepfakes/faceswap-playground#10
Thanks once again.

from faceswap.

Ganonmaster avatar Ganonmaster commented on July 23, 2024

The doc changes have been merged. I'll look at your other issue shortly. 👍

from faceswap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.