fix: 🐛 image to mask

This commit is contained in:
Mel Massadian
2024-04-02 05:33:16 +02:00
parent e56508c207
commit f16d576f6f
+1 -1
View File
@@ -412,7 +412,7 @@ class MTB_MaskToImage:
FUNCTION = "render_mask"
def render_mask(self, mask, color, background):
masks = tensor2np(mask)
masks = tensor2np(mask)[0]
images = []
for m in masks:
_mask = Image.fromarray(m).convert("L")