This commit is contained in:
Saquib Alam 2023-08-08 20:33:41 +05:30 committed by GitHub
parent bb42e13c52
commit 16a862c722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1449,7 +1449,8 @@ 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):
image = image1 * mask1 + image2 * (1.0 - mask1) print(image.get_shape(), mask1.get_shape())
image = image1 * mask1
return (image, mask1) return (image, mask1)
class ImageScaleBy: class ImageScaleBy: