Update nodes.py

This commit is contained in:
kijai 2023-11-17 16:08:03 +02:00
parent 5aeeed35f6
commit 5970b59de1

View File

@ -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