From 32659236b22e7e13830726f3a4956bebf306d7db Mon Sep 17 00:00:00 2001 From: Edna <88869424+Ednaordinary@users.noreply.github.com> Date: Tue, 10 Jun 2025 02:24:23 -0600 Subject: [PATCH] make chroma output class --- .../pipelines/chroma/pipeline_output.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/diffusers/pipelines/chroma/pipeline_output.py diff --git a/src/diffusers/pipelines/chroma/pipeline_output.py b/src/diffusers/pipelines/chroma/pipeline_output.py new file mode 100644 index 0000000000..bb0a52ceb5 --- /dev/null +++ b/src/diffusers/pipelines/chroma/pipeline_output.py @@ -0,0 +1,22 @@ +from dataclasses import dataclass +from typing import List, Union + +import numpy as np +import PIL.Image +import torch + +from ...utils import BaseOutput + + +@dataclass +class ChromaPipelineOutput(BaseOutput): + """ + Output class for Stable Diffusion pipelines. + + Args: + images (`List[PIL.Image.Image]` or `np.ndarray`) + List of denoised PIL images of length `batch_size` or numpy array of shape `(batch_size, height, width, + num_channels)`. PIL images or numpy array present the denoised images of the diffusion pipeline. + """ + + images: Union[List[PIL.Image.Image], np.ndarray]