mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Change antialias to True as input - image
Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
This commit is contained in:
parent
526c7e7737
commit
3e6c49001c
@ -144,7 +144,7 @@ def image_resized_to_grid_as_tensor(image: PIL.Image.Image, normalize: bool = Tr
|
|||||||
w, h = trim_to_multiple_of(*image.size, multiple_of=multiple_of)
|
w, h = trim_to_multiple_of(*image.size, multiple_of=multiple_of)
|
||||||
transformation = T.Compose(
|
transformation = T.Compose(
|
||||||
[
|
[
|
||||||
T.Resize((h, w), T.InterpolationMode.LANCZOS, antialias=False),
|
T.Resize((h, w), T.InterpolationMode.LANCZOS, antialias=True),
|
||||||
T.ToTensor(),
|
T.ToTensor(),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user