
    bi                         d dl mZ d dlmZmZmZ d dlZd dlZ	ddl
mZmZ e G d de             Z e       r)d dlZej                  j                   G d d	e             Zyy)
    )	dataclass)ListOptionalUnionN   )
BaseOutputis_flax_availablec                   ~    e Zd ZU dZeeej                  j                     ej                  f   e
d<   eee      e
d<   y)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.
    imagesnsfw_content_detectedN)__name__
__module____qualname____doc__r   r   PILImagenpndarray__annotations__r   bool     o/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/diffusers/pipelines/stable_diffusion/pipeline_output.pyr   r   
   s9    
 $syy'344#DJ//r   r   c                   @    e Zd ZU dZej
                  ed<   ee   ed<   y)!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    		 

#Dz)r   r   )dataclassesr   typingr   r   r   numpyr   	PIL.Imager   utilsr   r	   r   flaxstructr   r   r   r   <module>r$      se    ! ( (   2 0J 0 0" 	[[*J * *	 r   