From 3e796ac1625b68e6c439b3214e15aef0a4a58344 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Wed, 23 Oct 2024 15:16:58 +0800 Subject: [PATCH] =?UTF-8?q?feat=20fix=20=20=20=20=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E5=BD=92=E4=B8=80=E5=8C=96=E9=A2=84=E5=A4=84=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E8=AE=AD=E7=BB=83=E6=97=B6=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=81=9A=E8=AF=A5=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/design_fast/utils/design_ensemble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/design_fast/utils/design_ensemble.py b/app/service/design_fast/utils/design_ensemble.py index f4f6a34..267ea00 100644 --- a/app/service/design_fast/utils/design_ensemble.py +++ b/app/service/design_fast/utils/design_ensemble.py @@ -85,7 +85,7 @@ def seg_preprocess(img_path): if ori_shape != (img_scale_w, img_scale_h): # mmcv.imresize(img, img_scale_h, img_scale_w) # 老代码 引以为戒!哈哈哈~ h和w写反了 img = cv2.resize(img, (img_scale_h, img_scale_w)) - img = mmcv.imnormalize(img, mean=np.array([123.675, 116.28, 103.53]), std=np.array([58.395, 57.12, 57.375]), to_rgb=True) + # img = mmcv.imnormalize(img, mean=np.array([123.675, 116.28, 103.53]), std=np.array([58.395, 57.12, 57.375]), to_rgb=True) preprocessed_img = np.expand_dims(img.transpose(2, 0, 1), axis=0) return preprocessed_img, ori_shape