mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
6261c68396
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Vladimir Mandic <mandic00@live.com>
22 lines
606 B
Python
22 lines
606 B
Python
from dataclasses import dataclass
|
|
from typing import List, Union
|
|
|
|
import numpy as np
|
|
import PIL.Image
|
|
|
|
from diffusers.utils import BaseOutput
|
|
|
|
|
|
@dataclass
|
|
class Step1XEditPipelineOutput(BaseOutput):
|
|
"""
|
|
Output class for Step1X-Edit 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]
|