Skip to content

Commit 94115b5

Browse files
fix(nodes): downscale and resample_mode are not optional
1 parent b1ef337 commit 94115b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

invokeai/app/invocations/infill.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ class InfillPatchMatchInvocation(BaseInvocation):
196196
"""Infills transparent areas of an image using the PatchMatch algorithm"""
197197

198198
image: ImageField = InputField(description="The image to infill")
199-
downscale: Optional[float] = InputField(
200-
default=2.0, gt=0, description="Run patchmatch on downscaled image to speedup infill"
201-
)
202-
resample_mode: Optional[PIL_RESAMPLING_MODES] = InputField(default="bicubic", description="The resampling mode")
199+
downscale: float = InputField(default=2.0, gt=0, description="Run patchmatch on downscaled image to speedup infill")
200+
resample_mode: PIL_RESAMPLING_MODES = InputField(default="bicubic", description="The resampling mode")
203201

204202
def invoke(self, context: InvocationContext) -> ImageOutput:
205203
image = context.services.images.get_pil_image(self.image.image_name).convert("RGBA")

0 commit comments

Comments
 (0)