captcha_trainer icon indicating copy to clipboard operation
captcha_trainer copied to clipboard

MaxLabelNum参数

Open Hovennnnn opened this issue 2 years ago • 0 comments

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]

Hovennnnn avatar Mar 20 '23 05:03 Hovennnnn