From 39cdcdc9e82ab82039f0162be68d2dce15ab44fe Mon Sep 17 00:00:00 2001 From: Alexander Eichhorn Date: Tue, 16 Dec 2025 09:41:26 +0100 Subject: [PATCH] fix(z-image): remove unused WithMetadata and WithBoard mixins from denoise node The Z-Image denoise node outputs latents, not images, so these mixins were unnecessary. Metadata and board handling is correctly done in the L2I (latents-to-image) node. This aligns with how FLUX denoise works. --- invokeai/app/invocations/z_image_denoise.py | 6 ++---- invokeai/frontend/web/src/services/api/schema.ts | 14 ++------------ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/invokeai/app/invocations/z_image_denoise.py b/invokeai/app/invocations/z_image_denoise.py index 5b8942deca..5d82a996b1 100644 --- a/invokeai/app/invocations/z_image_denoise.py +++ b/invokeai/app/invocations/z_image_denoise.py @@ -14,8 +14,6 @@ from invokeai.app.invocations.fields import ( Input, InputField, LatentsField, - WithBoard, - WithMetadata, ZImageConditioningField, ) from invokeai.app.invocations.model import TransformerField @@ -36,10 +34,10 @@ from invokeai.backend.util.devices import TorchDevice title="Denoise - Z-Image", tags=["image", "z-image"], category="image", - version="1.0.0", + version="1.1.0", classification=Classification.Prototype, ) -class ZImageDenoiseInvocation(BaseInvocation, WithMetadata, WithBoard): +class ZImageDenoiseInvocation(BaseInvocation): """Run the denoising process with a Z-Image model.""" # If latents is provided, this means we are doing image-to-image. diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts index 448e91a2d0..99e5ff255f 100644 --- a/invokeai/frontend/web/src/services/api/schema.ts +++ b/invokeai/frontend/web/src/services/api/schema.ts @@ -13021,14 +13021,14 @@ export type components = { * Convert Cache Dir * Format: path * @description Path to the converted models cache directory (DEPRECATED, but do not delete because it is needed for migration from previous versions). - * @default models/.convert_cache + * @default models\.convert_cache */ convert_cache_dir?: string; /** * Download Cache Dir * Format: path * @description Path to the directory that contains dynamically downloaded models. - * @default models/.download_cache + * @default models\.download_cache */ download_cache_dir?: string; /** @@ -25137,16 +25137,6 @@ export type components = { * @description Run the denoising process with a Z-Image model. */ ZImageDenoiseInvocation: { - /** - * @description The board to save the image to - * @default null - */ - board?: components["schemas"]["BoardField"] | null; - /** - * @description Optional metadata to be saved with the image - * @default null - */ - metadata?: components["schemas"]["MetadataField"] | null; /** * Id * @description The id of this instance of an invocation. Must be unique among all instances of invocations.