mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-11 21:07:12 +08:00
debug
This commit is contained in:
parent
07d324c8c3
commit
bb42e13c52
2
nodes.py
2
nodes.py
@ -1449,8 +1449,6 @@ class ImageAlphaComposite:
|
|||||||
RETURN_TYPES = ("IMAGE", "MASK")
|
RETURN_TYPES = ("IMAGE", "MASK")
|
||||||
FUNCTION = "alpha_composite"
|
FUNCTION = "alpha_composite"
|
||||||
def alpha_composite(self, image1, mask1, image2, mask2):
|
def alpha_composite(self, image1, mask1, image2, mask2):
|
||||||
if not mask2:
|
|
||||||
mask2 = torch.zeros((64,64), dtype=torch.float32, device="cpu")
|
|
||||||
image = image1 * mask1 + image2 * (1.0 - mask1)
|
image = image1 * mask1 + image2 * (1.0 - mask1)
|
||||||
return (image, mask1)
|
return (image, mask1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user