fix resize

This commit is contained in:
lllyasviel
2023-10-25 21:02:55 -07:00
parent 959f965b77
commit 214c2ba04c
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ LANCZOS = (Image.Resampling.LANCZOS if hasattr(Image, 'Resampling') else Image.L
def resample_image(im, width, height):
im = Image.fromarray(im)
im = im.resize((width, height), resample=LANCZOS)
im = im.resize((int(width), int(height)), resample=LANCZOS)
return np.array(im)