Skip to content

quality on stylegan_ffhq #35

Closed
Closed

Description

@IQ17

Hi, thanks for the paper and the results are impressive!

I tested the code with "stylegan_ffhq" model and "stylegan_ffhq_pose_boundary.npy or stylegan_ffhq_pose_w_boundary.npy", with the default settings, but the results are not very good.

The person identity, age, even gender changed simultaneously with the pose.
Regarding to the "stylegan_ffhq_pose_w_boundary.npy", the degree of pose changes are more or less ignorable.

python edit.py -m stylegan_ffhq -o results/stylegan_ffhq_pose_w_boundary -b ./boundaries/stylegan_ffhq_pose_w_boundary.npy -n 10

Is there anything that I have to adjust?

Activity

  1. ShenYujun commented on Feb 23, 2020

    @ShenYujun
    Collaborator

    How about setting --latent_space_type=w, since you are using the boundary from W space.

  2. IQ17 commented on Feb 23, 2020

    @IQ17
    Author

    Yes, I tried with --latent_space_type=w or --latent_space_type=W but the outputs are not face anymore.

  3. IQ17 commented on Feb 23, 2020

    @IQ17
    Author

    I use stylegan_ffhq to generate the images, and the generated images are great. Thus I think the model is correct.

  4. ShenYujun commented on Feb 23, 2020

    @ShenYujun
    Collaborator

    That is because the current codebase will randomly sample w codes subject to Gaussian distribution instead of the actual distribution. There are basically two solutions
    (1) Run generate_data.py first, which will save w.npy in the output folder. Then use -i option in edit.py to load the generated w codes.
    (2) See HiGAN which provides a more robust generator, which will sample codes from the actual distribution.

  5. IQ17 commented on Feb 23, 2020

    @IQ17
    Author

    Thanks! Using the solution 1, the results are good!

  6. xing-shuai commented on Sep 14, 2024

    @xing-shuai

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions