Skip to content

Commit 6e8ffd1

Browse files
committed
Updated
1 parent 4eb869e commit 6e8ffd1

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

src/diffusers/pipelines/bria/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
_dummy_objects = {}
1414
_additional_imports = {}
15-
#_import_structure = {"pipeline_output": ["FluxPipelineOutput", "FluxPriorReduxPipelineOutput"]}
15+
_import_structure = {"pipeline_output": ["BriaPipelineOutput"]}
1616

1717
try:
1818
if not (is_transformers_available() and is_torch_available()):

src/diffusers/pipelines/bria/pipeline_bria.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ...loaders import FluxLoraLoaderMixin
1212
from ...models import AutoencoderKL, BriaTransformer2DModel
1313
from ...pipelines.flux.pipeline_flux import FluxPipeline, calculate_shift, retrieve_timesteps
14-
from ...pipelines.flux.pipeline_output import FluxPipelineOutput
14+
from .pipeline_output import BriaPipelineOutput
1515
from ...schedulers import (
1616
DDIMScheduler,
1717
EulerAncestralDiscreteScheduler,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from dataclasses import dataclass
2+
from typing import List, Union
3+
4+
import numpy as np
5+
import PIL.Image
6+
import torch
7+
8+
from ...utils import BaseOutput
9+
10+
11+
@dataclass
12+
class BriaPipelineOutput(BaseOutput):
13+
"""
14+
Output class for Stable Diffusion pipelines.
15+
16+
Args:
17+
images (`List[PIL.Image.Image]` or `np.ndarray`)
18+
List of denoised PIL images of length `batch_size` or numpy array of shape `(batch_size, height, width,
19+
num_channels)`. PIL images or numpy array present the denoised images of the diffusion pipeline.
20+
"""
21+
22+
images: Union[List[PIL.Image.Image], np.ndarray]

0 commit comments

Comments
 (0)