Ë
    S^(hP†  ã                   óª  — U d Z ddlZddlZddlZddlZddlmZ ddlmZm	Z	m
Z
mZmZ ddlmZ ddlmZmZ ddlmZ dd	lmZ dd
lmZmZmZmZmZmZmZmZ ddlm Z  ddl!m"Z"m#Z#m$Z$m%Z%  ejL                  e'«      Z(er e«       Z)ee*ee
e*   e
e*   f   f   e+d<   n
 eg d¢«      Z)e)jY                  «       D ]/  \  Z-Z.e.^Z/Z0 e«       sdZ/e0re0d   � e«       sdZ0ne0d   Z0e/e0fe)e-<   Œ1  e e"e)«      Z1de*fd„Z2	 	 	 	 	 	 	 ddee*ejf                  f   de
ee*ejf                  f      de4de
e4   de
e	e*e*f      de
ee4e*f      de
e*   de4fd„Z5d„ Z6 G d„ d«      Z7y)zAutoImageProcessor class.é    N)ÚOrderedDict)ÚTYPE_CHECKINGÚDictÚOptionalÚTupleÚ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é   )Ú_LazyAutoMapping)ÚCONFIG_MAPPING_NAMESÚ
AutoConfigÚmodel_type_to_module_nameÚ!replace_list_option_in_docstringsÚIMAGE_PROCESSOR_MAPPING_NAMES)p)Úalign©ÚEfficientNetImageProcessor)Úaria)ÚAriaImageProcessor)Úbeit©ÚBeitImageProcessor)Úbit©ÚBitImageProcessor)Úblip©ÚBlipImageProcessorÚBlipImageProcessorFast)zblip-2r*   )Úbridgetower)ÚBridgeTowerImageProcessor)Ú	chameleon)ÚChameleonImageProcessor)Úchinese_clip)ÚChineseCLIPImageProcessor)Úclip©ÚCLIPImageProcessorÚCLIPImageProcessorFast)Úclipseg©ÚViTImageProcessorÚViTImageProcessorFast)Úconditional_detr)ÚConditionalDetrImageProcessor)Úconvnext©ÚConvNextImageProcessorÚConvNextImageProcessorFast)Ú
convnextv2r>   )Úcvtr>   )zdata2vec-visionr$   )Údeformable_detr)ÚDeformableDetrImageProcessorÚ DeformableDetrImageProcessorFast)Údeit)ÚDeiTImageProcessorÚDeiTImageProcessorFast)Údepth_anything©ÚDPTImageProcessor)Ú	depth_pro)ÚDepthProImageProcessorÚDepthProImageProcessorFast)Údeta)ÚDetaImageProcessor)Údetr)ÚDetrImageProcessorÚDetrImageProcessorFast)Údinatr8   )Údinov2r'   )z
donut-swin)ÚDonutImageProcessor)ÚdptrJ   )Úefficientformer)ÚEfficientFormerImageProcessor)Úefficientnetr   )Úflava)ÚFlavaImageProcessor)Úfocalnetr'   )Úfuyu)ÚFuyuImageProcessor)Úgemma3©ÚGemma3ImageProcessorÚGemma3ImageProcessorFast)Úgitr4   )Úglpn)ÚGLPNImageProcessor)Úgot_ocr2)ÚGotOcr2ImageProcessorÚGotOcr2ImageProcessorFast)zgrounding-dino)ÚGroundingDinoImageProcessor)Úgroupvitr4   )Úhierar'   )Úidefics)ÚIdeficsImageProcessor)Úidefics2)ÚIdefics2ImageProcessor)Úidefics3)ÚIdefics3ImageProcessor)Úijepar8   )Úimagegpt)ÚImageGPTImageProcessor)Úinstructblipr*   )Úinstructblipvideo)ÚInstructBlipVideoImageProcessor)zkosmos-2r4   )Ú
layoutlmv2)ÚLayoutLMv2ImageProcessor)Ú
layoutlmv3©ÚLayoutLMv3ImageProcessor)Úlevit)ÚLevitImageProcessor)Úllama4)ÚLlama4ImageProcessorÚLlama4ImageProcessorFast)Úllava)ÚLlavaImageProcessorÚLlavaImageProcessorFast)Ú
llava_next)ÚLlavaNextImageProcessorÚLlavaNextImageProcessorFast)Úllava_next_video)ÚLlavaNextVideoImageProcessor)Úllava_onevision)ÚLlavaOnevisionImageProcessorÚ LlavaOnevisionImageProcessorFast)Úmask2former)ÚMask2FormerImageProcessor)Ú
maskformer)ÚMaskFormerImageProcessor)zmgp-strr8   )Úmistral3©ÚPixtralImageProcessorÚPixtralImageProcessorFast)Úmllama)ÚMllamaImageProcessor)Úmobilenet_v1)ÚMobileNetV1ImageProcessor)Úmobilenet_v2)ÚMobileNetV2ImageProcessor)Ú	mobilevit©ÚMobileViTImageProcessor)Úmobilevitv2r�   )Únatr8   )Únougat)ÚNougatImageProcessor)Ú	oneformer)ÚOneFormerImageProcessor)Úowlv2)ÚOwlv2ImageProcessor)Úowlvit)ÚOwlViTImageProcessor)Ú	paligemma©ÚSiglipImageProcessorÚSiglipImageProcessorFast)Ú	perceiver)ÚPerceiverImageProcessor)Úphi4_multimodalÚ Phi4MultimodalImageProcessorFast)Ú
pix2struct)ÚPix2StructImageProcessor)Úpixtralr“   )Ú
poolformer)ÚPoolFormerImageProcessor)Úprompt_depth_anything)Ú!PromptDepthAnythingImageProcessor)Úpvt©ÚPvtImageProcessor)Úpvt_v2r¹   )Ú
qwen2_5_vl©ÚQwen2VLImageProcessorÚQwen2VLImageProcessorFast)Úqwen2_vlr½   )Úregnetr>   )Úresnetr>   )Úrt_detr)ÚRTDetrImageProcessorÚRTDetrImageProcessorFast)Úsam)ÚSamImageProcessor)Ú	segformer©ÚSegformerImageProcessor)Úseggpt)ÚSegGptImageProcessor)Úshieldgemma2ra   )Úsigliprª   )Úsiglip2)ÚSiglip2ImageProcessorÚSiglip2ImageProcessorFast)Ú	superglue)ÚSuperGlueImageProcessor)Úswiftformerr8   )Úswinr8   )Úswin2sr)ÚSwin2SRImageProcessor)Úswinv2r8   )ztable-transformer)rR   )Útimesformer©ÚVideoMAEImageProcessor)Útimm_wrapper)ÚTimmWrapperImageProcessor)Útvlt)ÚTvltImageProcessor)Útvp)ÚTvpImageProcessor)Úudopr|   )ÚupernetrÉ   )Úvanr>   )ÚvideomaerÚ   )Úvilt)ÚViltImageProcessor)Úvipllavar4   )Úvitr8   )Ú
vit_hybrid)ÚViTHybridImageProcessor)Úvit_maer8   )Úvit_msnr8   )Úvitmatte)ÚVitMatteImageProcessor)Úxclipr4   )Úyolos)ÚYolosImageProcessor)Úzoedepth)ÚZoeDepthImageProcessorÚ
class_namec                 ó¾  — | dk(  rt         S t        j                  «       D ]<  \  }}| |v sŒt        |«      }t	        j
                  d|› �d«      }	 t        || «      c S  t        j                  j                  «       D ]"  \  }}|D ]  }t        |dd «      | k(  sŒ|c c S  Œ$ t	        j
                  d«      }t        || «      rt        || «      S y # t        $ r Y Œ»w xY w)Nr   ú.ztransformers.modelsÚ__name__Útransformers)r   r   Úitemsr   Ú	importlibÚimport_moduleÚgetattrÚAttributeErrorÚIMAGE_PROCESSOR_MAPPINGÚ_extra_contentÚhasattr)rõ   Úmodule_nameÚ
extractorsÚmoduleÚ_Ú	extractorÚmain_modules          úl/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/transformers/models/auto/image_processing_auto.pyÚ#get_image_processor_class_from_namer	  ½   sö   € ØÐ-Ò-Ü%Ð%ä#@×#FÑ#FÓ#Hò Ñˆ�ZØ˜Ò#Ü3°KÓ@ˆKä×,Ñ,¨q°°Ð->Ð@UÓVˆFðÜ˜v zÓ2Ò2ðô 1×?Ñ?×EÑEÓGò !‰ˆˆ:Ø#ò 	!ˆIÜ�y *¨dÓ3°zÓAØ Ô ñ	!ð!ô ×)Ñ)¨.Ó9€KÜˆ{˜JÔ'Ü�{ JÓ/Ð/àøô "ò Ùðús   ÁCÃ	CÃCÚpretrained_model_name_or_pathÚ	cache_dirÚforce_downloadÚresume_downloadÚproxiesÚtokenÚrevisionÚlocal_files_onlyc                 óT  — |j                  dd«      }	|	�)t        j                  dt        «       |�t	        d«      ‚|	}t        | t        |||||||ddd¬«      }
|
€t        j                  d«       i S t        |
d¬	«      5 }t        j                  |«      cddd«       S # 1 sw Y   yxY w)
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 `huggingface-cli 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_tokenNúrThe `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)
r  r  r  r  r  r  r  Ú _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)r
  r  r  r  r  r  r  r  Úkwargsr  Úresolved_config_fileÚreaders               r  Úget_image_processor_configr'  Ù   sÅ   € ðJ —Z‘ZÐ 0°$Ó7€NØÐ!Ü�‰ð AÜô	
ð ÐÜÐuÓvÐvØˆä&Ø%ÜØØ%Ø'ØØØØ)Ø).Ø.3Ø05ôÐð Ð#Ü�‰Øpô	
ð ˆ	ä	Ð"¨WÔ	5ð !¸Ü�y‰y˜Ó ÷!÷ !ò !ús   Á?BÂB'c                 ó6   — t         j                  d| › d�«       y )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    r  Ú'_warning_fast_image_processor_availabler+  @  s!   € Ü
‡N�NØ
% j \ð 2gð 	gõó    c                   óV   — e Zd ZdZd„ Ze ee«      d„ «       «       Ze		 	 	 	 dd„«       Z
y)ÚAutoImageProcessora%  
    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                 ó   — t        d«      ‚)Nz‡AutoImageProcessor is designed to be instantiated using the `AutoImageProcessor.from_pretrained(pretrained_model_name_or_path)` method.)ÚEnvironmentError)Úselfs    r  Ú__init__zAutoImageProcessor.__init__O  s   € Üðdó
ð 	
r,  c                 ó	  — |j                  dd«      }|�<t        j                  dt        «       |j	                  dd«      �t        d«      ‚||d<   |j                  dd«      }|j                  dd«      }|j                  dd«      }d	|d
<   d|v r|j                  d«      }nt        |«      rt        }nt        }	 t        j                  |fd|i|¤Ž\  }	}
|	j	                  dd«      }d}d|	j	                  di «      v r|	d   d   }|€V|€T|	j                  dd«      }|�|j                  dd«      }d|	j	                  di «      v r|	d   d   }|j                  dd«      }|€`|€^t        |t        «      st!        j"                  |fd|i|¤Ž}t%        |dd«      }t'        |d«      rd|j(                  v r|j(                  d   }d}|�Ò|€(|j+                  d«      }|st,        j/                  d«       |r!t1        «       st,        j/                  d«       d}|r`|j+                  d«      s|dz  }t2        j5                  «       D ]  \  }
}||v sŒ n |dd }d}t,        j/                  d«       t7        |«      }n#|j+                  d«      r|dd n|}t7        |«      }|du}|duxs t9        |«      t:        v }t=        ||||«      }|�t        |t>        «      s|df}|rŠ|rˆ|s|d   �tA        |d   «       |r|d   �|d   }n|d   }tC        ||fi |¤Ž}|j                  dd«      }
tD        jF                  jI                  |«      r|jK                  «         |jL                  |	fi |¤ŽS |� |jL                  |	fi |¤ŽS t9        |«      t:        v ret:        t9        |«         }|\  }}|s|�tA        |«       |r|s|€ |j"                  |g|¢­i |¤ŽS |� |j"                  |g|¢­i |¤ŽS t        d«      ‚t        d|› dt        › dt        › d t        › d!d"jO                  d#„ t2        jQ                  «       D «       «      › �
«      ‚# t        $ rH}	 t        j                  |fdt        i|¤Ž\  }	}
n# t        $ r |‚w xY wt        |	«      s|‚Y d}~�Œ°d}~ww xY w)$aQ  
        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 `huggingface-cli 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/")
        ```r  Nr  r  r  ÚconfigÚuse_fastÚtrust_remote_codeTÚ
_from_autoÚimage_processor_filenameÚimage_processor_typer.  Úauto_mapÚfeature_extractor_typeÚFeatureExtractorÚImageProcessorÚAutoFeatureExtractorÚFastaC  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`.zcUsing `use_fast=True` but `torchvision` is not available. Falling back to the slow image processor.Féüÿÿÿzz`use_fast` is set to `True` but the image processor class does not have a fast version.  Falling back to the slow version.r   r   Ú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   ó    K  — | ]  }|–— Œ y ­w)N© )Ú.0Úcs     r  ú	<genexpr>z5AutoImageProcessor.from_pretrained.<locals>.<genexpr>F  s   è ø€ Ò@qÀqÄÑ@qùs   ‚))r  r  r  r  Úgetr  r   r   r   r   Úget_image_processor_dictÚ	Exceptionr   ÚreplaceÚ
isinstancer
   r   Úfrom_pretrainedrý   r  r:  Úendswithr  Úwarning_oncer   r   rú   r	  Útyperÿ   r   Útupler+  r   ÚosÚpathÚisdirÚregister_for_auto_classÚ	from_dictÚjoinÚkeys)Úclsr
  Úinputsr$  r  r4  r5  r6  r8  Úconfig_dictr  Úinitial_exceptionr9  Úimage_processor_auto_mapÚfeature_extractor_classÚfeature_extractor_auto_mapÚimage_processor_classÚimage_processorsÚhas_remote_codeÚhas_local_codeÚ	class_refÚimage_processor_tupleÚimage_processor_class_pyÚimage_processor_class_fasts                           r  rL  z"AutoImageProcessor.from_pretrainedU  s¡  € ð^  Ÿ™Ð$4°dÓ;ˆØÐ%Ü�M‰Mð EÜôð �z‰z˜' 4Ó(Ð4Ü Ølóð ð -ˆF�7‰Oà—‘˜H dÓ+ˆà—:‘:˜j¨$Ó/ˆØ"ŸJ™JÐ':¸DÓAÐØ#ˆˆ|Ñð &¨Ñ/Ø'-§z¡zÐ2LÓ'MÑ$Ü%Ð&CÔDÜ'2Ñ$ä';Ð$ð	(ä1×JÑJØ-ñØH`ðØdjñ‰NˆK˜ð(  +Ÿ™Ð/EÀtÓLÐØ#'Ð Ø ;§?¡?°:¸rÓ#BÑBØ'2°:Ñ'>Ð?SÑ'TÐ$ð  Ð'Ð,DÐ,LØ&1§o¡oÐ6NÐPTÓ&UÐ#Ø&Ð2Ø'>×'FÑ'FÐGYÐ[kÓ'lÐ$Ø%¨¯©¸ÀRÓ)HÑHØ-8¸Ñ-DÐE[Ñ-\Ð*Ø+E×+MÑ+MÐN`ÐbrÓ+sÐ(ð  Ð'Ð,DÐ,LÜ˜fÔ&6Ô7Ü#×3Ñ3Ø1ñà&7ðð ñ�ô $+¨6Ð3IÈ4Ó#PÐ Ü�v˜zÔ*Ð/CÀvÇÁÑ/VØ+1¯?©?Ð;OÑ+PÐ(à $ÐàÐ+àÐØ/×8Ñ8¸Ó@�ÙÜ×'Ñ'ðPôñ Ô 8Ô :Ü×#Ñ#Øyôð !�ÙØ+×4Ñ4°VÔ<Ø(¨FÑ2Ð(Ü+H×+NÑ+NÓ+Pò 	Ñ'�AÐ'Ø+Ð/?Ò?Ùð	ð ,@ÀÀÐ+DÐ(Ø$�HÜ×'Ñ'ð=ôô )LÐL`Ó(aÑ%ð 2F×1NÑ1NÈvÔ1VÐ(¨¨"Ñ-Ð\pð %ô )LÐL`Ó(aÐ%à2¸$Ð>ˆØ.°dÐ:Òe¼dÀ6»lÔNeÐ>eˆÜ5ØÐ<¸nÈoó
Ðð $Ð/¼
ÐC[Ô]bÔ8cà(@À$Ð'GÐ$áÑ0ÙÐ 8¸Ñ ;Ð GÜ7Ð8PÐQRÑ8SÔTáÐ4°QÑ7ÐCØ4°QÑ7‘	à4°QÑ7�	Ü$AÀ)ÐMjÑ$uÐntÑ$uÐ!Ø—
‘
˜?¨DÓ1ˆAÜ�w‰w�}‰}Ð:Ô;Ø%×=Ñ=Ô?Ø2Ð(×2Ñ2°;ÑIÀ&ÑIÐIØ"Ð.Ø2Ð(×2Ñ2°;ÑIÀ&ÑIÐIä�&‹\Ô4Ñ4Ü$;¼DÀ»LÑ$IÐ!àCXÑ@Ð$Ð&@áÐ :Ð FÜ7Ð8RÔSá)©xÐ;SÐ;[ØAÐ1×AÑAÐB_ÐsÐbhÒsÐlrÑsÐsà+Ð7ØCÐ3×CÑCÐDaÐuÐdjÒuÐntÑuÐuä$Øtóð ô Ø.Ð/LÐ.Mð N1Ü1EÐ0FÀdÌ;È-ð X(Ü(3 }°B°t·y±yÑ@qÔLi×LnÑLnÓLpÔ@qÓ7qÐ6rðtó
ð 	
øô ò 	(ð
(Ü!5×!NÑ!NØ1ñ"ÜLWð"Ø[añ"‘�™Qøô ò (Ø'Ð'ð(úô
 ' {Ô3Ø'Ð'õ 4ûð	(ús*   Â;P: Ð:	RÑQ$Ñ#RÑ$Q0Ñ0RÒRNc                 óê  — |�)|�t        d«      ‚t        j                  dt        «       |}|€|€t        d«      ‚|�t	        |t
        «      rt        d«      ‚|�t	        |t
        «      st        d«      ‚|�=|�;t	        |t
        «      r+|j                  |k7  rt        d|j                  › d|› d	�«      ‚| t        j                  v rt        |    \  }}|€|}|€|}t        j                  | ||f|¬
«       y)a)  
        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_classzŸThe 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`.zªThe 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  r  r  r  Ú
issubclassr   Úslow_image_processor_classrÿ   r   Úregister)Úconfig_classr_  rj  Úfast_image_processor_classrh  Úexisting_slowÚexisting_fasts          r  rk  zAutoImageProcessor.registerI  sE  € ð  !Ð,Ø)Ð5Ü Ð!kÓlÐlÜ�M‰Mð rÜôð *?Ð&à%Ð-Ð2LÐ2TÜÐrÓsÐsØ%Ð1´jÐA[Ô]sÔ6tÜÐhÓiÐiØ%Ð1¼*Ø&Ô(>ô;
ô ÐmÓnÐnð 'Ð2Ø*Ð6ÜÐ5Ô7MÔNØ*×EÑEÐIcÒcäð[à-×HÑHÐIÐIYÐZtÐYuð v!ð!óð ð Ô2×AÑAÑAÜ+BÀ<Ñ+PÑ(ˆM˜=Ø)Ð1Ø-:Ð*Ø)Ð1Ø-:Ð*ä×(Ñ(ØÐ5Ð7QÐRÐ]eð 	)õ 	
r,  )NNNF)rø   Ú
__module__Ú__qualname__Ú__doc__r2  Úclassmethodr   r   rL  Ústaticmethodrk  rC  r,  r  r.  r.  G  sT   „ ñò
ð Ù&Ð'DÓEñp
ó Fó ðp
ðd ð #Ø#'Ø#'Øò8
ó ñ8
r,  r.  )NFNNNNF)8rr  rû   r"  rQ  r  Úcollectionsr   Útypingr   r   r   r   r   Úconfiguration_utilsr
   Údynamic_module_utilsr   r   Úimage_processing_utilsr   Úimage_processing_utils_fastr   Úutilsr   r   r   r   r   r   r   r   Úauto_factoryr   Úconfiguration_autor   r   r   r   Ú
get_loggerrø   r  r   ÚstrÚ__annotations__rú   Ú
model_typer`  rj  rm  rÿ   r	  ÚPathLikeÚboolr'  r+  r.  rC  r,  r  ú<module>r„     sý  ðò  ã Û Û 	Û Ý #ß >Õ >õ 4ß \Ý :Ý A÷	÷ 	ó 	õ +÷ó ð 
ˆ×	Ñ	˜HÓ	%€ñ ñ \gÓ[hÐ! ;¨s°E¸(À3¹-ÈÐRUÉÐ:VÑ4WÐ/WÑ#XÔhá$/òq	
ós%Ð!ðj %B×$GÑ$GÓ$Iò iÑ €JÐ Ø>NÐ;ÐÐ!;ÙÔ Ø%)Ð"ñ &Ð)CÀAÑ)FÐ)NÑVnÔVpØ%)Ñ"à%?ÀÑ%BÐ"à1KÐMgÐ0hÐ! *Ò-ðiñ +Ð+?ÐA^Ó_Ð ð°Có ð< 48Ø Ø&*Ø(,Ø(,Ø"Ø"ñd!Ø#(¨¨b¯k©kÐ)9Ñ#:ðd!à˜˜c 2§;¡;Ð.Ñ/Ñ0ðd!ð ðd!ð ˜d‘^ð	d!ð
 �d˜3 ˜8‘nÑ%ðd!ð �E˜$ ˜)Ñ$Ñ%ðd!ð �s‰mðd!ð ód!òN÷{
ò {
r,  