Skip to content

Commit

Permalink
修复auger与acplot循环导入的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
HAL-42 committed Dec 12, 2024
1 parent 899ca3e commit bd624c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions alchemy_cat/acplot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down Expand Up @@ -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

0 comments on commit bd624c9

Please sign in to comment.