
    bCi.
                     8    S r SSKrSSKJr   " S S\5      rS/rg)z%
Image/Text processor class for CLIP
    N   )ProcessorMixinc                   `   ^  \ rS rSrSrSS/rSrSrSU 4S jjr\	S 5       r
\	S	 5       rS
rU =r$ )CLIPProcessor   a  
Constructs a CLIP processor which wraps a CLIP image processor and a CLIP tokenizer into a single processor.

[`CLIPProcessor`] offers all the functionalities of [`CLIPImageProcessor`] and [`CLIPTokenizerFast`]. See the
[`~CLIPProcessor.__call__`] and [`~CLIPProcessor.decode`] for more information.

Args:
    image_processor ([`CLIPImageProcessor`], *optional*):
        The image processor is a required input.
    tokenizer ([`AutoTokenizer`], *optional*):
        The tokenizer is a required input.
image_processor	tokenizer)CLIPImageProcessorCLIPImageProcessorFastAutoTokenizerc                    > S nSU;   a,  [         R                  " S[        5        UR                  S5      nUb  UOUn[        TU ]  X5        g )Nfeature_extractorzhThe `feature_extractor` argument is deprecated and will be removed in v5, use `image_processor` instead.)warningswarnFutureWarningpopsuper__init__)selfr   r	   kwargsr   	__class__s        b/home/james-whalen/.local/lib/python3.13/site-packages/transformers/models/clip/processing_clip.pyr   CLIPProcessor.__init__*   sQ     &(MM
 !'

+> ?-<-H/N_4    c                 P    [         R                  " S[        5        U R                  $ )Nzg`feature_extractor_class` is deprecated and will be removed in v5. Use `image_processor_class` instead.)r   r   r   image_processor_classr   s    r   feature_extractor_class%CLIPProcessor.feature_extractor_class8   s"    u	
 )))r   c                 P    [         R                  " S[        5        U R                  $ )Nz[`feature_extractor` is deprecated and will be removed in v5. Use `image_processor` instead.)r   r   r   r   r   s    r   r   CLIPProcessor.feature_extractor@   s"    i	
 ###r    )NN)__name__
__module____qualname____firstlineno____doc__
attributesr   tokenizer_classr   propertyr   r   __static_attributes____classcell__)r   s   @r   r   r      sL     $[1JL%O5 * * $ $r   r   )r'   r   processing_utilsr   r   __all__r"   r   r   <module>r/      s)     ..$N .$b 
r   