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

输出图像有问题。 #152

Open
banjamn opened this issue Sep 3, 2024 · 5 comments
Open

输出图像有问题。 #152

banjamn opened this issue Sep 3, 2024 · 5 comments

Comments

@banjamn
Copy link

banjamn commented Sep 3, 2024

感谢作者公开源码。
我在测试作者给的预训练模型的时候遇到了问题,输出的图像存在失真,我测试了,“HAT_SRx2_ImageNet-pretrain”,“HAT_GAN——Real_SR4”等模型都出现了如下情况:
000001_HAT_GAN_Real_SRx4
0008_HAT_SRx2_ImageNet-pretrain
并且每张图像都是左下角有一片矩形区域失真。

@chxy95
Copy link
Member

chxy95 commented Sep 3, 2024

@banjamn 很奇怪的现象,我这边目前还没有发现过类似的情况。这些输入数据的分布是否比较特殊?

@banjamn
Copy link
Author

banjamn commented Sep 3, 2024 via email

@chxy95
Copy link
Member

chxy95 commented Sep 3, 2024

如果不是特殊分布下的个别现象的话,那应该是你这边代码使用存在问题了,我这边目前没有收到其它类似这种情况的反馈。或者你可以把输入图片发一两张到我的邮箱,我回头确认下。

@banjamn
Copy link
Author

banjamn commented Sep 3, 2024

谢谢您!
这里分别是我输入模型的原图和模型的输出
ori01
x2sr02
两张图像是通过如下代码保存的:
image
加载的模型文档是HAT_SRx2_ImageNet-pretrain.yml

@chxy95
Copy link
Member

chxy95 commented Sep 4, 2024

test
这是我这边用Real-GAN SRx4跑出来的结果。应该是你那边代码的问题。参照test里的yml来写吧。

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