mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(nodes): abstractmethod is noop
This commit is contained in:
parent
e55ab5b3a1
commit
b061db414f
@ -39,8 +39,8 @@ class InfillImageProcessorInvocation(BaseInvocation, WithMetadata, WithBoard):
|
|||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def infill(self, image: Image.Image) -> Image.Image:
|
def infill(self, image: Image.Image) -> Image.Image:
|
||||||
"""Abstract to perform various infilling techniques"""
|
"""Infill the image with the specified method"""
|
||||||
return image
|
pass
|
||||||
|
|
||||||
def load_image(self, context: InvocationContext) -> tuple[Image.Image, bool]:
|
def load_image(self, context: InvocationContext) -> tuple[Image.Image, bool]:
|
||||||
"""Process the image to have an alpha channel before being infilled"""
|
"""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")
|
resample_mode: PIL_RESAMPLING_MODES = InputField(default="bicubic", description="The resampling mode")
|
||||||
|
|
||||||
def infill(self, image: Image.Image):
|
def infill(self, image: Image.Image):
|
||||||
|
|
||||||
resample_mode = PIL_RESAMPLING_MAP[self.resample_mode]
|
resample_mode = PIL_RESAMPLING_MAP[self.resample_mode]
|
||||||
|
|
||||||
width = int(image.width / self.downscale)
|
width = int(image.width / self.downscale)
|
||||||
|
Loading…
Reference in New Issue
Block a user