KIE: question about num_classes parameter #13089
Unanswered
piarosebelledelapaz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述 / Problem Description
hello, i would like to ask what the num_classes parameter is about in the config files for SER.
i am using my custom dataset for training SER and RE but i get an error when i change the num_classes parameter in the config file. i also provided my own class_list.txt which contains:
NAME
DATE
so i only have 2 classes. i saw in one of the code comments that for num_classes, it should be 2n-1 where n is the number of classes. so since i have two, i changed the parameter to 3 instead of 7 (original value). but now i get an error.
when i switch it back to 7 i can do the training and no error occurs. i want to clarify if changing this value would affect the results, thank you for your help in advance
运行环境 / Runtime Environment
复现代码 / Reproduction Code
完整报错 / Complete Error Message
可能解决方案 / Possible solutions
附件 / Appendix
Beta Was this translation helpful? Give feedback.
All reactions