Giter Club home page Giter Club logo

Comments (3)

oneThousand1000 avatar oneThousand1000 commented on July 21, 2024

Hi! In reading your code, I found a detail that may not correspond to the paper. This detail is insignificant, but if possible, I still want to know if you have unique thinking.

Specifically, in '.\styleGAN2_ada_model\stylegan2_ada_generator.py', near line 384, image the [7-17] layers (starting from 0) of the edited W + are replaced by the original W +. That is, only the first 7 layers of W + are ''obviously'' manipulated.

Is this inconsistent with the first 8 layers of change mentioned in the paper, or do I make a low-level code understanding mistake?

Again, this is insignificant. I just want to know if you have a unique understanding and whether the open-source pre-trained HairMapper is also trained in this way.

Sorry for the inaccurate parameter in code.
In fact, the author of stylegan divide the 18 layers of latent code into 3 level: [0,4) for coarse (high-level aspects such as pose, hairstyle, face shape ....), [4,8) for the middle (smaller scale facial features) and [8-18) for fine (mainly the color scheme and microstructure). More details can be found in "A Style-Based Generator Architecture for Generative Adversarial Networks", page 4.

So that in paper, we propose to manipulate the first 8 layers (coarse and middle), and preserve the fine styles.

from hairmapper.

oneThousand1000 avatar oneThousand1000 commented on July 21, 2024

Moreover, I think manipulating the first 8 layers or 7 layers won't affect the results too much, because such a separation (coarse, middle and fine) is not so strict.
(As you can see in our pre-trained model, most of the fine styles are preserved.)

from hairmapper.

gzhhhere avatar gzhhhere commented on July 21, 2024

I understood, thank you for your reply.

from hairmapper.

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.