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

如何输入LQ,得到HQ #29

Open
sym1998 opened this issue Apr 10, 2021 · 1 comment
Open

如何输入LQ,得到HQ #29

sym1998 opened this issue Apr 10, 2021 · 1 comment

Comments

@sym1998
Copy link

sym1998 commented Apr 10, 2021

你好作者,首先非常感谢您上传代码,我想问一下我该如何修改代码,才能让输入图像和输出图像是一个尺寸大小,并且我怎么才能输入低质量图像,利用训练好的模型,得到高质量的图像呢,非常感谢您的回答,谢谢!

@pkuxmq
Copy link
Owner

pkuxmq commented Apr 13, 2021

你好,你需要在 'models/modules/Inv_arch.py' 中修改可逆架构,去除降采样的 HaarDownsampling 模块。
你可以使用 IRN_model 中的 upscale 函数对低分辨率图像进行上采样,即将 test.py 中的 model.test() 函数替换成 model.upscale 函数,参见 #4.

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