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.
This commit is contained in:
Alexander Eichhorn 2025-12-16 09:41:26 +01:00
parent 8785d9a3a9
commit 39cdcdc9e8
2 changed files with 4 additions and 16 deletions

View File

@ -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.

View File

@ -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.