From fc43a5ab98757686b04afab73db68d19baca50dd Mon Sep 17 00:00:00 2001 From: "xixing.tj" Date: Fri, 2 Sep 2022 15:49:40 +0800 Subject: [PATCH] fix --- modelscope/pipelines/cv/ocr_detection_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/pipelines/cv/ocr_detection_pipeline.py b/modelscope/pipelines/cv/ocr_detection_pipeline.py index c947abac..b73f65a4 100644 --- a/modelscope/pipelines/cv/ocr_detection_pipeline.py +++ b/modelscope/pipelines/cv/ocr_detection_pipeline.py @@ -150,7 +150,7 @@ class OCRDetectionPipeline(Pipeline): rboxes = inputs['combined_rboxes'][0] count = inputs['combined_counts'][0] if count == 0 or count < rboxes.shape[0]: - raise Exception('No text detected') + raise Exception('modelscope error: No text detected') rboxes = rboxes[:count, :] # convert rboxes to polygons and find its coordinates on the original image