From a578aa4fc5fb6315bca1567cbb1dc0ed254114c0 Mon Sep 17 00:00:00 2001 From: zcr Date: Fri, 23 Jan 2026 18:09:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=A7=BB=E9=99=A4design=20?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/design_fast/pipeline/segmentation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/service/design_fast/pipeline/segmentation.py b/app/service/design_fast/pipeline/segmentation.py index bdf75a0..ebdb6c6 100644 --- a/app/service/design_fast/pipeline/segmentation.py +++ b/app/service/design_fast/pipeline/segmentation.py @@ -47,6 +47,7 @@ class Segmentation: # 本地查询seg 缓存是否存在 _, seg_result = self.load_seg_result(result["image_id"]) # 判断缓存和实际图片size是否相同 + _ = False if not _ or result["image"].shape[:2] != seg_result.shape: # 推理获得seg 结果 seg_result = get_seg_result(result['image'])