
    Ph	                     N    d Z ddlmZmZ  G d ded      Z G d de      ZdgZy	)
z&
Image/Text processor class for ALIGN
   )ProcessingKwargsProcessorMixinc                       e Zd ZddddiZy)AlignProcessorKwargstext_kwargs
max_length@   )paddingr   N)__name__
__module____qualname__	_defaults     d/var/www/html/saasai/venv/lib/python3.12/site-packages/transformers/models/align/processing_align.pyr   r      s     	#
Ir   r   F)totalc                   6     e Zd ZdZddgZdZdZeZ fdZ	 xZ
S )AlignProcessoray  
    Constructs an ALIGN processor which wraps [`EfficientNetImageProcessor`] and
    [`BertTokenizer`]/[`BertTokenizerFast`] into a single processor that inherits both the image processor and
    tokenizer functionalities. See the [`~AlignProcessor.__call__`] and [`~OwlViTProcessor.decode`] for more
    information.
    The preferred way of passing kwargs is as a dictionary per modality, see usage example below.
        ```python
        from transformers import AlignProcessor
        from PIL import Image
        model_id = "kakaobrain/align-base"
        processor = AlignProcessor.from_pretrained(model_id)

        processor(
            images=your_pil_image,
            text=["What is that?"],
            images_kwargs = {"crop_size": {"height": 224, "width": 224}},
            text_kwargs = {"padding": "do_not_pad"},
            common_kwargs = {"return_tensors": "pt"},
        )
        ```

    Args:
        image_processor ([`EfficientNetImageProcessor`]):
            The image processor is a required input.
        tokenizer ([`BertTokenizer`, `BertTokenizerFast`]):
            The tokenizer is a required input.

    image_processor	tokenizerEfficientNetImageProcessor)BertTokenizerBertTokenizerFastc                 &    t         |   ||       y )N)super__init__)selfr   r   	__class__s      r   r   zAlignProcessor.__init__C   s    )4r   )r   r   r   __doc__
attributesimage_processor_classtokenizer_classr   valid_processor_kwargsr   __classcell__)r   s   @r   r   r       s/    : $[1J8<O15 5r   r   N)r   processing_utilsr   r   r   r   __all__r   r   r   <module>r'      s6    A+5 $5^ $5N 
r   