Spaces:
Running
on
Zero
Running
on
Zero
re-color 448
Browse files
app.py
CHANGED
@@ -4461,7 +4461,7 @@ with demo:
|
|
4461 |
images = [tup[0] for tup in image_gallery]
|
4462 |
if isinstance(images[0], str):
|
4463 |
images = [Image.open(image) for image in images]
|
4464 |
-
resized_images = [image.resize((
|
4465 |
images = [transform_image(image, resolution=(224, 224), stablediffusion=False) for image in resized_images]
|
4466 |
images = torch.stack(images)
|
4467 |
|
|
|
4461 |
images = [tup[0] for tup in image_gallery]
|
4462 |
if isinstance(images[0], str):
|
4463 |
images = [Image.open(image) for image in images]
|
4464 |
+
resized_images = [image.resize((448, 448), Image.LANCZOS) for image in images]
|
4465 |
images = [transform_image(image, resolution=(224, 224), stablediffusion=False) for image in resized_images]
|
4466 |
images = torch.stack(images)
|
4467 |
|