From b408a75579c0e44c3094713163d2f66291004fef Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 18 Nov 2023 18:44:06 +0200 Subject: [PATCH] Update nodes.py --- nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index 57334c0..8c5bac9 100644 --- a/nodes.py +++ b/nodes.py @@ -1366,9 +1366,9 @@ class BatchCropFromMask: self.max_bbox_height = int(self.max_bbox_height * crop_size_mult) bbox_aspect_ratio = self.max_bbox_width / self.max_bbox_height - # Make sure max_bbox_size is divisible by 16, if not, round it upwards so it is - self.max_bbox_width = math.ceil(self.max_bbox_width / 32) * 32 - self.max_bbox_height = math.ceil(self.max_bbox_height / 32) * 32 + # # Make sure max_bbox_size is divisible by 32, if not, round it upwards so it is + # self.max_bbox_width = math.ceil(self.max_bbox_width / 32) * 32 + # self.max_bbox_height = math.ceil(self.max_bbox_height / 32) * 32 # Then, for each mask and corresponding image... for i, (mask, img) in enumerate(zip(masks, original_images)):