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

weird testing results: real images should be processed by image alignment #2

Closed
Chopin68 opened this issue Apr 25, 2022 · 6 comments
Closed
Labels
question Further information is requested

Comments

@Chopin68
Copy link

Hi ,
Does this situation need to be solved through training? If so, how can I prepare a data set about her bald head
C (181)

@oneThousand1000
Copy link
Owner

Hi ,
Does this situation need to be solved through training? If so, how can I prepare a data set about her bald head
C (181)

Hi, could you upload the input image and tell me the resolution of it?

Btw, did you process the input image with "image align code" that mentioned in readme?

@oneThousand1000 oneThousand1000 added the question Further information is requested label Apr 25, 2022
@oneThousand1000
Copy link
Owner

Hi ,
Does this situation need to be solved through training? If so, how can I prepare a data set about her bald head
C (181)

Is it the result of testing? Or you get the bald child image during training?

@Chopin68
Copy link
Author

你好,
这种情况需要通过培训解决吗?如果是这样,我如何准备一个关于她光头的数据集
丙 (181)

嗨,你能上传输入图像并告诉我它的分辨率吗?

顺便说一句,您是否使用自述文件中提到的“图像对齐代码”处理输入图像?

The resolution is 512x512
C (181)

I didn't do image alignment, but I used 1024x1024 and succeeded in several cases, but sometimes bald child still appear.

@Chopin68
Copy link
Author

This is the result of the test. I haven't trained yet because I don't know how to collect some bald data sets to fit her.

@oneThousand1000
Copy link
Owner

This is the result of the test. I haven't trained yet because I don't know how to collect some bald data sets to fit her.

As I explained in the readme, you should ** do image alignment first ** (the input image will be automatically clipped and resized to 1024x1024 ) then apply encoder4editing to obtain latent code, finally run our HairMapper.

The image alignment is only required in the testing stage, and there is no need to collect your own bald datasets because all the training images are generated by StyleGAN.

I applied image alignment to your input image:
test_01

I get the result:
test_01

@oneThousand1000 oneThousand1000 changed the title After process, I got a bald child weird testing results: real images should be processed by image alignment Apr 25, 2022
@Chopin68
Copy link
Author

Thank you for your guidance! I already know how to get a normal result.

@oneThousand1000 oneThousand1000 pinned this issue May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants