diff --git a/tools/infer/predict_rec.py b/tools/infer/predict_rec.py index 5a8cb84f758c9a364fba17500318fa1a93283c0e..e6ba4d04ec32e0971e3c44f15b800c2cd2bc6c51 100755 --- a/tools/infer/predict_rec.py +++ b/tools/infer/predict_rec.py @@ -83,7 +83,7 @@ class TextRecognizer(object): } elif self.rec_algorithm == "SPIN": postprocess_params = { - 'name': 'SPINAttnLabelDecode', + 'name': 'SARLabelDecode', "character_dict_path": args.rec_char_dict_path, "use_space_char": args.use_space_char }