From c4c63fce73ae7101a0dc251a9d5c138939eedc8b Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Thu, 16 May 2024 15:06:02 +0800 Subject: [PATCH] Fix "not enough values to unpack" error for ResizeMask --- nodes/mask_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/mask_nodes.py b/nodes/mask_nodes.py index bbadd13..d7c18e9 100644 --- a/nodes/mask_nodes.py +++ b/nodes/mask_nodes.py @@ -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)