mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +08:00
Fix "not enough values to unpack" error for ResizeMask
This commit is contained in:
parent
7e6bd8d14a
commit
c4c63fce73
@ -1200,7 +1200,7 @@ Resizes the mask or batch of masks to the specified width and height.
|
|||||||
|
|
||||||
def resize(self, mask, width, height, keep_proportions):
|
def resize(self, mask, width, height, keep_proportions):
|
||||||
if keep_proportions:
|
if keep_proportions:
|
||||||
_, oh, ow, _ = mask.shape
|
_, oh, ow = mask.shape
|
||||||
width = ow if width == 0 else width
|
width = ow if width == 0 else width
|
||||||
height = oh if height == 0 else height
|
height = oh if height == 0 else height
|
||||||
ratio = min(width / ow, height / oh)
|
ratio = min(width / ow, height / oh)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user