
    bCi                        % S r SSKrSSKrSSKrSSKrSSKJr  SSKJrJ	r	J
r
  SSKJr  SSKJrJr  SSKJr  SS	KJr  SS
KJrJrJrJrJrJrJrJr  SSKJr  SSKJ r   SSK!J"r"J#r#J$r$J%r%  \RL                  " \'5      r(S/r)\(       a  \" 5       r*\\+\,\	\+   \	\+   4   4   \-S'   O
\" / SQ5      r*\*R]                  5        H,  u  r/u  r0r1\" 5       (       d  Sr0\" 5       (       d  Sr1\0\14\*\/'   M.     \ " \"\*5      r2S\+4S jr3       S#S\
\+\Rh                  4   S\	\
\+\Rh                  4      S\5S\	\5   S\	\6\+\+4      S\	\
\5\+4      S\	\+   S\54S jjr7S r8\" SS9 " S  S!5      5       r9S"S!/r:g)$zAutoImageProcessor class.    N)OrderedDict)TYPE_CHECKINGOptionalUnion   )PretrainedConfig)get_class_from_dynamic_moduleresolve_trust_remote_code)ImageProcessingMixin)BaseImageProcessorFast)CONFIG_NAMEIMAGE_PROCESSOR_NAMEcached_fileis_timm_config_dictis_timm_local_checkpointis_torchvision_availableis_vision_availablelogging)requires   )_LazyAutoMapping)CONFIG_MAPPING_NAMES
AutoConfigmodel_type_to_module_name!replace_list_option_in_docstringsQwen2VLImageProcessorIMAGE_PROCESSOR_MAPPING_NAMES))aimv2CLIPImageProcessorCLIPImageProcessorFast)aimv2_vision_modelr   )alignEfficientNetImageProcessorEfficientNetImageProcessorFast)aria)AriaImageProcessorN)beitBeitImageProcessorBeitImageProcessorFast)bitBitImageProcessorBitImageProcessorFast)blipBlipImageProcessorBlipImageProcessorFast)zblip-2r2   )bridgetower)BridgeTowerImageProcessorBridgeTowerImageProcessorFast)	chameleon)ChameleonImageProcessorChameleonImageProcessorFast)chinese_clip)ChineseCLIPImageProcessorChineseCLIPImageProcessorFast)clipr   )clipsegViTImageProcessorViTImageProcessorFast)cohere2_vision)NCohere2VisionImageProcessorFast)conditional_detr)ConditionalDetrImageProcessor!ConditionalDetrImageProcessorFast)convnextConvNextImageProcessorConvNextImageProcessorFast)
convnextv2rI   )cvtrI   )zdata2vec-visionr*   )deepseek_vl)DeepseekVLImageProcessorDeepseekVLImageProcessorFast)deepseek_vl_hybrid)DeepseekVLHybridImageProcessor"DeepseekVLHybridImageProcessorFast)deformable_detr)DeformableDetrImageProcessor DeformableDetrImageProcessorFast)deit)DeiTImageProcessorDeiTImageProcessorFast)depth_anythingDPTImageProcessorDPTImageProcessorFast)	depth_pro)DepthProImageProcessorDepthProImageProcessorFast)deta)DetaImageProcessorN)detrDetrImageProcessorDetrImageProcessorFast)dinatr@   )dinov2r.   )
dinov3_vit)NDINOv3ViTImageProcessorFast)z
donut-swin)DonutImageProcessorDonutImageProcessorFast)dptr[   )edgetamNSam2ImageProcessorFast)efficientformer)EfficientFormerImageProcessorN)efficientloftr)EfficientLoFTRImageProcessor EfficientLoFTRImageProcessorFast)efficientnetr$   )eomt)EomtImageProcessorEomtImageProcessorFast)flava)FlavaImageProcessorFlavaImageProcessorFast)focalnetr.   )fuyu)FuyuImageProcessorN)gemma3Gemma3ImageProcessorGemma3ImageProcessorFast)gemma3nSiglipImageProcessorSiglipImageProcessorFast)gitr   )glm4v)Glm4vImageProcessorGlm4vImageProcessorFast)glpn)GLPNImageProcessorN)got_ocr2)GotOcr2ImageProcessorGotOcr2ImageProcessorFast)zgrounding-dinoGroundingDinoImageProcessorGroundingDinoImageProcessorFast)groupvitr   )hierar.   )idefics)IdeficsImageProcessorN)idefics2)Idefics2ImageProcessorIdefics2ImageProcessorFast)idefics3)Idefics3ImageProcessorIdefics3ImageProcessorFast)ijepar@   )imagegpt)ImageGPTImageProcessorImageGPTImageProcessorFast)instructblipr2   )instructblipvideo)InstructBlipVideoImageProcessorN)janus)JanusImageProcessorJanusImageProcessorFast)zkosmos-2r   )z
kosmos-2.5)Kosmos2_5ImageProcessorKosmos2_5ImageProcessorFast)
layoutlmv2)LayoutLMv2ImageProcessorLayoutLMv2ImageProcessorFast)
layoutlmv3LayoutLMv3ImageProcessorLayoutLMv3ImageProcessorFast)levit)LevitImageProcessorLevitImageProcessorFast)lfm2_vl)NLfm2VlImageProcessorFast)	lightglue)LightGlueImageProcessorN)llama4)Llama4ImageProcessorLlama4ImageProcessorFast)llava)LlavaImageProcessorLlavaImageProcessorFast)
llava_next)LlavaNextImageProcessorLlavaNextImageProcessorFast)llava_next_video)LlavaNextVideoImageProcessorN)llava_onevision)LlavaOnevisionImageProcessor LlavaOnevisionImageProcessorFast)mask2former)Mask2FormerImageProcessorMask2FormerImageProcessorFast)
maskformer)MaskFormerImageProcessorMaskFormerImageProcessorFast)
metaclip_2r   )zmgp-strr@   )mistral3PixtralImageProcessorPixtralImageProcessorFast)mlcdr   )mllama)MllamaImageProcessorN)zmm-grounding-dinor   )mobilenet_v1)MobileNetV1ImageProcessorMobileNetV1ImageProcessorFast)mobilenet_v2)MobileNetV2ImageProcessorMobileNetV2ImageProcessorFast)	mobilevitMobileViTImageProcessorMobileViTImageProcessorFast)mobilevitv2r   )natr@   )nougat)NougatImageProcessorNougatImageProcessorFast)	oneformer)OneFormerImageProcessorOneFormerImageProcessorFast)ovis2)Ovis2ImageProcessorOvis2ImageProcessorFast)owlv2)Owlv2ImageProcessorOwlv2ImageProcessorFast)owlvit)OwlViTImageProcessorOwlViTImageProcessorFast)	paligemmar   )	perceiver)PerceiverImageProcessorPerceiverImageProcessorFast)perception_lm)NPerceptionLMImageProcessorFast)phi4_multimodal)N Phi4MultimodalImageProcessorFast)
pix2struct)Pix2StructImageProcessorN)pixtralr   )
poolformer)PoolFormerImageProcessorPoolFormerImageProcessorFast)prompt_depth_anything)!PromptDepthAnythingImageProcessor%PromptDepthAnythingImageProcessorFast)pvtPvtImageProcessorPvtImageProcessorFast)pvt_v2r  )
qwen2_5_vlr   Qwen2VLImageProcessorFast)qwen2_vlr  )qwen3_vlr  )regnetrI   )resnetrI   )rt_detr)RTDetrImageProcessorRTDetrImageProcessorFast)samSamImageProcessorSamImageProcessorFast)sam2ro   )sam_hqr  )	segformerSegformerImageProcessorSegformerImageProcessorFast)seggpt)SegGptImageProcessorN)shieldgemma2r   )siglipr   )siglip2)Siglip2ImageProcessorSiglip2ImageProcessorFast)smolvlm)SmolVLMImageProcessorSmolVLMImageProcessorFast)	superglue)SuperGlueImageProcessorN)
superpoint)SuperPointImageProcessorSuperPointImageProcessorFast)swiftformerr@   )swinr@   )swin2sr)Swin2SRImageProcessorSwin2SRImageProcessorFast)swinv2r@   )ztable-transformerrd   )textnet)TextNetImageProcessorTextNetImageProcessorFast)timesformerVideoMAEImageProcessorN)timm_wrapper)TimmWrapperImageProcessorN)tvlt)TvltImageProcessorN)tvp)TvpImageProcessorTvpImageProcessorFast)udopr   )upernetr  )vanrI   )videomaer2  )vilt)ViltImageProcessorViltImageProcessorFast)vipllavar   )vitr@   )
vit_hybrid)ViTHybridImageProcessorN)vit_maer@   )vit_msnr@   )vitmatte)VitMatteImageProcessorVitMatteImageProcessorFast)xclipr   )yolos)YolosImageProcessorYolosImageProcessorFast)zoedepth)ZoeDepthImageProcessorZoeDepthImageProcessorFast
class_namec                    U S:X  a  [         $ [        R                  5        H=  u  pX;   d  M  [        U5      n[        R
                  " SU 3S5      n [        X05      s  $    [        R                  R                  5        H#  nU H  n[        USS 5      U :X  d  M  Us  s  $    M%     [        R
                  " S5      n[        XP5      (       a  [        XP5      $ g ! [         a     M  f = f)Nr   .ztransformers.models__name__transformers)r   r   itemsr   	importlibimport_modulegetattrAttributeErrorIMAGE_PROCESSOR_MAPPING_extra_contentvalueshasattr)rR  module_name
extractorsmodule	extractormain_modules         h/home/james-whalen/.local/lib/python3.13/site-packages/transformers/models/auto/image_processing_auto.py#get_image_processor_class_from_namerf     s    --%%#@#F#F#H#3K@K,,q->@UVFv22 $I .<<CCE
#Iy*d3zA   $ F )).9K{''{// " s   
C
C'&C'pretrained_model_name_or_path	cache_dirforce_downloadresume_downloadproxiestokenrevisionlocal_files_onlyc                 \   UR                  SS5      n	U	b+  [        R                  " S[        5        Ub  [	        S5      eU	n[        U [        UUUUUUUSSSS9n
U
c  [        R                  S5        0 $ [        U
SS	9 n[        R                  " U5      sSSS5        $ ! , (       d  f       g= f)
a
  
Loads the image processor configuration from a pretrained model image processor configuration.

Args:
    pretrained_model_name_or_path (`str` or `os.PathLike`):
        This can be either:

        - a string, the *model id* of a pretrained model configuration hosted inside a model repo on
          huggingface.co.
        - a path to a *directory* containing a configuration file saved using the
          [`~PreTrainedTokenizer.save_pretrained`] method, e.g., `./my_model_directory/`.

    cache_dir (`str` or `os.PathLike`, *optional*):
        Path to a directory in which a downloaded pretrained model configuration should be cached if the standard
        cache should not be used.
    force_download (`bool`, *optional*, defaults to `False`):
        Whether or not to force to (re-)download the configuration files and override the cached versions if they
        exist.
    resume_download:
        Deprecated and ignored. All downloads are now resumed by default when possible.
        Will be removed in v5 of Transformers.
    proxies (`dict[str, str]`, *optional*):
        A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
        'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request.
    token (`str` or *bool*, *optional*):
        The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
        when running `hf auth login` (stored in `~/.huggingface`).
    revision (`str`, *optional*, defaults to `"main"`):
        The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
        git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any
        identifier allowed by git.
    local_files_only (`bool`, *optional*, defaults to `False`):
        If `True`, will only try to load the image processor configuration from local files.

<Tip>

Passing `token=True` is required when you want to use a private model.

</Tip>

Returns:
    `Dict`: The configuration of the image processor.

Examples:

```python
# Download configuration from huggingface.co and cache.
image_processor_config = get_image_processor_config("google-bert/bert-base-uncased")
# This model does not have a image processor config so the result will be an empty dict.
image_processor_config = get_image_processor_config("FacebookAI/xlm-roberta-base")

# Save a pretrained image processor locally and you can reload its config
from transformers import AutoTokenizer

image_processor = AutoImageProcessor.from_pretrained("google/vit-base-patch16-224-in21k")
image_processor.save_pretrained("image-processor-test")
image_processor_config = get_image_processor_config("image-processor-test")
```use_auth_tokenNrThe `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.V`token` and `use_auth_token` are both specified. Please set only the argument `token`.F)
rh  ri  rj  rk  rl  rm  rn   _raise_exceptions_for_gated_repo%_raise_exceptions_for_missing_entries'_raise_exceptions_for_connection_errorszbCould not locate the image processor configuration file, will try to use the model config instead.zutf-8)encoding)popwarningswarnFutureWarning
ValueErrorr   r   loggerinfoopenjsonload)rg  rh  ri  rj  rk  rl  rm  rn  kwargsrp  resolved_config_filereaders               re  get_image_processor_configr     s    J ZZ 0$7N! A	
 uvv&%%'))..305 #p	
 		"W	5yy  
6	5	5s   =B
B+c                 6    [         R                  SU  S35        g )NzFast image processor class zz is available for this model. Using slow image processor class. To use the fast image processor class set `use_fast=True`.)r|  warning)
fast_classs    re  '_warning_fast_image_processor_availabler  Z  s!    
NN
%j\ 2g 	g    )vision)backendsc                   `    \ rS rSrSrS r\\" \5      S 5       5       r	\
    SS j5       rSrg)	AutoImageProcessoria  a  
This is a generic image processor class that will be instantiated as one of the image processor classes of the
library when created with the [`AutoImageProcessor.from_pretrained`] class method.

This class cannot be instantiated directly using `__init__()` (throws an error).
c                     [        S5      e)NzAutoImageProcessor is designed to be instantiated using the `AutoImageProcessor.from_pretrained(pretrained_model_name_or_path)` method.)OSError)selfs    re  __init__AutoImageProcessor.__init__j  s    d
 	
r  c                    UR                  SS5      nUb<  [        R                  " S[        5        UR	                  S5      b  [        S5      eXCS'   UR                  SS5      nUR                  SS5      nUR                  SS5      nS	US
'   SU;   a  UR                  S5      nO[        U5      (       a  [        nO[        n [        R                  " U4SU0UD6u  pU	R	                  SS5      nSnSU	R	                  S0 5      ;   a  U	S   S   nUcZ  UcW  U	R                  SS5      nUb  UR                  SS5      nSU	R	                  S0 5      ;   a  U	S   S   nUR                  SS5      nUcn  Uck  [        U[        5      (       d  [         R"                  " U4SU0UD6n[%        USS5      n['        US5      (       a  SUR(                  ;   a  UR(                  S   nSnUGbp  Uch  UR+                  S5      nU(       d4  U[,        ;   a*  [/        5       (       a  S	n[0        R3                  SU S35        U(       d  [0        R3                  S5        U(       a  UR+                  S5      (       d  US-  nU(       aF  [/        5       (       d7  [5        USS 5      nUc  [        SU S35      e[0        R3                  S5        SnU(       aK  [6        R9                  5        H  nUU;   d  M    O   USS nSn[0        R3                  S5        [5        U5      nODUR;                  S5      n[5        U5      nUc%  UR+                  S5      (       a  [        SU S35      eUSLnUSL=(       d    [=        U5      [>        ;   nU(       a_  Ub  [        U[@        5      (       d  US4nU(       a  US   b  US   nOUS   nS U;   a  URC                  S 5      S   nOSn[E        XqUUU5      nU(       ad  U(       a]  U(       d  US   b  [G        US   5        [I        WU40 UD6nUR                  S!S5      n
URK                  5         URL                  " U	40 UD6$ Ub  URL                  " U	40 UD6$ [=        U5      [>        ;   aw  [>        [=        U5         nUu  nnU(       d  Ub  [G        U5        U(       a   U(       d  Uc  UR"                  " U/UQ70 UD6$ Ub  UR"                  " U/UQ70 UD6$ [        S"5      e[        S#U S$[         S%[         S&[         S'S(RO                  S) [6         5       5       3
5      e! [         aN  n [        R                  " U4S[        0UD6u  pO! [         a    Uef = f[        U	5      (       d  Ue SnAGNSnAff = f)*aI  
Instantiate one of the image processor classes of the library from a pretrained model vocabulary.

The image processor class to instantiate is selected based on the `model_type` property of the config object
(either passed as an argument or loaded from `pretrained_model_name_or_path` if possible), or when it's
missing, by falling back to using pattern matching on `pretrained_model_name_or_path`:

List options

Params:
    pretrained_model_name_or_path (`str` or `os.PathLike`):
        This can be either:

        - a string, the *model id* of a pretrained image_processor hosted inside a model repo on
          huggingface.co.
        - a path to a *directory* containing a image processor file saved using the
          [`~image_processing_utils.ImageProcessingMixin.save_pretrained`] method, e.g.,
          `./my_model_directory/`.
        - a path or url to a saved image processor JSON *file*, e.g.,
          `./my_model_directory/preprocessor_config.json`.
    cache_dir (`str` or `os.PathLike`, *optional*):
        Path to a directory in which a downloaded pretrained model image processor should be cached if the
        standard cache should not be used.
    force_download (`bool`, *optional*, defaults to `False`):
        Whether or not to force to (re-)download the image processor files and override the cached versions if
        they exist.
    resume_download:
        Deprecated and ignored. All downloads are now resumed by default when possible.
        Will be removed in v5 of Transformers.
    proxies (`dict[str, str]`, *optional*):
        A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
        'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request.
    token (`str` or *bool*, *optional*):
        The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
        when running `hf auth login` (stored in `~/.huggingface`).
    revision (`str`, *optional*, defaults to `"main"`):
        The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
        git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any
        identifier allowed by git.
    use_fast (`bool`, *optional*, defaults to `False`):
        Use a fast torchvision-base image processor if it is supported for a given model.
        If a fast image processor is not available for a given model, a normal numpy-based image processor
        is returned instead.
    return_unused_kwargs (`bool`, *optional*, defaults to `False`):
        If `False`, then this function returns just the final image processor object. If `True`, then this
        functions returns a `Tuple(image_processor, unused_kwargs)` where *unused_kwargs* is a dictionary
        consisting of the key/value pairs whose keys are not image processor attributes: i.e., the part of
        `kwargs` which has not been used to update `image_processor` and is otherwise ignored.
    trust_remote_code (`bool`, *optional*, defaults to `False`):
        Whether or not to allow for custom models defined on the Hub in their own modeling files. This option
        should only be set to `True` for repositories you trust and in which you have read the code, as it will
        execute code present on the Hub on your local machine.
    image_processor_filename (`str`, *optional*, defaults to `"config.json"`):
        The name of the file in the model directory to use for the image processor config.
    kwargs (`dict[str, Any]`, *optional*):
        The values in kwargs of any keys which are image processor attributes will be used to override the
        loaded values. Behavior concerning key/value pairs whose keys are *not* image processor attributes is
        controlled by the `return_unused_kwargs` keyword parameter.

<Tip>

Passing `token=True` is required when you want to use a private model.

</Tip>

Examples:

```python
>>> from transformers import AutoImageProcessor

>>> # Download image processor from huggingface.co and cache.
>>> image_processor = AutoImageProcessor.from_pretrained("google/vit-base-patch16-224-in21k")

>>> # If image processor files are in a directory (e.g. image processor was saved using *save_pretrained('./test/saved_model/')*)
>>> # image_processor = AutoImageProcessor.from_pretrained("./test/saved_model/")
```rp  Nrq  rl  rr  configuse_fasttrust_remote_codeT
_from_autoimage_processor_filenameimage_processor_typer  auto_mapfeature_extractor_typeFeatureExtractorImageProcessorAutoFeatureExtractorFastzThe image processor of type `aS  ` is now loaded as a fast processor by default, even if the model checkpoint was saved with a slow processor. This is a breaking change and may produce slightly different outputs. To continue using the slow processor, instantiate this class with `use_fast=False`. Note that this behavior will be extended to all models in a future release.aC  Using a slow image processor as `use_fast` is unset and a slow processor was saved with this model. `use_fast=True` will be the default behavior in v4.52, even if the model was saved with a slow processor. This will result in minor differences in outputs. You'll still be able to use a slow processor with `use_fast=False`.`zU` requires `torchvision` to be installed. Please install `torchvision` and try again.zcUsing `use_fast=True` but `torchvision` is not available. Falling back to the slow image processor.Fzz`use_fast` is set to `True` but the image processor class does not have a fast version.  Falling back to the slow version.z\` does not have a slow version. Please set `use_fast=True` when instantiating the processor.r   r   z--code_revisionzZThis image processor cannot be instantiated. Please make sure you have `Pillow` installed.z Unrecognized image processor in z2. Should have a `image_processor_type` key in its z of z3, or one of the following `model_type` keys in its z: z, c              3   $   #    U  H  ov   M     g 7f)N ).0cs     re  	<genexpr>5AutoImageProcessor.from_pretrained.<locals>.<genexpr>q  s     @jLiqLis   )(rw  rx  ry  rz  getr{  r   r   r   r   get_image_processor_dict	Exceptionr   replace
isinstancer   r   from_pretrainedrZ  r_  r  endswithFORCE_FAST_IMAGE_PROCESSORr   r|  warning_oncerf  r   r^  removesuffixtyper\  tuplesplitr
   r  r	   register_for_auto_class	from_dictjoin)clsrg  inputsr  rp  r  r  r  r  config_dict_initial_exceptionr  image_processor_auto_mapfeature_extractor_classfeature_extractor_auto_mapimage_processor_classimage_processorsimage_processor_type_slowhas_remote_codehas_local_code	class_refupstream_repoimage_processor_tupleimage_processor_class_pyimage_processor_class_fasts                             re  r  "AutoImageProcessor.from_pretrainedp  sN   ^  $4d;%MM E zz'". l  -7OHd+::j$/"JJ':DA#| &/'-zz2L'M$%&CDD'2$';$	(1JJ-H`djNK(  +/EtL#' ;??:r#BB'2:'>?S'T$  ',D,L&1oo6NPT&U#&2'>'F'FGY[k'l$%R)HH-8-DE[-\*+E+M+MN`br+s(  ',D,Lf&677#331&7  $+63I4#P vz**/Cv/V+1??;O+P( $+/88@$8<V$V[s[u[u#H''78L7M Nf f
  ''P
  4 = =f E E$.$ 8 : :(KL`adbdLe(f%(0$01  2G  H  ##y !(E(L(L(N$+/?? )O ,@+D($H''= )LL`(a%,@,M,Mf,U)(KLe(f%(05I5R5RSY5Z5Z$01  2N  O  3$>.d:ed6lNe>e'3JG_af<g<g,Dd+K(4Q7C4Q7	4Q7	y  ) 5a 8 $ 9!.Racp! 0 8 ; G78PQR8ST$A)Mj$unt$u!

?D1A!99;(22;I&II".(22;I&II&\44$;DL$I!CX@$&@ : F78RS)x;S;[1AAB_sbhslrss+73CCDaudjuntuu$t  ./L.M N11E0Fd;- X((3}Btyy@jLi@j7j6km
 	
_  	(
(!5!N!N1"LW"[a"Q  (''(
 '{33'' 4	(s*   T& &
U>1UU9UU99U>Nc                    Ub+  Ub  [        S5      e[        R                  " S[        5        UnUc  Uc  [        S5      eUb   [	        U[
        5      (       a  [        S5      eUb   [	        U[
        5      (       d  [        S5      eUbD  UbA  [	        U[
        5      (       a,  UR                  U:w  a  [        SUR                   SU S	35      eU [        R                  ;   a  [        U    u  pVUc  UnUc  Un[        R                  XU4US
9  g)z
Register a new image processor for this class.

Args:
    config_class ([`PretrainedConfig`]):
        The configuration corresponding to the model to register.
    image_processor_class ([`ImageProcessingMixin`]): The image processor to register.
NzHCannot specify both image_processor_class and slow_image_processor_classzThe image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` insteadzSYou need to specify either slow_image_processor_class or fast_image_processor_classzIYou passed a fast image processor in as the `slow_image_processor_class`.zNThe `fast_image_processor_class` should inherit from `BaseImageProcessorFast`.zThe fast processor class you are passing has a `slow_image_processor_class` attribute that is not consistent with the slow processor class you passed (fast tokenizer has z and you passed z!. Fix one of those so they match!)exist_ok)
r{  rx  ry  rz  
issubclassr   slow_image_processor_classr\  r]  register)config_classr  r  fast_image_processor_classr  existing_slowexisting_fasts          re  r  AutoImageProcessor.registert  sK     !,)5 !kllMM r *?&%-2L2Trss%1jA[]s6t6thii%1*&(>;
 ;
 mnn '2*657MNN*EEIcc[-HHIIYZtYu v!!  2AAA+B<+P(M)1-:*)1-:*((7QR]e 	) 	
r  r  )NNNF)rU  
__module____qualname____firstlineno____doc__r  classmethodr   r   r  staticmethodr  __static_attributes__r  r  re  r  r  a  sT    
 &'DE@
 F @
D  ##'#'8
 8
r  r  r\  )NFNNNNF);r  rX  r  osrx  collectionsr   typingr   r   r   configuration_utilsr   dynamic_module_utilsr	   r
   image_processing_utilsr   image_processing_utils_fastr   utilsr   r   r   r   r   r   r   r   utils.import_utilsr   auto_factoryr   configuration_autor   r   r   r   
get_loggerrU  r|  r  r   strr  __annotations__rW  
model_type
slow_classr  r\  rf  PathLikebooldictr  r  r  __all__r  r  re  <module>r     s       	  # 1 1 4 \ : A	 	 	 + *  
		H	% 66   \g[h!;sE(3-RU:V4W/W#Xh$/K	
M%!` -J,O,O,Q(J(Z  
#%%
1;Z0H!*- -R ++?A^_ C < 48 &*(,(,""d!#(bkk)9#:d!c2;;./0d! d! d^	d!
 d38n%d! E$)$%d! smd! d!N 
;K
 K
  K
\
 %&:
;r  