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

channel配置使得Start Training出现的问题 #37

Open
TitanWhoo opened this issue Jan 7, 2020 · 4 comments
Open

channel配置使得Start Training出现的问题 #37

TitanWhoo opened this issue Jan 7, 2020 · 4 comments

Comments

@TitanWhoo
Copy link

使用的编译版GUI
当我使用默认的Channel配置值 3 时,Start Training会出现
ValueError: zero-size array to reduction operation maximum which has no identity
而将Channel改为1时则正常进行。
请问这是什么问题?

@kerlomz
Copy link
Owner

kerlomz commented Jan 19, 2020

因为你的图片本身是黑白的,没有三通道,所以会被忽略,当全部样本都被忽略时,批次就为空,所以会报上述错误。

@TitanWhoo
Copy link
Author

但实际上图片是彩色的,而且这类验证码图片似乎永远不会训练完成,ac一直在0.3左右浮动,RTX2080连续训练了三天三夜也无果。 经过我自己排查发现这种验证码二值化的时候会出现两种情况: 白底黑字和黑底白字,是不是这个影响了训练?
验证码示例如下:
1PCzXn.md.png

训练集样本如下:
训练集样本

@welldonexing
Copy link

这个bug 真的 holyshit , 我在选择通道为3的时候也出现这个问题,验证码肯定是彩色的这个不用怀疑,我跟踪到generate_batch_by_tfrecords 发现如下判断,
QQ截图20200411172825

图片通道看起来是4 永远不可能和3 相等,全部跳过

@Duanexiao
Copy link

这个bug 真的 holyshit , 我在选择通道为3的时候也出现这个问题,验证码肯定是彩色的这个不用怀疑,我跟踪到generate_batch_by_tfrecords 发现如下判断,
QQ截图20200411172825

图片通道看起来是4 永远不可能和3 相等,全部跳过

大哥,你跑通了代码吗?这位owner的代码简直是神坑呀,一大堆的问题

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