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

您好,有关图片处理的一些问题 #3

Open
Li-rr opened this issue Jul 21, 2021 · 3 comments
Open

您好,有关图片处理的一些问题 #3

Li-rr opened this issue Jul 21, 2021 · 3 comments

Comments

@Li-rr
Copy link

Li-rr commented Jul 21, 2021

您好,我读取了您在仓库中保留的char_img_sub_mean.npy,我从从仓库的char2ix.npz,中读取了 ['淇','镇','药','倾']四个字的id,但是在 图像矩阵索引出来保存的图像是黑的,不知这是为什么?

以下读取的字体的代码
读取字体的代码

以下是读取结果
读出来的图片

以下是论文中的结果
论文中的图像

您好,还有一个问题,就是您们在生成图像时的一些设置问题:

设置问题

请问您们在具体设置中:大小宽度高度设置为多少

@sunny678
Copy link

sunny678 commented Aug 2, 2021

显示文字需要将数值乘以255:first_image = img_data[c_id].squeeze() * 255
生成图像的转换器不太一样,具体设置可以自行探索。

@Li-rr
Copy link
Author

Li-rr commented Aug 7, 2021

好的,谢谢!

@Li-rr Li-rr closed this as completed Aug 7, 2021
@Li-rr Li-rr reopened this Aug 8, 2021
@Li-rr
Copy link
Author

Li-rr commented Aug 8, 2021

显示文字需要将数值乘以255:first_image = img_data[c_id].squeeze() * 255
生成图像的转换器不太一样,具体设置可以自行探索。

您好,我又来了,在论文中提到的求平均是,所有的图像矩阵除以255吗

我在操作过程中,是在所有图像矩阵的对应位置上求平均

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