From ec22e60cb4eeb8ee33d6c4ec2a7c888751efb3b0 Mon Sep 17 00:00:00 2001 From: WenmuZhou <572459439@qq.com> Date: Tue, 16 Aug 2022 03:34:40 +0000 Subject: [PATCH] fix boxlabel error --- ppocr/data/imaug/label_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/data/imaug/label_ops.py b/ppocr/data/imaug/label_ops.py index 73d4ca43..59cb9b8a 100644 --- a/ppocr/data/imaug/label_ops.py +++ b/ppocr/data/imaug/label_ops.py @@ -750,7 +750,7 @@ class TableMasterLabelEncode(TableLabelEncode): class TableBoxEncode(object): def __init__(self, in_box_format='xyxy', out_box_format='xyxy', **kwargs): - assert box_format in ['xywh', 'xyxy', 'xyxyxyxy'] + assert out_box_format in ['xywh', 'xyxy', 'xyxyxyxy'] self.in_box_format = in_box_format self.out_box_format = out_box_format -- GitLab