even more bug fixes2

This commit is contained in:
CiscoTheWolf 2023-05-21 23:12:41 +02:00
parent 515cf1b150
commit 9dd5937ccd

View file

@ -23,7 +23,7 @@ def pure_pil_alpha_to_color_v2(image, color=(0, 0, 0)):
def image_interpolation(image1, image2, alpha):
# Ensure both images have the same size
assert image1.shape == image2.shape, "Input images must have the same shape"
assert image1.size == image2.size, "Input images must have the same shape"
# Normalize the alpha value
alpha = max(0, min(1, alpha))