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

关于多分类的问题 #24

Closed
kaixinbaba opened this issue Mar 29, 2020 · 1 comment
Closed

关于多分类的问题 #24

kaixinbaba opened this issue Mar 29, 2020 · 1 comment

Comments

@kaixinbaba
Copy link

代码中和训练有关的代码反复看了好几遍,算大致搞懂了流程,想基于这个模型做点调整,代码中文本分类只有两类,文字和背景,我想修改成文字多分类,比如有10类,维度什么就跟着调整了下从原来的2 变成了11,但是训练开始没多久loss就开始无限增大了,估计是和修改的地方有关系 。自己折腾了很久也没看出哪里不对。。大佬有什么建议么

有个疑问
一开始的这个Input 参数2 代表的是2个分类还是第一索引是分类,第二索引是padding?

gt_class_ids = Input(shape=(config.MAX_GT_INSTANCES, 2), name='gt_class_ids')
@yizt
Copy link
Owner

yizt commented Mar 29, 2020

@kaixinbaba 第一个是padding,第二个是分类,参数2 代表的是2个分类

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