From bd624c999229f7701f47899b257e0b384bf146bb Mon Sep 17 00:00:00 2001 From: HAL-42 Date: Thu, 12 Dec 2024 22:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dauger=E4=B8=8Eacplot=E5=BE=AA?= =?UTF-8?q?=E7=8E=AF=E5=AF=BC=E5=85=A5=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alchemy_cat/acplot/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alchemy_cat/acplot/utils.py b/alchemy_cat/acplot/utils.py index f112544..db43efb 100644 --- a/alchemy_cat/acplot/utils.py +++ b/alchemy_cat/acplot/utils.py @@ -12,7 +12,7 @@ from typing import Union, Iterable -from alchemy_cat.data.plugins.augers import pad_img_label +import alchemy_cat.data.plugins.augers as au __all__ = ['stack_figs'] @@ -41,5 +41,6 @@ def stack_figs(in_list: list, img_pad_val: Union[int, float, Iterable] = (127, 1 max_w = item.shape[1] out_arr = np.zeros((len(in_list), max_h, max_w, 3), dtype=in_list[0].dtype) for i, item in enumerate(in_list): - out_arr[i] = pad_img_label(item, pad_img_to=(max_h, max_w), img_pad_val=img_pad_val, pad_location=pad_location) + out_arr[i] = au.pad_img_label(item, pad_img_to=(max_h, max_w), + img_pad_val=img_pad_val, pad_location=pad_location) return out_arr