
    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ConvNeXTV2 model configuration    )strict   )BackboneConfigMixin)PreTrainedConfig)auto_docstringzfacebook/convnextv2-tiny-1k-224)
checkpointc                   ^    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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 )ConvNextV2Configa+  
    num_stages (`int`, *optional*, defaults to 4):
        The number of stages in the model.

    Example:
    ```python
    >>> from transformers import ConvNeXTV2Config, ConvNextV2Model

    >>> # Initializing a ConvNeXTV2 convnextv2-tiny-1k-224 style configuration
    >>> configuration = ConvNeXTV2Config()

    >>> # Initializing a model (with random weights) from the convnextv2-tiny-1k-224 style configuration
    >>> model = ConvNextV2Model(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```
convnextv2r   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        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/convnextv2/configuration_convnextv2.pyr+   zConvNextV2Config.__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+   __classcell__)r/   s   @r0   r
   r
      s    $ JL#45Jd3i%S/15J7JL$s)eCHo-4J1=FDIc3h'$.=J#u#!NE!"%NECK%47Jd3i%S/17&*M49t#*%)L$s)d")( (    r
   N)r4   huggingface_hub.dataclassesr   backbone_utilsr   configuration_utilsr   utilsr   r
   __all__r$   r=   r0   <module>rC      sN    % . 1 3 # <='(*,< '(  >'(T 
r=   