
    h                     x    d Z ddlmZ ddlmZmZmZ  G d ded      Z G d	 d
ed      Z G d de      Z	dgZ
y)z)
Image/Text processor class for SigLIP2.
    )Optional   )ImagesKwargsProcessingKwargsProcessorMixinc                   .    e Zd ZU ee   ed<   ee   ed<   y)Siglip2ImagesKwargsmax_num_patches
patch_sizeN)__name__
__module____qualname__r   int__annotations__     m/var/www/html/aiagenthome/venv/lib/python3.12/site-packages/transformers/models/siglip2/processing_siglip2.pyr	   r	      s    c]"r   r	   F)totalc                   0    e Zd ZU eed<   dddddddd	Zy
)Siglip2ProcessorKwargsimages_kwargs
max_lengthT@   )padding
truncationr         )r
   r   )text_kwargsr   N)r   r   r   r	   r   	_defaultsr   r   r   r   r      s,    && $
  #

Ir   r   c                   6     e Zd ZdZddgZdZdZeZ fdZ	 xZ
S )Siglip2Processora!  
    Constructs a Siglip2 processor which wraps a Siglip2 image processor and a Gemma tokenizer into a single processor.

    [`Siglip2Processor`] offers all the functionalities of [`Siglip2ImageProcessor`] and [`GemmaTokenizerFast`]. See the
    [`~Siglip2Processor.__call__`] and [`~Siglip2Processor.decode`] for more information.

    Args:
        image_processor ([`Siglip2ImageProcessor`]):
            The image processor is a required input.
        tokenizer ([`GemmaTokenizerFast`]):
            The tokenizer is a required input.
    image_processor	tokenizerAutoImageProcessorAutoTokenizerc                 &    t         |   ||       y )N)super__init__)selfr"   r#   	__class__s      r   r(   zSiglip2Processor.__init__A   s    )4r   )r   r   r   __doc__
attributesimage_processor_classtokenizer_classr   valid_processor_kwargsr(   __classcell__)r*   s   @r   r!   r!   -   s/     $[1J0%O35 5r   r!   N)r+   typingr   processing_utilsr   r   r   r	   r   r!   __all__r   r   r   <module>r4      sH     N N,e 
-U  5~ 50 
r   