+
    QV-jXZ  ã                   óÎ  € ^ RI t ^ RIt^ RIt^ RIHtHt ^ RIt^ RIH	t	 ^RI
Ht ^RIHt ^RIHtHt ^RIHtHtHtHtHtHt ^RIHtHt ]! R	R
R7      t]P:                  ! ]4      t ! R R]4      t ! R R
]4      t ]! ] PB                  4      ] n!        ] PB                  PD                  e:   ] PB                  PD                  PG                  RRRR7      ] PB                  n"        R# R# )é    N)ÚAnyÚTypeVar)Úis_offline_mode)Úcustom_object_save)ÚBatchFeature)Úis_valid_imageÚ
load_image)ÚIMAGE_PROCESSOR_NAMEÚPROCESSOR_NAMEÚPushToHubMixinÚ	copy_funcÚloggingÚsafe_load_json_file)Úcached_fileÚhf_apiÚImageProcessorTypeÚImageProcessingMixin)Úboundc                   ó   € ] tR t^-tRtRtR# )r   aÏ  
Holds the output of the image processor specific `__call__` methods.

This class is derived from a python dictionary and can be used as a dictionary.

Args:
    data (`dict`):
        Dictionary of lists/arrays/tensors returned by the __call__ method ('pixel_values', etc.).
    tensor_type (`Union[None, str, TensorType]`, *optional*):
        You can give a tensor_type here to convert the lists of integers in PyTorch/Numpy Tensors at
        initialization.
© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ús/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/transformers/image_processing_base.pyr   r   -   s   † õr   r   c                   ó  a € ] tR t^=t o RtRtR t]RV 3R lR ll4       tRV 3R lR llt	]V 3R lR	 l4       t
]V 3R
 lR l4       tV 3R lR lt]V 3R lR l4       tV 3R lR ltV 3R lR ltR t]RR l4       tV 3R lR ltRtV tR# )r   z|
This is an image processor mixin used to provide saving/loading functionality for sequential and image feature
extractors.
Nc           
     ó   € VP                  RR4       VP                  RR4       VP                  4        F  w  r# \        WV4       K  	  R#   \         d&   p\        P                  RT RT RT  24       ThRp?ii ; i)z'Set elements of `kwargs` as attributes.Úfeature_extractor_typeNÚprocessor_classz
Can't set z with value z for )ÚpopÚitemsÚsetattrÚAttributeErrorÚloggerÚerror)ÚselfÚkwargsÚkeyÚvalueÚerrs   &,   r   Ú__init__ÚImageProcessingMixin.__init__E   sy   € ð 	�
‰
Ð+¨TÔ2à�
‰
Ð$ dÔ+à Ÿ,™,ž.‰JˆCðÜ˜ 5Ö)ó )øô "ô Ü—‘˜z¨#¨¨l¸5¸'ÀÀtÀfÐMÔNØ�	ûðús   »AÁA=Á A8Á8A=c                óÎ   <€ V ^8„  d   QhRS[ S[,          RS[S[P                  ,          RS[S[P                  ,          R,          RS[RS[RS[S[,          R,          RS[R	S[/# )
é   ÚclsÚpretrained_model_name_or_pathÚ	cache_dirNÚforce_downloadÚlocal_files_onlyÚtokenÚrevisionÚreturn)Útyper   ÚstrÚosÚPathLikeÚbool)ÚformatÚ__classdict__s   "€r   Ú__annotate__Ú!ImageProcessingMixin.__annotate__U   s‰   ø€ ÷ `=ñ `=ÙÑ$Õ%ð`=á'*©R¯[©[Õ'8ð`=ñ ™Ÿ™Õ$ tÕ+ð`=ñ ð	`=ñ
 ð`=ñ ‘T�z˜DÕ ð`=ñ ð`=ñ 
ñ`=r   c                ó‚   € W'R&   W7R&   WGR&   WgR&   Ve   WWR&   V P                   ! V3/ VB w  r‡V P                  ! V3/ VB # )aâ  
Instantiate a type of [`~image_processing_utils.ImageProcessingMixin`] from an image processor.

Args:
    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 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.
    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`, or not specified, 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.


        <Tip>

        To test a pull request you made on the Hub, you can pass `revision="refs/pr/<pr_number>"`.

        </Tip>

    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.
    subfolder (`str`, *optional*, defaults to `""`):
        In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
        specify the folder name here.
    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.

Returns:
    A image processor of type [`~image_processing_utils.ImageProcessingMixin`].

Examples:

```python
# We can't instantiate directly the base class *ImageProcessingMixin* so let's show the examples on a
# derived class: *CLIPImageProcessor*
image_processor = CLIPImageProcessor.from_pretrained(
    "openai/clip-vit-base-patch32"
)  # Download image_processing_config from huggingface.co and cache.
image_processor = CLIPImageProcessor.from_pretrained(
    "./test/saved_model/"
)  # E.g. image processor (or model) was saved using *save_pretrained('./test/saved_model/')*
image_processor = CLIPImageProcessor.from_pretrained("./test/saved_model/preprocessor_config.json")
image_processor = CLIPImageProcessor.from_pretrained(
    "openai/clip-vit-base-patch32", do_normalize=False, foo=False
)
assert image_processor.do_normalize is False
image_processor, unused_kwargs = CLIPImageProcessor.from_pretrained(
    "openai/clip-vit-base-patch32", do_normalize=False, foo=False, return_unused_kwargs=True
)
assert image_processor.do_normalize is False
assert unused_kwargs == {"foo": False}
```r4   r5   r6   r8   r7   )Úget_image_processor_dictÚ	from_dict)	r2   r3   r4   r5   r6   r7   r8   r*   Úimage_processor_dicts	   &&&&&&&, r   Úfrom_pretrainedÚ$ImageProcessingMixin.from_pretrainedT   sd   € ðn (ˆ{ÑØ#1ÐÑ Ø%5Ð!Ñ"Ø%ˆzÑàÒØ#�7‰Oà'*×'CÒ'CÐDaÑ'lÐekÑ'lÑ$Ðà�}Š}Ð1Ñ<°VÑ<Ð<r   c                óJ   <€ V ^8„  d   QhRS[ S[P                  ,          RS[/# )r1   Úsave_directoryÚpush_to_hub)r;   r<   r=   r>   )r?   r@   s   "€r   rA   rB   ·   s$   ø€ ÷ .-ñ .-©c±B·K±KÕ.?ð .-Édñ .-r   c           	     óî  € \         P                  P                  V4      '       d   \        RV R24      h\         P                  ! VRR7       V'       d‹   VP                  RR4      pVP                  RVP                  \         P                  P                  4      R,          4      p\        4       P                  ! V3RR/VB P                  pV P                  V4      pV P                  e   \        WV R	7       \         P                  P                  V\        4      pV P!                  V4       \"        P%                  R
V 24       V'       d&   V P'                  VXXXVP)                  R4      R7       V.# )a  
Save an image processor object to the directory `save_directory`, so that it can be re-loaded using the
[`~image_processing_utils.ImageProcessingMixin.from_pretrained`] class method.

Args:
    save_directory (`str` or `os.PathLike`):
        Directory where the image processor JSON file will be saved (will be created if it does not exist).
    push_to_hub (`bool`, *optional*, defaults to `False`):
        Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
        repository you want to push to with `repo_id` (will default to the name of `save_directory` in your
        namespace).
    kwargs (`dict[str, Any]`, *optional*):
        Additional key word arguments passed along to the [`~utils.PushToHubMixin.push_to_hub`] method.
zProvided path (z#) should be a directory, not a fileT)Úexist_okÚcommit_messageNÚrepo_idrM   )ÚconfigzImage processor saved in r7   )rN   r7   éÿÿÿÿ)r<   ÚpathÚisfileÚAssertionErrorÚmakedirsr#   ÚsplitÚsepr   Úcreate_reporO   Ú_get_files_timestampsÚ_auto_classr   Újoinr
   Úto_json_filer'   ÚinfoÚ_upload_modified_filesÚget)r)   rJ   rK   r*   rN   rO   Úfiles_timestampsÚoutput_image_processor_files   &&&,    r   Úsave_pretrainedÚ$ImageProcessingMixin.save_pretrained·   s8  € ô �7‰7�>‰>˜.×)Ò)Ü  ?°>Ð2BÐBeÐ!fÓgÐgä
�Š�N¨TÕ2çØ#ŸZ™ZÐ(8¸$Ó?ˆNØ—j‘j ¨N×,@Ñ,@ÄÇÁÇÁÓ,MÈbÕ,QÓRˆGÜ“h×*Ò*¨7ÑL¸TÐLÀVÑL×TÑTˆGØ#×9Ñ9¸.ÓIÐð ×ÑÒ'Ü˜t¸DÕAô ')§g¡g§l¡l°>ÔCWÓ&XÐ#à×ÑÐ5Ô6Ü�‰Ð/Ð0KÐ/LÐMÔNçØ×'Ñ'ØØØ Ø-Ø—j‘j Ó)ð (ô ð ,Ð,Ð,r   c                óŒ   <€ V ^8„  d   QhRS[ S[P                  ,          RS[S[S[ S[3,          S[S[ S[3,          3,          /# )r1   r3   r9   )r;   r<   r=   ÚtupleÚdictr   )r?   r@   s   "€r   rA   rB   è   sD   ø€ ÷ t,ñ t,Ù,/±"·+±+Õ,=ðt,á	‰t‘C™�H�~™t¡C© H�~Ð-Õ	.ñt,r   c                ó  € VP                  RR4      pVP                  RR4      pVP                  RR4      pVP                  RR4      pVP                  RR4      pVP                  RR4      pVP                  R	R
4      p	VP                  R\        4      p
VP                  RR4      pVP                  RR4      pRRRV/pVe   W½R&   \        4       '       d    V'       g   \        P	                  R4       Rp\        V4      p\        P                  P                  V4      p\        P                  P                  V4      '       d    \        P                  P                  W4      p\        P                  P                  V4      '       d   TpRpRpM3T
p \        V\        VVVVVVVV	RR7      p\        VVVVVVVVVV	RR7      pRpVe   \        V4      pRV9   d
   VR,          pVe   Vf   \        V4      pVf   \        RV RV RV
 R24      hV'       d   \        P	                  RV 24       VV3# \        P	                  RX RV 24       VV3#   \         d    h \         d    \        RT RT RT
 R24      hi ; i)aa  
From a `pretrained_model_name_or_path`, resolve to a dictionary of parameters, to be used for instantiating a
image processor of type [`~image_processor_utils.ImageProcessingMixin`] using `from_dict`.

Parameters:
    pretrained_model_name_or_path (`str` or `os.PathLike`):
        The identifier of the pre-trained checkpoint from which we want the dictionary of parameters.
    subfolder (`str`, *optional*, defaults to `""`):
        In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
        specify the folder name here.
    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.

Returns:
    `tuple[Dict, Dict]`: The dictionary(ies) that will be used to instantiate the image processor object.
r4   Nr5   FÚproxiesr7   r6   r8   Ú	subfolderÚ Úimage_processor_filenameÚ_from_pipelineÚ
_from_autoÚ	file_typeúimage processorÚfrom_auto_classÚusing_pipelinez+Offline mode: forcing local_files_only=TrueT)
Úfilenamer4   r5   rh   r6   r7   Ú
user_agentr8   ri   Ú%_raise_exceptions_for_missing_entriesz Can't load image processor for 'zœ'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'z2' is the correct path to a directory containing a z fileÚimage_processorzloading configuration file z from cache at )r#   r
   r   r'   r]   r;   r<   rR   Úisdirr[   rS   r   r   ÚOSErrorÚ	Exceptionr   )r2   r3   r*   r4   r5   rh   r7   r6   r8   ri   rk   Úfrom_pipelinerp   rs   Úis_localÚimage_processor_fileÚresolved_image_processor_fileÚresolved_processor_filerF   Úprocessor_dicts   &&,                 r   rD   Ú-ImageProcessingMixin.get_image_processor_dictç   sç  € ð( —J‘J˜{¨DÓ1ˆ	ØŸ™Ð$4°eÓ<ˆØ—*‘*˜Y¨Ó-ˆØ—
‘
˜7 DÓ)ˆØ!Ÿ:™:Ð&8¸%Ó@ÐØ—:‘:˜j¨$Ó/ˆØ—J‘J˜{¨BÓ/ˆ	Ø#)§:¡:Ð.HÔJ^Ó#_Ð àŸ
™
Ð#3°TÓ:ˆØ Ÿ*™* \°5Ó9ˆà!Ð#4Ð6GÈÐYˆ
ØÒ$Ø+8Ð'Ñ(ä×Ò×%5Ü�K‰KÐEÔFØ#Ðä(+Ð,IÓ(JÐ%Ü—7‘7—=‘=Ð!>Ó?ˆÜ�7‰7�=‰=Ð6×7Ò7Ü#%§7¡7§<¡<Ð0MÓ#hÐ Ü�7‰7�>‰>Ð7×8Ò8Ø,IÐ)Ø&*Ð#Ø‰Hà#;Ð ð&Ü*5Ø1Ü+Ø'Ø#1Ø#Ø%5ØØ)Ø%Ø'Ø:?ô+Ð'ô 1<Ø1Ø1Ø'Ø#1Ø#Ø%5ØØ)Ø%Ø'Ø:?ô1Ð-ð:  $ÐØ"Ò.Ü0Ð1HÓIˆNØ  NÔ2Ø'5Ð6GÕ'HÐ$à(Ò4Ð9MÒ9UÜ#6Ð7TÓ#UÐ àÒ'ÜØ2Ð3PÐ2Qð R5à5RÐ4Sð T+Ø+CÐ*DÀEðKóð ÷ Ü�K‰KÐ5Ð6SÐ5TÐUÔVð $ VÐ+Ð+ô	 �K‰KØ-Ð.BÐ-CÀ?ÐSpÐRqÐrôð $ VÐ+Ð+øôQ ô ð Üô äØ6Ð7TÐ6Uð V9à9VÐ8Wð X/Ø/GÐ.HÈðOóð ðús   Æ0I ÉI?É(I?c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# )r1   rF   ©rf   r;   r   )r?   r@   s   "€r   rA   rB   _  s   ø€ ÷ &#ñ &#©T±#±s°(­^ñ &#r   c           	     ó´  € VP                  4       pVP                  RR4      pTP                  VP                  4        UUu/ uF#  w  rEW@P                  P
                  9   g   K!  WEbK%  	  upp4       V ! R/ VB p. p\        \        VP                  4       4      4       F_  p\        Wh4      '       g   K  W€P                  P
                  9  g   K2  \        WhVP                  VR4      4       VP                  V4       Ka  	  V'       d'   \        P                  RV P                   RV R24       \        P                  RV 24       V'       d   Wb3# V# u uppi )a�  
Instantiates a type of [`~image_processing_utils.ImageProcessingMixin`] from a Python dictionary of parameters.

Args:
    image_processor_dict (`dict[str, Any]`):
        Dictionary that will be used to instantiate the image processor object. Such a dictionary can be
        retrieved from a pretrained checkpoint by leveraging the
        [`~image_processing_utils.ImageProcessingMixin.to_dict`] method.
    kwargs (`dict[str, Any]`):
        Additional parameters from which to initialize the image processor object.

Returns:
    [`~image_processing_utils.ImageProcessingMixin`]: The image processor object instantiated from those
    parameters.
Úreturn_unused_kwargsFNzImage processor z	: kwargs zÍ were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.r   )Úcopyr#   Úupdater$   Úvalid_kwargsÚ__annotations__ÚreversedÚlistÚkeysÚhasattrr%   Úappendr'   Úwarning_oncer   r]   )	r2   rF   r*   rƒ   ÚkÚvru   Ú
extra_keysr+   s	   &&,      r   rE   ÚImageProcessingMixin.from_dict^  s-  € ð"  4×8Ñ8Ó:ÐØ%Ÿz™zÐ*@À%ÓHÐØ×#Ñ#°f·l±l´nÔ$n±n©d¨aÈ×M]ÑM]×MmÑMmÑHm¤T Q¢T±nÒ$nÔoÙÑ5Ð 4Ñ5ˆð ˆ
ÜœD §¡£Ó/Ö0ˆCÜ�×,Ô,°×<LÑ<L×<\Ñ<\Ö1\Ü˜¨f¯j©j¸¸dÓ.CÔDØ×!Ñ! #Ö&ñ 1÷ Ü×ÑØ" 3§<¡< .°	¸*¸ð Fað bôô 	�‰Ð& Ð&7Ð8Ô9ßØ"Ð*Ð*à"Ð"ùó) %os   ÁE
Á$E
c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# ©r1   r9   r�   )r?   r@   s   "€r   rA   rB   ‡  s   ø€ ÷ 
ñ 
™™c¡3˜h�ñ 
r   c                óx   € \         P                  ! V P                  4      pV P                  P                  VR&   V# )zŸ
Serializes this instance to a Python dictionary.

Returns:
    `dict[str, Any]`: Dictionary of all the attributes that make up this image processor instance.
Úimage_processor_type)r„   ÚdeepcopyÚ__dict__Ú	__class__r   )r)   Úoutputs   & r   Úto_dictÚImageProcessingMixin.to_dict‡  s0   € ô —’˜tŸ}™}Ó-ˆØ)-¯©×)@Ñ)@ˆÐ%Ñ&àˆr   c                óD   <€ V ^8„  d   QhRS[ S[P                  ,          /# )r1   Ú	json_file©r;   r<   r=   )r?   r@   s   "€r   rA   rB   ”  s   ø€ ÷ +ñ +¡s©R¯[©[Õ'8ñ +r   c                óÀ   € \        VRR7      ;_uu_ 4       pVP                  4       pRRR4       \        P                  ! X4      pV ! R/ VB #   + '       g   i     L.; i)aˆ  
Instantiates a image processor of type [`~image_processing_utils.ImageProcessingMixin`] from the path to a JSON
file of parameters.

Args:
    json_file (`str` or `os.PathLike`):
        Path to the JSON file containing the parameters.

Returns:
    A image processor of type [`~image_processing_utils.ImageProcessingMixin`]: The image_processor object
    instantiated from that JSON file.
úutf-8©ÚencodingNr   )ÚopenÚreadÚjsonÚloads)r2   r�   ÚreaderÚtextrF   s   &&   r   Úfrom_json_fileÚ#ImageProcessingMixin.from_json_file“  sJ   € ô �) g×.Õ.°&Ø—;‘;“=ˆD÷ /ä#Ÿzšz¨$Ó/ÐÙÑ*Ð)Ñ*Ð*÷ /×.ús   –AÁA	c                ó    <€ V ^8„  d   QhRS[ /# r“   )r;   )r?   r@   s   "€r   rA   rB   ¦  s   ø€ ÷ Gñ G¡ñ Gr   c                óü   € V P                  4       pVP                  4        F9  w  r#\        V\        P                  4      '       g   K'  VP                  4       W&   K;  	  \        P                  ! V^RR7      R,           # )z£
Serializes this instance to a JSON string.

Returns:
    `str`: String containing all the attributes that make up this feature_extractor instance in JSON format.
T)ÚindentÚ	sort_keysÚ
)rš   r$   Ú
isinstanceÚnpÚndarrayÚtolistr¥   Údumps)r)   Ú
dictionaryr+   r,   s   &   r   Úto_json_stringÚ#ImageProcessingMixin.to_json_string¦  s\   € ð —\‘\“^ˆ
à$×*Ñ*Ö,‰JˆCÜ˜%¤§¡×,Ô,Ø"'§,¡,£.�
“ñ -ô �zŠz˜*¨Q¸$Ô?À$ÕFÐFr   c                óD   <€ V ^8„  d   QhRS[ S[P                  ,          /# )r1   Újson_file_pathrž   )r?   r@   s   "€r   rA   rB   µ  s   ø€ ÷ 	0ñ 	0©3±·±Õ+<ñ 	0r   c                óª   € \        VRRR7      ;_uu_ 4       pVP                  V P                  4       4       RRR4       R#   + '       g   i     R# ; i)z¹
Save this instance to a JSON file.

Args:
    json_file_path (`str` or `os.PathLike`):
        Path to the JSON file in which this image_processor instance's parameters will be saved.
Úwr    r¡   N)r£   Úwriter¶   )r)   r¹   Úwriters   && r   r\   Ú!ImageProcessingMixin.to_json_fileµ  s9   € ô �. #°×8Õ8¸FØ�L‰L˜×,Ñ,Ó.Ô/÷ 9×8×8Ò8ús   — AÁA	c                óT   € V P                   P                   R V P                  4        2# )Ú )r˜   r   r¶   )r)   s   &r   Ú__repr__ÚImageProcessingMixin.__repr__À  s(   € Ø—.‘.×)Ñ)Ð*¨!¨D×,?Ñ,?Ó,AÐ+BÐCÐCr   c                ó¦   € \        V\        4      '       g   VP                  p^ RIHu Hp \        W!4      '       g   \        V R24      hWn        R# )aK  
Register this class with a given auto class. This should only be used for custom image processors as the ones
in the library are already mapped with `AutoImageProcessor `.



Args:
    auto_class (`str` or `type`, *optional*, defaults to `"AutoImageProcessor "`):
        The auto class to register this new image processor with.
Nz is not a valid auto class.)	r°   r;   r   Útransformers.models.autoÚmodelsÚautor‹   Ú
ValueErrorrZ   )r2   Ú
auto_classÚauto_modules   && r   Úregister_for_auto_classÚ,ImageProcessingMixin.register_for_auto_classÃ  sE   € ô ˜*¤c×*Ò*Ø#×,Ñ,ˆJç6Ð6ä�{×/Ò/Ü 
˜|Ð+FÐGÓHÐHà$Žr   c                óp   <€ V ^8„  d   QhRS[ S[S[ ,          ,          S[S[S[ ,          ,          ,          /# )r1   Úimage_url_or_urls)r;   r‰   )r?   r@   s   "€r   rA   rB   Ù  s,   ø€ ÷ wñ w©c±D¹µI­oÁÁTÉ#ÅYÅÕ.Oñ wr   c                ó  € \        V\        \        34      '       d!   V Uu. uF  q P                  V4      NK  	  up# \        V\        4      '       d   \        V4      # \        V4      '       d   V# \        R\        V4       24      hu upi )zÉ
Convert a single or a list of urls into the corresponding `PIL.Image` objects.

If a single url is passed, the return value will be a single object. If a list is passed a list of objects is
returned.
z=only a single or a list of entries is supported but got type=)	r°   r‰   re   Úfetch_imagesr;   r	   r   Ú	TypeErrorr:   )r)   rÍ   Úxs   && r   rÏ   Ú!ImageProcessingMixin.fetch_imagesÙ  sƒ   € ô Ð'¬$´¨×7Ò7Ù2CÓDÑ2C¨Q×%Ñ% aÖ(Ñ2CÑDÐDÜÐ)¬3×/Ò/ÜÐ/Ó0Ð0ÜÐ-×.Ò.Ø$Ð$äÐ[Ô\`ÐarÓ\sÐ[tÐuÓvÐvùò Es   ¡Br   )NFFNÚmain)F)ÚAutoImageProcessor)r   r   r   r   r   rZ   r.   ÚclassmethodrG   rb   rD   rE   rš   r©   r¶   r\   rÁ   rÊ   rÏ   r   Ú__classdictcell__)r@   s   @r   r   r   =   sÄ   ø‡ € ñð
 €Kòð ÷`=ñ `=ó ð`=÷D.-ò .-ð` ÷t,ó ðt,ðl ÷&#ó ð&#÷P
ð 
ð ÷+ó ð+÷$Gð G÷	0ð 	0òDð ó%ó ð%÷*wö wr   ro   rÔ   zimage processor file)ÚobjectÚobject_classÚobject_files)$r„   r¥   r<   Útypingr   r   Únumpyr±   Úhuggingface_hubr   Údynamic_module_utilsr   Úfeature_extraction_utilsr   ÚBaseBatchFeatureÚimage_utilsr   r	   Úutilsr
   r   r   r   r   r   Ú	utils.hubr   r   r   Ú
get_loggerr   r'   r   rK   r   r?   r   r   r   Ú<module>rä      sÕ   ðó Û Û 	ß ã Ý +å 4Ý Fß 3÷÷ ÷ +ñ Ð1Ð9OÔPÐ ð 
×	Ò	˜HÓ	%€ô
Ð#ô ô jw˜>ô jwñZ $-Ð-A×-MÑ-MÓ#NÐ Ô  Ø×#Ñ#×+Ñ+Ò7Ø/C×/OÑ/O×/WÑ/W×/^Ñ/^Ø Ð/CÐRhð 0_ó 0Ð×$Ñ$Ö,ñ 8r   