mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-01-06 19:51:47 +08:00
Update nodes.py
This commit is contained in:
parent
57e95ab9d2
commit
b408a75579
6
nodes.py
6
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)):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user