Skip to content
Discussion options

You must be logged in to vote

num_classes设置错了,由于采用BIO标注,假设字典中包含n个字段(包含other)时,则类别数为2n-1; 假设字典中包含n个字段(不含other)时,则类别数为2n+1。否则在train过程会报:IndexError: (OutOfRange) label value should less than the shape of axis dimension 。

参考官方文档:https://paddlepaddle.github.io/PaddleOCR/main/ppocr/model_train/kie.html#21

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GreatV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13075 on June 17, 2024 01:27.