From b061db414f11f643788d68a11a3b1e01d248203e Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:30:55 +1100 Subject: [PATCH] tidy(nodes): abstractmethod is noop --- invokeai/app/invocations/infill.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/invokeai/app/invocations/infill.py b/invokeai/app/invocations/infill.py index 325bedaba1..ad41a81813 100644 --- a/invokeai/app/invocations/infill.py +++ b/invokeai/app/invocations/infill.py @@ -39,8 +39,8 @@ class InfillImageProcessorInvocation(BaseInvocation, WithMetadata, WithBoard): @abstractmethod def infill(self, image: Image.Image) -> Image.Image: - """Abstract to perform various infilling techniques""" - return image + """Infill the image with the specified method""" + pass def load_image(self, context: InvocationContext) -> tuple[Image.Image, bool]: """Process the image to have an alpha channel before being infilled""" @@ -110,7 +110,6 @@ class InfillPatchMatchInvocation(InfillImageProcessorInvocation): resample_mode: PIL_RESAMPLING_MODES = InputField(default="bicubic", description="The resampling mode") def infill(self, image: Image.Image): - resample_mode = PIL_RESAMPLING_MAP[self.resample_mode] width = int(image.width / self.downscale)