§
    ‚Štjú  ã                   ó’   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  ed¬¦  «        e G d	„ d
ee¦  «        ¦   «         ¦   «         Z	d
gZ
dS )zVitDet model configurationé    )Ústricté   )ÚBackboneConfigMixin)ÚPreTrainedConfig)Úauto_docstringzgoogle/vitdet-base-patch16-224)Ú
checkpointc                   ó:  ‡ — e Zd ZU dZdZdZeed<   dZeed<   dZ	eed<   dZ
eed	<   d
Zeed<   dZeez  ed<   dZeed<   dZeed<   dZeee         z  eeef         z  ed<   dZeee         z  eeef         z  ed<   dZeee         z  eeef         z  ed<   dZeed<   dZeed<   dZeez  ed<   dZee         eedf         z  ed<   dZee         eedf         z  ed<   dZeed <   d!Zeed"<   d#Zeed$<   d%Zee         d%z  ed&<   d%Z ee         d%z  ed'<   ˆ fd(„Z!ˆ xZ"S ))ÚVitDetConfigaM  
    pretrain_image_size (`int`, *optional*, defaults to 224):
        The size (resolution) of each image during pretraining.
    window_block_indices (`list[int]`, *optional*, defaults to `[]`):
        List of indices of blocks that should have window attention instead of regular global self-attention.
    residual_block_indices (`list[int]`, *optional*, defaults to `[]`):
        List of indices of blocks that should have an extra residual block after the MLP.
    use_relative_position_embeddings (`bool`, *optional*, defaults to `False`):
        Whether to add relative position embeddings to the attention maps.
    window_size (`int`, *optional*, defaults to 0):
        The size of the attention window.

    Example:

    ```python
    >>> from transformers import VitDetConfig, VitDetModel

    >>> # Initializing a VitDet configuration
    >>> configuration = VitDetConfig()

    >>> # Initializing a model (with random weights) from the configuration
    >>> model = VitDetModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```Úvitdeti   Úhidden_sizeé   Únum_hidden_layersÚnum_attention_headsé   Ú	mlp_ratioÚgeluÚ
hidden_actg        Údropout_probg{®Gáz”?Úinitializer_rangeg�íµ ÷Æ°>Úlayer_norm_epséà   Ú
image_sizeÚpretrain_image_sizeé   Ú
patch_sizer   Únum_channelsTÚqkv_biasÚdrop_path_rate© .Úwindow_block_indicesÚresidual_block_indicesÚ use_absolute_position_embeddingsFÚ use_relative_position_embeddingsr   Úwindow_sizeNÚ_out_featuresÚ_out_indicesc                 ó  •— dgd„ t          d| j        dz   ¦  «        D ¦   «         z   | _        |                      |                     dd ¦  «        |                     dd ¦  «        ¬¦  «          t          ¦   «         j        di |¤Ž d S )NÚstemc                 ó   — g | ]}d |› �‘ŒS )Ústager   )Ú.0Úidxs     úm/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/vitdet/configuration_vitdet.pyú
<listcomp>z.VitDetConfig.__post_init__.<locals>.<listcomp>N   s   € Ð&eÐ&eÐ&e¸ }¨s } }Ð&eÐ&eÐ&eó    é   Úout_indicesÚout_features)r1   r2   r   )Úranger   Ústage_namesÚ"set_output_features_output_indicesÚpopÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €r-   r8   zVitDetConfig.__post_init__M   s™   ø€ Ø"˜8Ð&eÐ&eÅÀaÈÔI_ÐbcÑIcÑ@dÔ@dÐ&eÑ&eÔ&eÑeˆÔØ×/Ò/ØŸ
š
 =°$Ñ7Ô7ÀfÇjÂjÐQ_ÐaeÑFfÔFfð 	0ñ 	
ô 	
ð 	
ð 	�‰ŒÔÐ'Ð' Ð'Ð'Ð'Ð'Ð'r/   )#Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer   ÚintÚ__annotations__r   r   r   r   Ústrr   Úfloatr   r   r   ÚlistÚtupler   r   r   r   Úboolr   r    r!   r"   r#   r$   r%   r&   r8   Ú__classcell__)r;   s   @r-   r
   r
      s  ø€ € € € € € ðð ð6 €Jà€K�ÐÐÑØÐ�sÐÐÑØ!Ð˜Ð!Ð!Ñ!Ø€IˆsÐÐÑØ€J�ÐÐÑØ #€L�%˜#‘+Ð#Ð#Ñ#Ø#Ð�uÐ#Ð#Ñ#Ø €N�EÐ Ð Ñ Ø47€J��d˜3”i‘ %¨¨S¨¤/Ñ1Ð7Ð7Ñ7Ø=@Ð˜˜t Cœy™¨5°°c°¬?Ñ:Ð@Ð@Ñ@Ø46€J��d˜3”i‘ %¨¨S¨¤/Ñ1Ð6Ð6Ñ6Ø€L�#ÐÐÑØ€HˆdÐÐÑØ"%€N�E˜C‘KÐ%Ð%Ñ%Ø8:Ð˜$˜sœ) e¨C°¨H¤oÑ5Ð:Ð:Ñ:Ø:<Ð˜D œI¨¨c°3¨h¬Ñ7Ð<Ð<Ñ<Ø-1Ð$ dÐ1Ð1Ñ1Ø-2Ð$ dÐ2Ð2Ñ2Ø€K�ÐÐÑØ&*€M�4˜”9˜tÑ#Ð*Ð*Ñ*Ø%)€L�$�s”)˜dÑ"Ð)Ð)Ñ)ð(ð (ð (ð (ð (ð (ð (ð (ð (r/   r
   N)r?   Úhuggingface_hub.dataclassesr   Úbackbone_utilsr   Úconfiguration_utilsr   Úutilsr   r
   Ú__all__r   r/   r-   ú<module>rN      s·   ðð !Ð  à .Ð .Ð .Ð .Ð .Ð .à 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø #Ð #Ð #Ð #Ð #Ð #ð €Ð;Ð<Ñ<Ô<Øð9(ð 9(ð 9(ð 9(ð 9(Ð&Ð(8ñ 9(ô 9(ñ „ñ =Ô<ð9(ðx Ð
€€€r/   