mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 21:12:36 +08:00
debug
This commit is contained in:
parent
ee6c3b3587
commit
56a5ddd842
10
nodes.py
10
nodes.py
@ -1439,19 +1439,19 @@ class ImageAlphaComposite:
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": { "image1": ("IMAGE",),
|
||||
"mask1": ("MASK",),
|
||||
"image2": ("IMAGE",),
|
||||
"mask2": ("MASK", {"default": None}),
|
||||
"image2": ("IMAGE",)),
|
||||
}
|
||||
}
|
||||
|
||||
CATEGORY = "image"
|
||||
|
||||
RETURN_TYPES = ("IMAGE", "MASK")
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "alpha_composite"
|
||||
def alpha_composite(self, image1, mask1, image2, mask2):
|
||||
def alpha_composite(self, image1, mask1, image2):
|
||||
mask1 = mask1.repeat((1, 1, 1, 3))
|
||||
print(image1.size(), mask1.size())
|
||||
image = image1 * mask1
|
||||
return (image, mask1)
|
||||
return (image,)
|
||||
|
||||
class ImageScaleBy:
|
||||
upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user