NAFNet icon indicating copy to clipboard operation
NAFNet copied to clipboard

Img size

Open juechenzp opened this issue 2 years ago • 2 comments

非常感谢你们的工作,训练时的图像尺寸必须是512吗,不同尺寸的输入会影响训练效果吗。测试时大图切片后拼接会出现块状效应,请问有什么好的消除块状的思路可以分享一下吗,感谢

juechenzp avatar Apr 15 '22 11:04 juechenzp

您好, juechenzp, 感谢您的关注。 训练时图像尺寸现在默认为256x256; 增大图像尺寸可能能提升效果,但是训练时间也会相应延长。

如果非必要(比如空间上足够的情况下), 建议是不要用大图切片测试,而是整图测试, 其中的原因在我们的工作 Revisiting Global Statistics Aggregation for Improving Image Restoration 中讨论过(paper: https://arxiv.org/abs/2112.04491, code: https://github.com/megvii-research/tlsc) 。

如果必须要切片而解决块效应问题,我只能建议您参考其他文章,比如 Towards Ultra-Resolution Neural Style Transfer via Thumbnail Instance Normalization.

谢谢。

mayorx avatar Apr 15 '22 18:04 mayorx

您好,原始图像 Snipaste_2022-07-07_10-58-388

进行cv.resize后为什么效果会差了很多,当一个原图是(1280,720)resize到(720,480),图像去模糊后就没有作用,还变得更模糊 a59627988d869b19e4575b52715ef0a 想问一下,做验证必须要固定图像大小吗,不能对图像做resize操作吗?

yanyide123 avatar Jul 20 '22 07:07 yanyide123