Giter Club home page Giter Club logo

Comments (6)

albertpumarola avatar albertpumarola commented on July 24, 2024 2

If you check the paper you'll see that the model is trained to only change the facial expression without altering the background. To generate these images I do the following:

  1. Detect faces with the face_recognition library
  2. Crop the face and resize to 128x128
  3. Run it through the model
  4. Rescale the edited face to its original size and place it back into the image

from ganimation.

albertpumarola avatar albertpumarola commented on July 24, 2024

Hi,
For the moment we are not planning to release the trained model as we are working on future improvements. Everything is prepared to be easily trained with any dataset containing faces. The readme contains all the instructions.

from ganimation.

leeeeeeo avatar leeeeeeo commented on July 24, 2024

@albertpumarola Another question: test images are 128x128 face area. How did you put them back on the original image seamlessly like this :
image

from ganimation.

voa18105 avatar voa18105 commented on July 24, 2024

@leeeeeeo I have a same error as you mentioned first, how did you solve it?

from ganimation.

leeeeeeo avatar leeeeeeo commented on July 24, 2024

@voa18105 It's because the trained model is not public available. You need to train your own model to use the test code.

from ganimation.

voa18105 avatar voa18105 commented on July 24, 2024

@leeeeeeo yes, i see... now when i've specified the path to a model I've trained - the error is different

from ganimation.

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.