mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +08:00
Merge pull request #72 from coolzilj/patch-1
Fix "not enough values to unpack" error for ResizeMask
This commit is contained in:
commit
2f6e38220c
@ -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):
|
||||
if keep_proportions:
|
||||
_, oh, ow, _ = mask.shape
|
||||
_, oh, ow = mask.shape
|
||||
width = ow if width == 0 else width
|
||||
height = oh if height == 0 else height
|
||||
ratio = min(width / ow, height / oh)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user