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

可以输出预测结果,但没法保存图片,会报错:Error in syn_lq04 #3

Closed
dzyanshan opened this issue Apr 26, 2023 · 7 comments

Comments

@dzyanshan
Copy link

test_sr.py的135行左右,无法通过modelTSPGAN模型正常获取到prior_cha、prior_fea64、prior_fea32导致报错,请问这个是什么原因?

@csxmli2016
Copy link
Owner

test_sr.py的135行左右,无法通过modelTSPGAN模型正常获取到prior_cha、prior_fea64、prior_fea32导致报错,请问这个是什么原因?

你把异常捕获去掉,看下输出错误是什么,有可能是name 'fused_act_ext' is not defined

@csxmli2016
Copy link
Owner

test_sr.py的135行左右,无法通过modelTSPGAN模型正常获取到prior_cha、prior_fea64、prior_fea32导致报错,请问这个是什么原因?

你把异常捕获去掉,看下输出错误是什么,有可能是name 'fused_act_ext' is not defined

我把错信息打印出来了,如果真的是name 'fused_act_ext' is not defined,可以参考TencentARC/GFPGAN#5
这个问题是使用stylegan常见的问题,按照说明安装可以解决。

@dzyanshan
Copy link
Author

十分感谢,是这个问题,成功解决了!另外想请教两个问题,我看到modelTSPGAN模型的输入有label这一项,是因为modelEncoder模型直接输出了低分辨率图像的文本识别结果吗,如果label预测错了那么超分辨率模块难道不会因此输出完全不同的字符吗?

@csxmli2016 csxmli2016 reopened this Apr 27, 2023
@csxmli2016
Copy link
Owner

十分感谢,是这个问题,成功解决了!另外想请教两个问题,我看到modelTSPGAN模型的输入有label这一项,是因为modelEncoder模型直接输出了低分辨率图像的文本识别结果吗,如果label预测错了那么超分辨率模块难道不会因此输出完全不同的字符吗?

对的。我们的Encoder预测了每个汉字的位置,每个汉字的类别,以及这个片段汉字的字体样式w。我们也给了一个label预测错的结果,https://github.com/csxmli2016/MARCONet#manually-correct-the-text-recognition-results 当退化比较严重的时候,会输出复原错的结果。但是当退化比较轻的时候,这种情况不会依赖label,只是一个简单的SR功能。

@chenglih
Copy link

chenglih commented May 4, 2023

test_sr.py的135行左右,无法通过modelTSPGAN模型正常获取到prior_cha、prior_fea64、prior_fea32导致报错,请问这个是什么原因?

你把异常捕获去掉,看下输出错误是什么,有可能是name 'fused_act_ext' is not defined

我把错信息打印出来了,如果真的是name 'fused_act_ext' is not defined,可以参考TencentARC/GFPGAN#5 这个问题是使用stylegan常见的问题,按照说明安装可以解决。

就是BASICSR_EXT=True pip install basicsr 这个命令在windows下好像用不了,该怎么解决呢

@yayinliqing
Copy link

BASICSR_EXT=True pip install basicsr 这个命令不能运行,会报错'BASICSR_EXT' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
而且也遇到了相同的问题,name 'fused_act_ext' is not defined

@yayinliqing
Copy link

test_sr.py的135行左右,无法通过modelTSPGAN模型正常获取到prior_cha、prior_fea64、prior_fea32导致报错,请问这个是什么原因?

你把异常捕获去掉,看下输出错误是什么,有可能是name 'fused_act_ext' is not defined

我把错信息打印出来了,如果真的是name 'fused_act_ext' is not defined,可以参考TencentARC/GFPGAN#5 这个问题是使用stylegan常见的问题,按照说明安装可以解决。

还是解决不了这个问题,而且我是window系统,那个命令执行不了啊

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

4 participants