From e656768eb2181da42a7a658716623b412beed9ce Mon Sep 17 00:00:00 2001 From: skunkworxdark Date: Sat, 9 Dec 2023 21:56:31 +0000 Subject: [PATCH] more fixes from code review --- invokeai/app/invocations/tiles.py | 4 ++-- invokeai/backend/tiles/tiles.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/invokeai/app/invocations/tiles.py b/invokeai/app/invocations/tiles.py index 4e34cc4359..f9dd7b3e69 100644 --- a/invokeai/app/invocations/tiles.py +++ b/invokeai/app/invocations/tiles.py @@ -121,8 +121,8 @@ class CalculateImageTilesMinimumOverlapInvocation(BaseInvocation): image_height: int = InputField( ge=1, default=1024, description="The image height, in pixels, to calculate tiles for." ) - tile_width: int = InputField(ge=1, default=576, description="The tile width, in pixels.") - tile_height: int = InputField(ge=1, default=576, description="The tile height, in pixels.") + tile_width: int = InputField(ge=1, default=576, multiple_of=8, description="The tile width, in pixels.") + tile_height: int = InputField(ge=1, default=576, multiple_of=8, description="The tile height, in pixels.") min_overlap: int = InputField( default=128, ge=0, diff --git a/invokeai/backend/tiles/tiles.py b/invokeai/backend/tiles/tiles.py index 2cd87da303..2f71db03cb 100644 --- a/invokeai/backend/tiles/tiles.py +++ b/invokeai/backend/tiles/tiles.py @@ -2,8 +2,8 @@ import math from typing import Union import numpy as np -from invokeai.app.invocations.latent import LATENT_SCALE_FACTOR +from invokeai.app.invocations.latent import LATENT_SCALE_FACTOR from invokeai.backend.tiles.utils import TBLR, Tile, paste, seam_blend