Coder Social home page Coder Social logo

Comments (9)

shaoanlu avatar shaoanlu commented on August 26, 2024

The required dependencies are basically the same with deepfakes'. Despite I use jyputer notebook as the main script, which can be made into a .py file. I believe somebody will (or already) post tutorials on reddit. If you are stuck on installing python packages, my suggestion is to find a cloud platform providing instances, e.g., AWS with proper AMI, that have dlib and Keras etc. pre-installed, then you will be ready to move on.

To sum up, as long as you can run deepfakes' scripts on your machine, there will be little difficulty running my model.

from faceswap-gan.

ruah1984 avatar ruah1984 commented on August 26, 2024

thanks for the advice, i had run deepfakes script a week with cloud plateform in floydhub. still stuck with some error message. i still thinking if i able to try another method to get the same result or not.

My question here
if i have a training data ( crop image for celebrity A and B) , target as you mentioned in the readme means the target video (Frame) to be convert back ??. so basically , i will just need to run FaceSwap_GAN_github.ipynb with data set ./TE/ ( training folder) and ./SH/ as (Target folder) ?? if i already have all the training library

from faceswap-gan.

shaoanlu avatar shaoanlu commented on August 26, 2024

FaceSwap_GAN_github.ipynb mainly consists of 2 part:
1. Train a model.
2. Take a video as input, use the trained model to generate swapped face for each frame, then output a video. By default it transforms faces from source face (in ./SH) to target face (in ./TE).

Notice that If you run "all" cells in the jupyter notebook, it actually generate video twice. One in section "Making video clips w/o face alignment" and another in "Making video clips w/ face alignment". I recommend to run only the former one and ignore the latter to avoid possible bugs.

from faceswap-gan.

Nelthirion avatar Nelthirion commented on August 26, 2024

By the way, How many iterations it took for your GAN model to train? the AutoEncoder doesn't take long (mainly 15000 iterations is enough) but the GAN seems to take its time to learn a proper distribution of faces...

from faceswap-gan.

shaoanlu avatar shaoanlu commented on August 26, 2024

I trained my model for about 15k iterations as well. Batch size is 32. Also, I've tried further training it for 5k iters (i.e., 20k on total) but didn't find noticeable difference regarding output quality. So I assume it is converged and stopped there.

from faceswap-gan.

ruah1984 avatar ruah1984 commented on August 26, 2024

sorry to interrupt again. for TE and SH folder must be picture with video flame and face?? if i want to run in floydhub, what will be the best command ??

from faceswap-gan.

shaoanlu avatar shaoanlu commented on August 26, 2024

We put face images of any size into those folders.

I haven't used floydhub for months, and I barely remember how to use it. But I believe the jupyter notebook will work since training only requires packages like OpenCV, numpy and keras.

from faceswap-gan.

ruah1984 avatar ruah1984 commented on August 26, 2024

may i know what is the issue, if i found this in jupyter notebook??

AssertionErrorTraceback (most recent call last)
in ()
3 train_B = load_data(img_dirB)
4
----> 5 assert len(train_A), "No image found in " + str(img_dirA)
6 assert len(train_B), "No image found in " + str(img_dirB)

AssertionError: No image found in ./sh/.

i have load sh and te folder in floydhub ( using the previous git hub version which is sh for source and te for target). but here mention "No image found. /sh/."

here is the command i use in floydhub
floyd run --gpu --mode jupyter --env tensorflow-1.4:py2 --sh:/sh --data te:/te

from faceswap-gan.

shaoanlu avatar shaoanlu commented on August 26, 2024

It means no image found in sh folder.

If the sh and te folders are from your previous floyd experiment, and you are going to load them in a new experiment. These folders are probably be located at /input/sh and /input/te if I remember correctly (don't know if floyd API had changed).

from faceswap-gan.

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.