mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update tiling nodes to use width-before-height field ordering convention.
This commit is contained in:
parent
04e0fefdee
commit
7e4a689370
@ -33,12 +33,12 @@ class CalculateImageTilesOutput(BaseInvocationOutput):
|
|||||||
class CalculateImageTilesInvocation(BaseInvocation):
|
class CalculateImageTilesInvocation(BaseInvocation):
|
||||||
"""Calculate the coordinates and overlaps of tiles that cover a target image shape."""
|
"""Calculate the coordinates and overlaps of tiles that cover a target image shape."""
|
||||||
|
|
||||||
|
image_width: int = InputField(ge=1, default=1024, description="The image width, in pixels, to calculate tiles for.")
|
||||||
image_height: int = InputField(
|
image_height: int = InputField(
|
||||||
ge=1, default=1024, description="The image height, in pixels, to calculate tiles for."
|
ge=1, default=1024, description="The image height, in pixels, to calculate tiles for."
|
||||||
)
|
)
|
||||||
image_width: int = InputField(ge=1, default=1024, description="The image width, in pixels, to calculate tiles for.")
|
|
||||||
tile_height: int = InputField(ge=1, default=576, description="The tile height, in pixels.")
|
|
||||||
tile_width: int = InputField(ge=1, default=576, description="The tile width, in pixels.")
|
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.")
|
||||||
overlap: int = InputField(
|
overlap: int = InputField(
|
||||||
ge=0,
|
ge=0,
|
||||||
default=128,
|
default=128,
|
||||||
@ -117,8 +117,8 @@ class MergeTilesToImageInvocation(BaseInvocation, WithMetadata, WithWorkflow):
|
|||||||
"""Merge multiple tile images into a single image."""
|
"""Merge multiple tile images into a single image."""
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
image_height: int = InputField(ge=1, description="The height of the output image, in pixels.")
|
|
||||||
image_width: int = InputField(ge=1, description="The width of the output image, in pixels.")
|
image_width: int = InputField(ge=1, description="The width of the output image, in pixels.")
|
||||||
|
image_height: int = InputField(ge=1, description="The height of the output image, in pixels.")
|
||||||
tiles_with_images: list[TileWithImage] = InputField(description="A list of tile images with tile properties.")
|
tiles_with_images: list[TileWithImage] = InputField(description="A list of tile images with tile properties.")
|
||||||
blend_amount: int = InputField(
|
blend_amount: int = InputField(
|
||||||
ge=0,
|
ge=0,
|
||||||
|
Loading…
Reference in New Issue
Block a user