o
    Û·i¦  ã                   @   sn   d dl mZ d dlZd dlZddlmZmZ eG dd„ deƒƒZ	eƒ r5d dl
Z
e
jjG dd„ deƒƒZdS dS )	é    )Ú	dataclassNé   )Ú
BaseOutputÚis_flax_availablec                   @   s8   e Zd ZU dZeejj ejB e	d< ee
 dB e	d< dS )ÚStableDiffusionPipelineOutputaê  
    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)`.
        nsfw_content_detected (`list[bool]`)
            list indicating whether the corresponding generated image contains "not-safe-for-work" (nsfw) content or
            `None` if safety checking could not be performed.
    ÚimagesNÚnsfw_content_detected)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚlistÚPILÚImageÚnpÚndarrayÚ__annotations__Úbool© r   r   új/home/ubuntu/vllm_env/lib/python3.10/site-packages/diffusers/pipelines/stable_diffusion/pipeline_output.pyr   	   s   
 r   c                   @   s(   e Zd ZU dZejed< ee ed< dS )Ú!FlaxStableDiffusionPipelineOutputaÇ  
        Output class for Flax-based Stable Diffusion pipelines.

        Args:
            images (`np.ndarray`):
                Denoised images of array shape of `(batch_size, height, width, num_channels)`.
            nsfw_content_detected (`list[bool]`):
                list indicating whether the corresponding generated image contains "not-safe-for-work" (nsfw) content
                or `None` if safety checking could not be performed.
        r   r   N)	r	   r
   r   r   r   r   r   r   r   r   r   r   r   r      s   
 
r   )Údataclassesr   Únumpyr   Ú	PIL.Imager   Úutilsr   r   r   ÚflaxÚstructr   r   r   r   r   Ú<module>   s    ü