Spaces:
Running
Running
Download diffusers_patch/src/diffusers/pipelines/pixeldit/pipeline_output.py from madtune/pixeldit-space: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/madtune/pixeldit-space/resolve/main/diffusers_patch/src/diffusers/pipelines/pixeldit/pipeline_output.py
- Command line
-
hf download hf://spaces/madtune/pixeldit-space/diffusers_patch/src/diffusers/pipelines/pixeldit/pipeline_output.py
-
curl -L -o pipeline_output.py https://huggingface.co/spaces/madtune/pixeldit-space/resolve/main/diffusers_patch/src/diffusers/pipelines/pixeldit/pipeline_output.py
481 Bytes
| from dataclasses import dataclass | |
| from typing import List, Union | |
| import numpy as np | |
| import PIL.Image | |
| from diffusers.utils import BaseOutput | |
| class PixelDiTPipelineOutput(BaseOutput): | |
| """ | |
| Output class for PixelDiT text-to-image pipelines. | |
| Args: | |
| images (`List[PIL.Image.Image]` or `np.ndarray`): | |
| List of generated images or numpy array of shape `(batch, height, width, 3)`. | |
| """ | |
| images: Union[List[PIL.Image.Image], np.ndarray] | |