GithubHelp home page GithubHelp logo

Comments (5)

woctezuma avatar woctezuma commented on July 26, 2024

If you have only 1 initial face, you need to have latent directions for different expressions in order to perform:

  • expression transfer.

If you have at least 2 initial faces, you could perform:

  • morphing,
  • style transfer.

To edit latent vectors of projected images, run stylegan2_editing_latent_vectors.ipynb Open In Colab

You can also check expression transfer done with encoder4editing Open In Colab or other methods.

from stylegan2-projecting-images.

fivoskal avatar fivoskal commented on July 26, 2024

Thanks for the answer but sorry for not being clear enough. I am using your script project_images.py but can't find my way around changing the initial face used for projections. How can I do this?

from stylegan2-projecting-images.

woctezuma avatar woctezuma commented on July 26, 2024

This script is only used to project the initial face, i.e. to find the latent vector which would encode the face.

To change the face, you need to edit the latent vector, which I do in some of the cells of the notebook linked above.

This is also done a bit by encoder4editing linked above, which is a nice project which did not exist when I created this repository.

from stylegan2-projecting-images.

fivoskal avatar fivoskal commented on July 26, 2024

so the initial face (not the one I input) is created by a random seed. where can I edit this noise vector in the project_images.py script?

from stylegan2-projecting-images.

woctezuma avatar woctezuma commented on July 26, 2024

What you call the "initial face" must be the first face that you see during the projection. This is actually the "average" face.

It is initialized here in the official code by Nvidia:
https://github.com/NVlabs/stylegan2/blob/81ae61d7753c6a7b5a38c29aa81aed15adb19c2f/projector.py#L67

from stylegan2-projecting-images.

Related Issues (12)

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.