
    cCi;                         S r SSKrSSKJr  SSKJrJr  SSKJrJ	r	J
r
   " S S\5      r " S	 S
\	SS9r " S S\
5      rS/rg)z&
Image/Text processor class for FLAVA
    N)Iterable)OptionalUnion   )ImagesKwargsProcessingKwargsProcessorMixinc                   p   \ rS rSr% \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\   \S	'   \\   \S
'   \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\	\\4      \S'   \\   \S'   \\   \S'   \\	\\
\   4      \S'   \\	\\
\   4      \S'   Srg)FlavaImagesKwargs   return_image_maskinput_size_patchestotal_mask_patchesmask_group_min_patchesmask_group_max_patchesmask_group_min_aspect_ratiomask_group_max_aspect_ratioreturn_codebook_pixelscodebook_do_resizecodebook_sizecodebook_resamplecodebook_do_center_cropcodebook_crop_sizecodebook_do_rescalecodebook_rescale_factorcodebook_do_map_pixelscodebook_do_normalizecodebook_image_meancodebook_image_std N)__name__
__module____qualname____firstlineno__r   bool__annotations__intfloatr   r   __static_attributes__r        d/home/james-whalen/.local/lib/python3.13/site-packages/transformers/models/flava/processing_flava.pyr   r      s    ~% % %$SM)$SM)!)%0!)%0$TN* &D>!}$%d^+ %!$'%eCJ&788$TN*#D>)!%x(>"?@@ uhuo'=!>??r*   r   c                   $    \ rS rSr% \\S'   0 rSrg)FlavaProcessorKwargs2   images_kwargsr    N)r!   r"   r#   r$   r   r&   	_defaultsr)   r    r*   r+   r-   r-   2   s    $$Ir*   r-   F)totalc                   d   ^  \ rS rSrSrSS/rSrSr\r	SU 4S jjr
\S 5       r\S	 5       rS
rU =r$ )FlavaProcessor7   a  
Constructs a FLAVA processor which wraps a FLAVA image processor and a FLAVA tokenizer into a single processor.

[`FlavaProcessor`] offers all the functionalities of [`FlavaImageProcessor`] and [`BertTokenizerFast`]. See the
[`~FlavaProcessor.__call__`] and [`~FlavaProcessor.decode`] for more information.

Args:
    image_processor ([`FlavaImageProcessor`], *optional*): The image processor is a required input.
    tokenizer ([`BertTokenizerFast`], *optional*): The tokenizer is a required input.
image_processor	tokenizerFlavaImageProcessor)BertTokenizerBertTokenizerFastc                    > S nSU;   a,  [         R                  " S[        5        UR                  S5      nUb  UOUn[        TU ]  X5        U R                  U l        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__r5   current_processor)selfr5   r6   kwargsr;   	__class__s        r+   rA   FlavaProcessor.__init__H   s_     &(MM
 !'

+> ?-<-H/N_4!%!5!5r*   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rC   s    r+   feature_extractor_class&FlavaProcessor.feature_extractor_classV   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>   r5   rI   s    r+   r;    FlavaProcessor.feature_extractor^   s"    i	
 ###r*   )rB   )NN)r!   r"   r#   r$   __doc__
attributesrH   tokenizer_classr-   valid_processor_kwargsrA   propertyrJ   r;   r)   __classcell__)rE   s   @r+   r3   r3   7   sR    	 $[1J1<O16 * * $ $r*   r3   )rN   r<   collections.abcr   typingr   r   processing_utilsr   r   r	   r   r-   r3   __all__r    r*   r+   <module>rX      sO     $ " N N@ @0+5 
-$^ -$` 
r*   