
    i	                     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ConvNeXT model configuration    )strict   )BackboneConfigMixin)PreTrainedConfig)auto_docstringzfacebook/convnext-tiny-224)
checkpointc                   l    e Zd ZU dZdZdZeed<   dZee	e   z  e
eef   z  ed<   dZeed<   dZe	e   e
ed	f   z  d
z  ed<   dZe	e   e
ed	f   z  d
z  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	e   z  e
eef   z  ed<   d
Ze	e   d
z  ed<   d
Ze	e   d
z  ed<    fdZ xZS )ConvNextConfiga  
    num_stages (`int`, *optional*, defaults to 4):
        The number of stages in the model.

    Example:
    ```python
    >>> from transformers import ConvNextConfig, ConvNextModel

    >>> # Initializing a ConvNext convnext-tiny-224 style configuration
    >>> configuration = ConvNextConfig()

    >>> # Initializing a model (with random weights) from the convnext-tiny-224 style configuration
    >>> model = ConvNextModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```convnextr   num_channels   
patch_size
num_stages)`      i  i   .Nhidden_sizes)r   r   	   r   depthsgelu
hidden_actg{Gz?initializer_rangeg-q=layer_norm_epsgư>layer_scale_init_valueg        drop_path_rate   
image_size_out_features_out_indicesc                    dgt        dt        | j                        dz         D cg c]  }d| 	 c}z   | _        | j	                  |j                  dd       |j                  dd              t        |   di | y c c}w )Nstem   stageout_indicesout_features)r#   r$    )rangelenr   stage_names"set_output_features_output_indicespopsuper__post_init__)selfkwargsidx	__class__s      /var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/convnext/configuration_convnext.pyr,   zConvNextConfig.__post_init__<   s    "8aT[[IY\]I]@^&_se}&__//

=$7fjjQ_aeFf 	0 	
 	''	 '`s   B)__name__
__module____qualname____doc__
model_typer   int__annotations__r   listtupler   r   r   r   strr   floatr   r   r   r   r   r   r,   __classcell__)r0   s   @r1   r
   r
      s	   $ JL#45Jd3i%S/15J7JL$s)eCHo-4J1=FDIc3h'$.=J#u#!NE!$(E("%NECK%47Jd3i%S/17&*M49t#*%)L$s)d")( (    r
   N)r5   huggingface_hub.dataclassesr   backbone_utilsr   configuration_utilsr   utilsr   r
   __all__r%   r>   r1   <module>rD      sN    # . 1 3 # 78(((*: ((  9((V 
r>   