o
    Û·i™  ã                   @   sh   d dl mZ d dlZd dlZd dlZd dlmZm	Z	 e	e
ƒZeG dd„ deƒƒZeG dd„ deƒƒZdS )é    )Ú	dataclassN)Ú
BaseOutputÚ
get_loggerc                   @   s   e Zd ZU dZejed< dS )ÚCosmosPipelineOutputaÃ  
    Output class for Cosmos any-to-world/video pipelines.

    Args:
        frames (`torch.Tensor`, `np.ndarray`, or list[list[PIL.Image.Image]]):
            list of video outputs - It can be a nested list of length `batch_size,` with each sub-list containing
            denoised PIL image sequences of length `num_frames.` It can also be a NumPy array or Torch tensor of shape
            `(batch_size, num_frames, channels, height, width)`.
    ÚframesN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚtorchÚTensorÚ__annotations__© r   r   ú`/home/ubuntu/vllm_env/lib/python3.10/site-packages/diffusers/pipelines/cosmos/pipeline_output.pyr      s   
 
r   c                   @   s(   e Zd ZU dZeejj ejB e	d< dS )ÚCosmosImagePipelineOutputa^  
    Output class for Cosmos any-to-image 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.
    ÚimagesN)
r   r   r	   r
   ÚlistÚPILÚImageÚnpÚndarrayr   r   r   r   r   r      s   
 	r   )Údataclassesr   Únumpyr   Ú	PIL.Imager   r   Údiffusers.utilsr   r   r   Úloggerr   r   r   r   r   r   Ú<module>   s    