Skip to content

Commit

Permalink
Fixed a bug where changing "max_text_length" for VisionLAN did not ch…
Browse files Browse the repository at this point in the history
…ange the length of the output text (#11025)
  • Loading branch information
victor30608 authored Oct 12, 2023
1 parent 3786b27 commit d0d77fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/infer/predict_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def __init__(self, args):
postprocess_params = {
'name': 'VLLabelDecode',
"character_dict_path": args.rec_char_dict_path,
"use_space_char": args.use_space_char
"use_space_char": args.use_space_char,
"max_text_length": args.max_text_length
}
elif self.rec_algorithm == 'ViTSTR':
postprocess_params = {
Expand Down

0 comments on commit d0d77fe

Please sign in to comment.