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

MaxLabelNum参数 #110

Open
Hovennnnn opened this issue Mar 20, 2023 · 0 comments
Open

MaxLabelNum参数 #110

Hovennnnn opened this issue Mar 20, 2023 · 0 comments

Comments

@Hovennnnn
Copy link

MaxLabelNum参数即使在使用CTC的情况下也应该按实际情况修改,不然如果验证码长度不为1,而直接默认为1的话,容易出现
"zero-size array to reduction operation maximum which has no identity"的报错
这个报错的根源在于encoder.py第209行的

elif self.model_conf.max_label_num == 1:
            labels = [found]
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

1 participant