hamidreza-dastmalchi / WIPA-Face-Super-Resolution

Pytorch implementation of WIPA: Super-resolution of very low-resolution face images with a Wavelet Integrated, Identity Preserving, Adversarial Network.
https://www.sciencedirect.com/science/article/abs/pii/S0923596522000753?dgcid=coauthor
9 stars 6 forks source link

pretrained weight #2

Open SaharR1372 opened 2 years ago

SaharR1372 commented 2 years ago

Hi, Thanks to your amazing work. I was trying to test the model, I put the pretrained weight exactly as should be according to test file details but still I have bellow error, would you please let me know what is the problem? root: pretrained>gen_net_8x or 16x>archive... Error: Exception: the per-trained generator file is not found.

hamidreza-dastmalchi commented 2 years ago

Hi Sahar, Thank you for your interest in the work. I hope it would be helpful for your future research. Regarding the issue, have you already downloaded the pre-trained weights and put them in a folder named pretrained located in the root? If not, please download the pretrained weights, create a new folder in the root entitled "pretrained" and place the downloaded weights in it. You can download the weights from the below link: https://drive.google.com/drive/folders/18V1kPDHW6F05L0xOOODNHZHO566SA6iC

HeChengHui commented 2 years ago

@hamidreza-dastmalchi I have the pretrained models placed in ...\WIPA-Face-Super-Resolution\pretrained, with gen_net_8x.zip, gen_net_16x.zip and sface.pth inside the pretrained folder.

I tried running python test.py and got the following error:

WIPA-Face-Super-Resolution\test.py", line 64, in <module>
    raise Exception("the pre-trained generator file is not found.")
Exception: the pre-trained generator file is not found.

Any advice?