Ë
    ÜÓ^jû  ã                   óx   — 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
y)zTextNet model configurationé    )Ústricté   )ÚBackboneConfigMixin)ÚPreTrainedConfig)Úauto_docstringzczczup/textnet-base)Ú
checkpointc                   ó4  ‡ — 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   eeef   z  ez  ed<   dZedz  ed<   dZed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z  ed<   dZee   dz  ed<   ˆ fd„Zˆ xZS )ÚTextNetConfiga—  
    stem_kernel_size (`int`, *optional*, defaults to 3):
        The kernel size for the initial convolution layer.
    stem_stride (`int`, *optional*, defaults to 2):
        The stride for the initial convolution layer.
    stem_num_channels (`int`, *optional*, defaults to 3):
        The num of channels in input for the initial convolution layer.
    stem_out_channels (`int`, *optional*, defaults to 64):
        The num of channels in out for the initial convolution layer.
    stem_act_func (`str`, *optional*, defaults to `"relu"`):
        The activation function for the initial convolution layer.
    conv_layer_kernel_sizes (`list[list[list[int]]]`, *optional*):
        A list of stage-wise kernel sizes. If `None`, defaults to:
        `[[[3, 3], [3, 3], [3, 3]], [[3, 3], [1, 3], [3, 3], [3, 1]], [[3, 3], [3, 3], [3, 1], [1, 3]], [[3, 3], [3, 1], [1, 3], [3, 3]]]`.
    conv_layer_strides (`list[list[int]]`, *optional*):
        A list of stage-wise strides. If `None`, defaults to:
        `[[1, 2, 1], [2, 1, 1, 1], [2, 1, 1, 1], [2, 1, 1, 1]]`.

    Examples:

    ```python
    >>> from transformers import TextNetConfig, TextNetBackbone

    >>> # Initializing a TextNetConfig
    >>> configuration = TextNetConfig()

    >>> # Initializing a model (with random weights)
    >>> model = TextNetBackbone(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```Útextnetr   Ústem_kernel_sizeé   Ústem_strideÚstem_num_channelsé@   Ústem_out_channelsÚreluÚstem_act_func)é€  r   Ú
image_sizeNÚconv_layer_kernel_sizesÚconv_layer_strides)r   r   é€   é   i   .Úhidden_sizesgñhãˆµøä>Úbatch_norm_epsg{®Gáz”?Úinitializer_rangeÚ_out_featuresÚ_out_indicesc                 ó   •— | j                   €8ddgddgddggddgddgddgddggddgddgddgddggddgddgddgddggg| _         | j                  €g d¢g d¢g d¢g d¢g| _        | j                   D �cg c]  }t        |«      ‘Œ c}| _        dgt	        dd«      D �cg c]  }d|› �‘Œ	 c}z   | _        | j                  |j                  dd «      |j                  d	d «      ¬
«       t        ‰| �$  di |¤Ž y c c}w c c}w )Nr   é   )r    r   r    )r   r    r    r    Ústemé   ÚstageÚout_indicesÚout_features)r$   r%   © )
r   r   ÚlenÚdepthsÚrangeÚstage_namesÚ"set_output_features_output_indicesÚpopÚsuperÚ__post_init__)ÚselfÚkwargsÚlayerÚidxÚ	__class__s       €ú|/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/textnet/configuration_textnet.pyr.   zTextNetConfig.__post_init__K   s/  ø€ Ø×'Ñ'Ð/à�Q�˜!˜Q˜ ! Q Ð(Ø�Q�˜!˜Q˜ ! Q ¨!¨Q¨Ð0Ø�Q�˜!˜Q˜ ! Q ¨!¨Q¨Ð0Ø�Q�˜!˜Q˜ ! Q ¨!¨Q¨Ð0ð	,ˆDÔ(ð ×"Ñ"Ð*Ú'0²,ÂÊlÐ&[ˆDÔ#à/3×/KÑ/KÖL e”s˜5•zÒLˆŒØ"˜8ÄÀaÈÃÖ&L¸¨¨s¨e¢}Ò&LÑLˆÔØ×/Ñ/ØŸ
™
 =°$Ó7ÀfÇjÁjÐQ_ÐaeÓFfð 	0ô 	
ô 	‰ÑÑ' Ó'ùò MùÚ&Ls   Á3C6ÂC;)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typer   ÚintÚ__annotations__r   r   r   r   Ústrr   ÚlistÚtupler   r   r   r   Úfloatr   r   r   r.   Ú__classcell__)r3   s   @r4   r
   r
      sã   ø… ñðB €JàÐ�cÓØ€K�ÓØÐ�sÓØÐ�sÓØ€M�3ÓØ4>€J��S‘	˜E # s (™OÑ+¨cÑ1Ó>Ø+/Ð˜T D™[Ó/Ø&*Ð˜˜t™Ó*Ø0G€L�$�s‘)˜e C¨ H™oÑ-ÓGØ €N�EÓ Ø#Ð�uÓ#Ø&*€M�4˜‘9˜tÑ#Ó*Ø%)€L�$�s‘)˜dÑ"Ó)÷(ð (ó    r
   N)r8   Úhuggingface_hub.dataclassesr   Úbackbone_utilsr   Úconfiguration_utilsr   Úutilsr   r
   Ú__all__r&   rA   r4   ú<module>rG      sQ   ðñ "å .å 1Ý 3Ý #ñ Ð0Ô1ØôB(Ð'Ð)9ó B(ó ó 2ðB(ðJ Ð
�rA   