even more bug fixes2
This commit is contained in:
parent
515cf1b150
commit
9dd5937ccd
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue