Skip to content

Commit 021a334

Browse files
fix(nodes): fix spots where default of None was provided for non-optional fields
1 parent cfed293 commit 021a334

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

invokeai/app/invocations/composition-nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ def invoke(self, context: InvocationContext) -> ImageOutput:
274274
title="Enhance Image",
275275
tags=["enhance", "image"],
276276
category="image",
277-
version="1.2.0",
277+
version="1.2.1",
278278
)
279279
class InvokeImageEnhanceInvocation(BaseInvocation, WithMetadata, WithBoard):
280280
"""Applies processing from PIL's ImageEnhance module. Originally created by @dwringer"""
281281

282-
image: ImageField = InputField(default=None, description="The image for which to apply processing")
282+
image: ImageField = InputField(description="The image for which to apply processing")
283283
invert: bool = InputField(default=False, description="Whether to invert the image colors")
284284
color: float = InputField(ge=0, default=1.0, description="Color enhancement factor")
285285
contrast: float = InputField(ge=0, default=1.0, description="Contrast enhancement factor")

invokeai/app/invocations/create_gradient_mask.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class GradientMaskOutput(BaseInvocationOutput):
4242
title="Create Gradient Mask",
4343
tags=["mask", "denoise"],
4444
category="latents",
45-
version="1.2.0",
45+
version="1.2.1",
4646
)
4747
class CreateGradientMaskInvocation(BaseInvocation):
4848
"""Creates mask for denoising model run."""
4949

50-
mask: ImageField = InputField(default=None, description="Image which will be masked", ui_order=1)
50+
mask: ImageField= InputField(description="Image which will be masked", ui_order=1)
5151
edge_radius: int = InputField(
5252
default=16, ge=0, description="How far to blur/expand the edges of the mask", ui_order=2
5353
)

invokeai/app/invocations/ideal_size.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class IdealSizeOutput(BaseInvocationOutput):
2121
"ideal_size",
2222
title="Ideal Size - SD1.5, SDXL",
2323
tags=["latents", "math", "ideal_size"],
24-
version="1.0.5",
24+
version="1.0.6",
2525
)
2626
class IdealSizeInvocation(BaseInvocation):
2727
"""Calculates the ideal size for generation to avoid duplication"""
2828

2929
width: int = InputField(default=1024, description="Final image width")
3030
height: int = InputField(default=576, description="Final image height")
31-
unet: UNetField = InputField(default=None, description=FieldDescriptions.unet)
31+
unet: UNetField = InputField(description=FieldDescriptions.unet)
3232
multiplier: float = InputField(
3333
default=1.0,
3434
description="Amount to multiply the model's dimensions by when calculating the ideal size (may result in "

invokeai/app/invocations/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,13 +975,13 @@ def invoke(self, context: InvocationContext) -> ImageOutput:
975975
title="Canvas Paste Back",
976976
tags=["image", "combine"],
977977
category="image",
978-
version="1.0.0",
978+
version="1.0.1",
979979
)
980980
class CanvasPasteBackInvocation(BaseInvocation, WithMetadata, WithBoard):
981981
"""Combines two images by using the mask provided. Intended for use on the Unified Canvas."""
982982

983983
source_image: ImageField = InputField(description="The source image")
984-
target_image: ImageField = InputField(default=None, description="The target image")
984+
target_image: ImageField = InputField(description="The target image")
985985
mask: ImageField = InputField(
986986
description="The mask to use when pasting",
987987
)

0 commit comments

Comments
 (0)