+
    œ°³j’  ã                   óT   € R t ^RIHt ^RIHt ^RIHt ] ! R R]4      4       tR.tR# )z(
Image/Text processor class for CLIPSeg
)ÚProcessorMixin)ÚBatchEncoding)Úauto_docstringc                   óJ   a a€ ] tR t^t oRV 3R llt]RR l4       tRtVtV ;t	# )ÚCLIPSegProcessorc                ó&   <€ \         SV `  W4       R # )N)ÚsuperÚ__init__)ÚselfÚimage_processorÚ	tokenizerÚkwargsÚ	__class__s   &&&,€Úo/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/clipseg/processing_clipseg.pyr	   ÚCLIPSegProcessor.__init__   s   ø€ Ü‰Ñ˜Ö4ó    c                óH  € Vf   Vf   Vf   \        R4      hVe   Ve   \        R4      hV P                  ! V P                  3RV P                  P                  /VB pVe   V P                  ! V3/ VR,          B pVe   V P
                  ! V3/ VR,          B pVe   V P
                  ! V3/ VR,          B pVe!   Ve   RXP                  RXP                  /pV# Ve   Ve   XP                  XR&   V# Ve   X# Ve   RXP                  /pV# \        \        R	/ XB R7      # )
a²  
visual_prompt (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `list[PIL.Image.Image]`, `list[np.ndarray]`, `list[torch.Tensor]`):
    The visual prompt image or batch of images to be prepared. Each visual prompt image can be a PIL image,
    NumPy array or PyTorch tensor. In case of a NumPy array/PyTorch tensor, each image should be of shape
    (C, H, W), where C is a number of channels, H and W are image height and width.

Returns:
    [`BatchEncoding`]: A [`BatchEncoding`] with the following fields:

    - **input_ids** -- List of token ids to be fed to a model. Returned when `text` is not `None`.
    - **attention_mask** -- List of indices specifying which tokens should be attended to by the model (when
      `return_attention_mask=True` or if *"attention_mask"* is in `self.model_input_names` and if `text` is not
      `None`).
    - **pixel_values** -- Pixel values to be fed to a model. Returned when `images` is not `None`.
z9You have to specify either text, visual prompt or images.zMYou have to specify exactly one type of prompt. Either text or visual prompt.Útokenizer_init_kwargsÚtext_kwargsÚimages_kwargsÚpixel_valuesÚconditional_pixel_values)Údata© )	Ú
ValueErrorÚ_merge_kwargsÚvalid_processor_kwargsr   Úinit_kwargsr   r   r   Údict)	r
   ÚtextÚimagesÚvisual_promptr   Úoutput_kwargsÚencodingÚprompt_featuresÚimage_featuress	   &&&&,    r   Ú__call__ÚCLIPSegProcessor.__call__   sU  € ð" Š<˜MÒ1°f²nÜÐXÓYÐYàÒ Ò 9ÜÐlÓmÐmà×*Ò*Ø×'Ñ'ñ
Ø?C¿~¹~×?YÑ?Yð
Ø]cñ
ˆð ÒØ—~’~ dÑK¨m¸MÕ.JÑKˆHàÒ$Ø"×2Ò2°=ÑcÀMÐRaÕDbÑcˆOàÒØ!×1Ò1°&Ñ[¸MÈ/Õ<ZÑ[ˆNàÒ$¨Ò);à × ;Ñ ;Ø*¨O×,HÑ,HðˆHð ˆOØÒ &Ò"4Ø'5×'BÑ'BˆH�^Ñ$ØˆOØÒØˆOØÒ&à*¨O×,HÑ,HðˆHð ˆOä ¤dÑ&<¨^Ñ&<Ô=Ð=r   r   )NN)NNN)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r	   r   r&   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r   r      s#   ù‡ € ÷5ð ó4>ó ÷4>ð 4>r   r   N)	Ú__doc__Úprocessing_utilsr   Útokenization_utils_baser   Úutilsr   r   Ú__all__r   r   r   Ú<module>r5      s;   ðñõ /Ý 4Ý #ð ô9>�~ó 9>ó ð9>ðx Ð
‚r   