From 0f93991087004a73c8b2d5b45599c6b60cc509fd Mon Sep 17 00:00:00 2001 From: Jonathan <34005131+JPPhoto@users.noreply.github.com> Date: Thu, 14 Sep 2023 07:56:17 -0500 Subject: [PATCH] Remove multiple of 8 requirement for ImageResizeInvocation (#4538) Testing required the width and height to be multiples of 8. This is no longer needed. --- invokeai/app/invocations/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/invocations/image.py b/invokeai/app/invocations/image.py index fda7561679..11e5fc90a0 100644 --- a/invokeai/app/invocations/image.py +++ b/invokeai/app/invocations/image.py @@ -335,8 +335,8 @@ class ImageResizeInvocation(BaseInvocation): """Resizes an image to specific dimensions""" image: ImageField = InputField(description="The image to resize") - width: int = InputField(default=512, ge=64, multiple_of=8, description="The width to resize to (px)") - height: int = InputField(default=512, ge=64, multiple_of=8, description="The height to resize to (px)") + width: int = InputField(default=512, gt=0, description="The width to resize to (px)") + height: int = InputField(default=512, gt=0, description="The height to resize to (px)") resample_mode: PIL_RESAMPLING_MODES = InputField(default="bicubic", description="The resampling mode") metadata: Optional[CoreMetadata] = InputField( default=None, description=FieldDescriptions.core_metadata, ui_hidden=True