mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +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):
|
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