From aae783a2e19081f1004d4f52ab17d04804f0324c Mon Sep 17 00:00:00 2001 From: apsntian Date: Fri, 22 Mar 2024 15:35:07 +0900 Subject: [PATCH] fix : delete prints --- modules/image_tool.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/image_tool.py b/modules/image_tool.py index fe258b2..40f6520 100644 --- a/modules/image_tool.py +++ b/modules/image_tool.py @@ -540,8 +540,6 @@ class CalcMaskBound: desired_width *= shrink_ratio desired_height *= shrink_ratio - - print(desired_width, desired_height, ori_width, ori_height) optional_padding_col = int((desired_width - ori_width) / 2) optional_padding_row = int((desired_height - ori_height)/2) @@ -551,7 +549,7 @@ class CalcMaskBound: max_col += optional_padding_col max_row += optional_padding_row - print(min_col, max_col, mask.shape) + if min_col < 0: max_col -= min_col