ó
    ˆŽ¡j„  ã                   ór   • S r SSKJr  SSKJr  SSKJr  SSKJr  \" SS9\ " S	 S
\\5      5       5       r	S
/r
g)z&Swinv2 Transformer model configurationé    )Ústricté   )ÚBackboneConfigMixin)ÚPreTrainedConfig)Úauto_docstringz(microsoft/swinv2-tiny-patch4-window8-256)Ú
checkpointc                   óø  ^ • \ rS rSr% SrSrSSS.rSr\\	\   -  \
\\4   -  \S'   S	r\\	\   -  \
\\4   -  \S
'   Sr\\S'   Sr\\S'   Sr\	\   \
\S4   -  \S'   Sr\	\   \
\S4   -  \S'   Sr\\S'   Sr\	\   \
\S4   -  \S'   Sr\\S'   Sr\\S'   Sr\\-  \S'   Sr\\-  \S'   Sr\\-  \S'   S r\\S!'   S"r\\S#'   S$r\\S%'   S&r\\S''   S(r\\S)'   S*r \	\   S*-  \S+'   S*r!\	\   S*-  \S,'   U 4S- jr"S.r#U =r$$ )/ÚSwinv2Configé   a  
window_size (`int`, *optional*, defaults to 7):
    Size of windows.
pretrained_window_sizes (`list(int)`, *optional*, defaults to `[0, 0, 0, 0]`):
    Size of windows during pretraining.
encoder_stride (`int`, *optional*, defaults to 32):
    Factor to increase the spatial resolution by in the decoder head for masked image modeling.

Example:

```python
>>> from transformers import Swinv2Config, Swinv2Model

>>> # Initializing a Swinv2 microsoft/swinv2-tiny-patch4-window8-256 style configuration
>>> configuration = Swinv2Config()

>>> # Initializing a model (with random weights) from the microsoft/swinv2-tiny-patch4-window8-256 style configuration
>>> model = Swinv2Model(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úswinv2Ú	num_headsÚ
num_layers)Únum_attention_headsÚnum_hidden_layerséà   Ú
image_sizeé   Ú
patch_sizer   Únum_channelsé`   Ú	embed_dim)é   r   é   r   .Údepths)r   r   é   é   é   Úwindow_size)r   r   r   r   Úpretrained_window_sizesg      @Ú	mlp_ratioTÚqkv_biasg        Úhidden_dropout_probÚattention_probs_dropout_probgš™™™™™¹?Údrop_path_rateÚgeluÚ
hidden_actFÚuse_absolute_embeddingsg{®Gáz”?Úinitializer_rangegñhãˆµøä>Úlayer_norm_epsé    Úencoder_strideNÚ_out_featuresÚ_out_indicesc                 ó®  >• [        U R                  5      U l        S/[        S[        U R                  5      S-   5       Vs/ s H  nSU 3PM
     sn-   U l        U R                  UR                  SS 5      UR                  SS 5      S9  [        U R                  S[        U R                  5      S-
  -  -  5      U l	        [        TU ],  " S0 UD6  g s  snf )	NÚstemé   ÚstageÚout_indicesÚout_features)r2   r3   r   © )Úlenr   r   ÚrangeÚstage_namesÚ"set_output_features_output_indicesÚpopÚintr   Úhidden_sizeÚsuperÚ__post_init__)ÚselfÚkwargsÚidxÚ	__class__s      €Ú½C:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\transformers/models/swinv2/configuration_swinv2.pyr=   ÚSwinv2Config.__post_init__M   sÀ   ø€ Ü˜dŸk™kÓ*ˆŒØ"˜8ÄÀaÌÈTÏ[É[ÓIYÐ\]ÑI]Ô@^Ó&_Ò@^¸¨¨s¨e£}Ñ@^Ñ&_Ñ_ˆÔØ×/Ñ/ØŸ
™
 =°$Ó7ÀfÇjÁjÐQ_ÐaeÓFfð 	0ñ 	
ô
 ˜tŸ~™~°´c¸$¿+¹+Ó6FÈÑ6JÑ0KÑKÓLˆÔÜ‰ÒÑ' Ó'ùò '`s   ÁC)r;   r   r7   )%Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typeÚattribute_mapr   r:   ÚlistÚtupleÚ__annotations__r   r   r   r   r   r   r   r    Úfloatr!   Úboolr"   r#   r$   r&   Ústrr'   r(   r)   r+   r,   r-   r=   Ú__static_attributes__Ú__classcell__)rA   s   @rB   r
   r
      sr  ø‡ ñð. €Jð  +Ø)ñ€Mð
 58€J��d˜3‘i‘ %¨¨S¨¡/Ñ1Ó7Ø45€J��d˜3‘i‘ %¨¨S¨¡/Ñ1Ó5Ø€L�#ÓØ€IˆsÓØ*6€FˆD�‰I˜˜c 3˜h™Ñ'Ó6Ø-;€Iˆt�C‰y˜5  c ™?Ñ*Ó;Ø€K�ÓØ;GÐ˜T #™Y¨¨s°C¨x©Ñ8ÓGØ€IˆuÓØ€HˆdÓØ'*Ð˜ ™Ó*Ø03Ð  %¨#¡+Ó3Ø"%€N�E˜C‘KÓ%Ø€J�ÓØ$)Ð˜TÓ)Ø#Ð�uÓ#Ø €N�EÓ Ø€N�CÓØ&*€M�4˜‘9˜tÑ#Ó*Ø%)€L�$�s‘)˜dÑ"Ó)÷	(ó 	(ó    r
   N)rH   Úhuggingface_hub.dataclassesr   Úbackbone_utilsr   Úconfiguration_utilsr   Úutilsr   r
   Ú__all__r4   rS   rB   Ú<module>rY      sO   ðñ -å .å 1Ý 3Ý #ñ ÐEÑFØô=(Ð&Ð(8ó =(ó ó Gð=(ð@ Ð
�rS   