From 93df86ca9a573e60964674a8c375ea2d55f2a296 Mon Sep 17 00:00:00 2001 From: "shaohua.zhang" Date: Thu, 27 Aug 2020 14:59:07 +0800 Subject: [PATCH] Update sast_process.py --- ppocr/data/det/sast_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/data/det/sast_process.py b/ppocr/data/det/sast_process.py index 74a84846..c2a1a38f 100644 --- a/ppocr/data/det/sast_process.py +++ b/ppocr/data/det/sast_process.py @@ -599,7 +599,7 @@ class SASTProcessTrain(object): """ text_polys, txt_tags, txts = [], [], [] - with open(poly_txt_path) as f: + with open(poly_txt_path, 'rb') as f: for line in f.readlines(): poly_str, txt = line.strip().split('\t') poly = map(float, poly_str.split(',')) -- GitLab