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

请问为什么跑完main_test_srmd.py在result文件夹里面的图片尺寸和testsets里面一样大呢?(小白 #1

Closed
WK-Luo opened this issue Jul 21, 2021 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@WK-Luo
Copy link

WK-Luo commented Jul 21, 2021

No description provided.

@WK-Luo WK-Luo changed the title 为啥跑完main_test_srmd.py在result文件夹里面的图片大小和testsets里面一样大呢?(小白 请问为什么跑完main_test_srmd.py在result文件夹里面的图片尺寸和testsets里面一样大呢?(小白 Jul 21, 2021
@HollowMan6
Copy link
Owner

因为testset此仓库只提供了高质量的图片,所以在验证的时候是会对testset中图片进行一个程序性的模拟退化处理:

https://github.com/HollowMan6/SRMD-Pytorch/blob/main/main_test_srmd.py#L154-L159
将其下采样缩小指定的倍数分辨率与其他增加噪声处理之后输入模型,进行超分辨率,这样好与高质量图片进行比较,自然生成的图片就和测试集中提供的高质量图片一样的分辨率大小了。

@HollowMan6 HollowMan6 self-assigned this Jul 21, 2021
@HollowMan6 HollowMan6 added the good first issue Good for newcomers label Jul 21, 2021
@WK-Luo
Copy link
Author

WK-Luo commented Jul 21, 2021

原来如此,谢谢。

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

No branches or pull requests

2 participants