Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why use --base interfacegan #7

Open
dinusha94 opened this issue May 3, 2024 · 2 comments
Open

Why use --base interfacegan #7

dinusha94 opened this issue May 3, 2024 · 2 comments

Comments

@dinusha94
Copy link

In the readme why it is used as --base interfacegan, except --base ours? to reproduce the results

@yxuhan
Copy link
Owner

yxuhan commented May 6, 2024

Hi, --base ours means the semantic direction obtained by averaging the instance-specific semantic direction of lots of random images. Recall our main contribution is to introduce instance-aware latent space search into editing in the latent space, not a way to compute the base semantic direction, so we just use the base direction from interfacegan as the default option.

@dinusha94
Copy link
Author

Hi, Thanks for the answer, Can you tell me that the following procedure is correct, I need to change the hair color and/or style of a face image

Steps I followed so far

  1. I trained a binary classifier model with hair color images, say black and non-black images from celebahq dataset (lets say classifier as hair)
  2. use python train_attr_level_direction.py --n_images 500 --attr hair to create direction file hair.npy file
  3. use python edit_single_attr.py --seed 0 --step 0.5 --n_steps 4 --dataset celebhq --base interfacegan --attr hair --save_path test_env.jpg

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants