mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix resize
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user