DeokyunKim / Progressive-Face-Super-Resolution

Official Pytorch Implementation of Progressive Face Super-Resolution (BMVC 2019 Accepted)
260 stars 61 forks source link

Input Size #8

Open xsacha opened 5 years ago

xsacha commented 5 years ago

Does the input size have to be 16x16? What if we want to use custom size, or even 32x32?

DeokyunKim commented 5 years ago

The model will have to be retrained. I am not sure if the quality of images is good, but the model generates x8 upscaled images (256x256) since the network is composed of fully convolutional layers.

yangyingni commented 4 years ago

The model will have to be retrained. I am not sure if the quality of images is good, but the model generates x8 upscaled images (256x256) since the network is composed of fully convolutional layers.

Hello,thank you for your work.But i got quite bad results.I put pictures(128128 bicubiced by 1616 ) in CelebA to test.Can you tell me if i am right or not?Thank you.

DeokyunKim commented 4 years ago

Hi, you should make the input image (16x16) from the HR image (128 x 128) with the progressively downsample. 128x128 -> 64x64 -> 32x32 -> 16x16. We found that directly downsampled image is slightly different to progressively downsampled one.

yangyingni commented 4 years ago

Hi, you should make the input image (16x16) from the HR image (128 x 128) with the progressively downsample. 128x128 -> 64x64 -> 32x32 -> 16x16. We found that directly downsampled image is slightly different to progressively downsampled one.

Thank you very much.And the input size should be directly unsampled to 128 or progressively upsampled to 128?It's kind of you.Thank you very much.

DeokyunKim commented 4 years ago

Uploaded trained model can generate directly upsampled 128x128 image.

yangyingni commented 4 years ago

Uploaded trained model can generate directly upsampled 128x128 image.

Hello,thank you for your reply.I tried as you told me.But i got worse results.

DeokyunKim commented 4 years ago

Could you send me your test image? I will try it. Since this model was trained with bilinear downsampled images, however, the natural low-resolution image may not be upsampled successfully by this model.

yangyingni commented 4 years ago

It's one of my test picture.And the dataset i use is also celeba,same input and output size.

------------------ 原始邮件 ------------------ 发件人: "notifications"<notifications@github.com>; 发送时间: 2020年1月9日(星期四) 晚上9:23 收件人: "DeokyunKim/Progressive-Face-Super-Resolution"<Progressive-Face-Super-Resolution@noreply.github.com>; 抄送: "泱渶"<2676426668@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [DeokyunKim/Progressive-Face-Super-Resolution] Input Size (#8)

Could you send me your test image? I will try it. Since this model was trained with bilinear downsampled images, however, the natural low-resolution image may not be upsampled successfully by this model.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

DeokyunKim commented 4 years ago

I can not find sample images.

yangyingni commented 4 years ago

You can try pictures starts from 801. jpg in celeba,I downsampled pictures to 16 slowly. 

---Original--- From: "DeokyunKim"<notifications@github.com> Date: Thu, Jan 9, 2020 23:13 PM To: "DeokyunKim/Progressive-Face-Super-Resolution"<Progressive-Face-Super-Resolution@noreply.github.com>; Cc: "Comment"<comment@noreply.github.com>;"yangyingni"<2676426668@qq.com>; Subject: Re: [DeokyunKim/Progressive-Face-Super-Resolution] Input Size (#8)

I can not find sample images.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

xiaohaipeng commented 4 years ago

@yangyingni i test with celeba imags of 178*218, got bad results,too. Do you solve it?