From 5970b59de1320a3aa8d276106f3f6bd83029ebd0 Mon Sep 17 00:00:00 2001 From: kijai Date: Fri, 17 Nov 2023 16:08:03 +0200 Subject: [PATCH] Update nodes.py --- nodes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index 36f829f..ebd46d2 100644 --- a/nodes.py +++ b/nodes.py @@ -1335,9 +1335,7 @@ class BatchCropFromMask: bounding_boxes = [] cropped_images = [] - # Initialize max_bbox_size for the first frame - if not hasattr(self, 'max_bbox_size'): - self.max_bbox_size = 0 + self.max_bbox_size = 0 # First, calculate the maximum bounding box size across all masks curr_max_bbox_size = 0