mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +08:00
Update image_nodes.py
This commit is contained in:
parent
86dc22a028
commit
44f7e559b9
@ -740,7 +740,7 @@ class MergeImageChannels:
|
||||
|
||||
},
|
||||
"optional": {
|
||||
"mask": ("MASK", {"default": None}),
|
||||
"alpha": ("MASK", {"default": None}),
|
||||
},
|
||||
}
|
||||
|
||||
@ -760,7 +760,7 @@ Merges channel data into an image.
|
||||
], dim=-1)
|
||||
image = image.squeeze(-2)
|
||||
if alpha is not None:
|
||||
image = torch.cat([image, alpha], dim=-1)
|
||||
image = torch.cat([image, alpha.unsqueeze(-1)], dim=-1)
|
||||
return (image,)
|
||||
|
||||
class ImagePadForOutpaintMasked:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user