
    bCi	                     H    S r SSKJrJr   " S S\SS9r " S S\5      rS/rg	)
z&
Image/Text processor class for ALIGN
   )ProcessingKwargsProcessorMixinc                   "    \ rS rSrSSSS.0rSrg)AlignProcessorKwargs   text_kwargs
max_length@   )paddingr	    N)__name__
__module____qualname____firstlineno__	_defaults__static_attributes__r       d/home/james-whalen/.local/lib/python3.13/site-packages/transformers/models/align/processing_align.pyr   r      s     	#
Ir   r   F)totalc                   @   ^  \ rS rSrSrSS/rSrSr\r	U 4S jr
SrU =r$ )	AlignProcessor    a  
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U ]  X5        g )N)super__init__)selfr   r   	__class__s      r   r    AlignProcessor.__init__C   s    4r   r   )r   r   r   r   __doc__
attributesimage_processor_classtokenizer_classr   valid_processor_kwargsr    r   __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   