From cd3f5d659ea2aaa635e89e59144192c047234b5b Mon Sep 17 00:00:00 2001 From: "hejunjie.hjj" Date: Wed, 2 Aug 2023 16:08:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug:=20referring=5Fvideo-object-segmentat?= =?UTF-8?q?ion=E5=85=BC=E5=AE=B9Pillow10=20Link:=20https://code.alibaba-in?= =?UTF-8?q?c.com/Ali-MaaS/MaaS-lib/codereview/13479152=20*=20fix=20bug:=20?= =?UTF-8?q?referring=5Fvideo-object-segmentation=E5=85=BC=E5=AE=B9Pillow10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cv/referring_video_object_segmentation_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py b/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py index 123057f5..ab8a54e1 100644 --- a/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py +++ b/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py @@ -179,7 +179,7 @@ class ReferringVideoObjectSegmentationPipeline(Pipeline): for i, (text_query, color) in enumerate( zip(self.text_queries, colors), start=1): - w, h = draw.textsize(text_query, font=font) + _, _, w, h = draw.textbbox([0, 0], text_query, font=font) draw.text(((W - w) / 2, (text_border_height_per_query * i) - h - 3), text_query,