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

文字渲染问题 #107

Open
Maeyon-Z opened this issue Jun 13, 2024 · 4 comments
Open

文字渲染问题 #107

Maeyon-Z opened this issue Jun 13, 2024 · 4 comments

Comments

@Maeyon-Z
Copy link

Maeyon-Z commented Jun 13, 2024

我用inference.py跑了几个generation例子,但效果不太好,观察到渲染图出来的文字大小比例失衡,请问这是导致效果不好的原因吗?希望作者大大帮忙分析一下,下面第二列是渲染图,后面两列是生成结果,结果文字与渲染图文字大小也不对应,是哪个环节出了问题吗

@Maeyon-Z
Copy link
Author

Snipaste_2024-06-13_12-58-30

@tyxsspa
Copy link
Owner

tyxsspa commented Jun 13, 2024

这个render文字的比例不太对,需要检查下是否是Arial Unicode的ttf字体,因为模型训练时是用的这个,如果推理时不一致,效果会有比较大的差异。

@Maeyon-Z
Copy link
Author

这个render文字的比例不太对,需要检查下是否是Arial Unicode的ttf字体,因为模型训练时是用的这个,如果推理时不一致,效果会有比较大的差异。

确实是这个问题!之前下载的那个好像有问题,重新下了一个更大的就好了

@Maeyon-Z
Copy link
Author

这个render文字的比例不太对,需要检查下是否是Arial Unicode的ttf字体,因为模型训练时是用的这个,如果推理时不一致,效果会有比较大的差异。

确实是这个问题!之前下载的那个好像有问题,重新下了一个更大的就好了

感谢!!

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