ó
    qyüi›   ã                   ó’   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SS	KJr  S
S0r\
" S
S9\ " S S\5      5       5       rSS/rg)zZoeDepth model configurationé    )ÚLiteral)Ústricté   )Ú%consolidate_backbone_kwargs_to_config)ÚPreTrainedConfig)Úauto_docstringé   )Ú
AutoConfigzIntel/zoedepth-nyuzBhttps://huggingface.co/Intel/zoedepth-nyu/resolve/main/config.json)Ú
checkpointc                   óD  ^ • \ rS rSr% SrSrS\0rSr\	\
-  S-  \S'   Sr\\S'   Sr\\S	'   S
r\\S'   Sr\S   \S'   Sr\\\-     \\\-  S4   -  \S'   Sr\\   \\S4   -  \S'   Sr\\S'   Sr\\S'   Sr\\S'   Sr\S-  \S'   Sr\\S'   Sr\\S'   Sr\\S'   Sr \\   \\S4   -  \S '   S!r!\\S"'   S#r"\\S$'   S%r#\\S&'   S'r$\S(   \S)'   S*r%\\S+'   S,r&\\S-'   S.r'\\S/'   Sr(\\	   S-  \S0'   Sr)\S-  \S1'   Sr*\S-  \S2'   Sr+\S-  \S3'   Sr,\S-  \S4'   U 4S5 jr-S6r.U =r/$ )7ÚZoeDepthConfigé   aD  
readout_type (`str`, *optional*, defaults to `"project"`):
    The readout type to use when processing the readout token (CLS token) of the intermediate hidden states of
    the ViT backbone. Can be one of [`"ignore"`, `"add"`, `"project"`].
    - "ignore" simply ignores the CLS token.
    - "add" passes the information from the CLS token to all other tokens by adding the representations.
    - "project" passes information to the other tokens by concatenating the readout to all other tokens before
      projecting the
    representation to the original feature dimension D using a linear layer followed by a GELU non-linearity.
reassemble_factors (`list[int]`, *optional*, defaults to `[4, 2, 1, 0.5]`):
    The up/downsampling factors of the reassemble layers.
neck_hidden_sizes (`list[str]`, *optional*, defaults to `[96, 192, 384, 768]`):
    The hidden sizes to project to for the feature maps of the backbone.
fusion_hidden_size (`int`, *optional*, defaults to 256):
    The number of channels before fusion.
head_in_index (`int`, *optional*, defaults to -1):
    The index of the features to use in the heads.
use_batch_norm_in_fusion_residual (`bool`, *optional*, defaults to `False`):
    Whether to use batch normalization in the pre-activate residual units of the fusion blocks.
use_bias_in_fusion_residual (`bool`, *optional*, defaults to `True`):
    Whether to use bias in the pre-activate residual units of the fusion blocks.
num_relative_features (`int`, *optional*, defaults to 32):
    The number of features to use in the relative depth estimation head.
add_projection (`bool`, *optional*, defaults to `False`):
    Whether to add a projection layer before the depth estimation head.
bottleneck_features (`int`, *optional*, defaults to 256):
    The number of features in the bottleneck layer.
num_attractors (`list[int], *optional*, defaults to `[16, 8, 4, 1]`):
    The number of attractors to use in each stage.
bin_embedding_dim (`int`, *optional*, defaults to 128):
    The dimension of the bin embeddings.
attractor_alpha (`int`, *optional*, defaults to 1000):
    The alpha value to use in the attractor.
attractor_gamma (`int`, *optional*, defaults to 2):
    The gamma value to use in the attractor.
attractor_kind (`str`, *optional*, defaults to `"mean"`):
    The kind of attractor to use. Can be one of [`"mean"`, `"sum"`].
min_temp (`float`, *optional*, defaults to 0.0212):
    The minimum temperature value to consider.
max_temp (`float`, *optional*, defaults to 50.0):
    The maximum temperature value to consider.
bin_centers_type (`str`, *optional*, defaults to `"softplus"`):
    Activation type used for bin centers. Can be "normed" or "softplus". For "normed" bin centers, linear normalization trick
    is applied. This results in bounded bin centers. For "softplus", softplus activation is used and thus are unbounded.
bin_configurations (`list[dict]`, *optional*, defaults to `[{'n_bins': 64, 'min_depth': 0.001, 'max_depth': 10.0}]`):
    Configuration for each of the bin heads.
    Each configuration should consist of the following keys:
    - name (`str`): The name of the bin head - only required in case of multiple bin configurations.
    - `n_bins` (`int`): The number of bins to use.
    - `min_depth` (`float`): The minimum depth value to consider.
    - `max_depth` (`float`): The maximum depth value to consider.
    In case only a single configuration is passed, the model will use a single head with the specified configuration.
    In case multiple configurations are passed, the model will use multiple heads with the specified configurations.
num_patch_transformer_layers (`int`, *optional*):
    The number of transformer layers to use in the patch transformer. Only used in case of multiple bin configurations.
patch_transformer_hidden_size (`int`, *optional*):
    The hidden size to use in the patch transformer. Only used in case of multiple bin configurations.
patch_transformer_intermediate_size (`int`, *optional*):
    The intermediate size to use in the patch transformer. Only used in case of multiple bin configurations.
patch_transformer_num_attention_heads (`int`, *optional*):
    The number of attention heads to use in the patch transformer. Only used in case of multiple bin configurations.

Example:

```python
>>> from transformers import ZoeDepthConfig, ZoeDepthForDepthEstimation

>>> # Initializing a ZoeDepth zoedepth-large style configuration
>>> configuration = ZoeDepthConfig()

>>> # Initializing a model from the zoedepth-large style configuration
>>> model = ZoeDepthForDepthEstimation(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```ÚzoedepthÚbackbone_configNÚgeluÚ
hidden_actg{®Gáz”?Úinitializer_rangegñhãˆµøä>Úbatch_norm_epsÚproject)ÚignoreÚaddr   Úreadout_type)é   r	   é   g      à?.Úreassemble_factors)é`   éÀ   é€  i   Úneck_hidden_sizesé   Úfusion_hidden_sizeéÿÿÿÿÚhead_in_indexFÚ!use_batch_norm_in_fusion_residualÚuse_bias_in_fusion_residualé    Únum_relative_featuresÚadd_projectionÚbottleneck_features)é   é   r   r   Únum_attractorsé€   Úbin_embedding_dimiè  Úattractor_alphar	   Úattractor_gammaÚmean)r1   ÚsumÚattractor_kindg¡g³êsµ•?Úmin_tempg      I@Úmax_tempÚsoftplusÚbin_centers_typeÚbin_configurationsÚnum_patch_transformer_layersÚpatch_transformer_hidden_sizeÚ#patch_transformer_intermediate_sizeÚ%patch_transformer_num_attention_headsc                 ó¼   >• [        SU R                  SSSSSSSS/ S	QS
.S.UD6u  U l        nU R                  =(       d    SSSS./U l        [        TU ]  " S0 UD6  g )NÚbeitr   é   i   i   r*   TF)Ústage6Ústage12Ústage18Ústage24)Ú
image_sizeÚnum_hidden_layersÚhidden_sizeÚintermediate_sizeÚnum_attention_headsÚuse_relative_position_biasÚreshape_hidden_statesÚout_features)r   Údefault_config_typeÚdefault_config_kwargsé@   gü©ñÒMbP?g      $@)Ún_binsÚ	min_depthÚ	max_depth© )r   r   r8   ÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €Úp/home/mande/repo/quber/.venv/lib/python3.13/site-packages/transformers/models/zoedepth/configuration_zoedepth.pyrT   ÚZoeDepthConfig.__post_init__Ž   s~   ø€ Ü'Lð (
Ø ×0Ñ0Ø &à!Ø%'Ø#Ø%)Ø')Ø.2Ø).Ú Kñ	#ñ(
ð ñ(
Ñ$ˆÔ˜fð #'×"9Ñ"9×"tÈÐZ_ÐnrÑ>sÐ=tˆÔä‰ÒÑ' Ó'ó    )r   r8   )0Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typer
   Úsub_configsr   Údictr   Ú__annotations__r   Ústrr   Úfloatr   r   r   r   ÚlistÚintÚtupler   r!   r#   r$   Úboolr%   r'   r(   r)   r,   r.   r/   r0   r3   r4   r5   r7   r8   r9   r:   r;   r<   rT   Ú__static_attributes__Ú__classcell__)rW   s   @rX   r   r      s³  ø‡ ñKðZ €JØ$ jÐ1€Kà6:€O�TÐ,Ñ,¨tÑ3Ó:Ø€J�ÓØ#Ð�uÓ#Ø!€N�EÓ!Ø8A€L�'Ð4Ñ5ÓAØFTÐ˜˜S 5™[Ñ)¨E°#¸±+¸sÐ2BÑ,CÑCÓTØ5HÐ�t˜C‘y 5¨¨c¨¡?Ñ2ÓHØ!Ð˜Ó!Ø€M�3ÓØ.3Ð% tÓ3Ø/3Ð ¨¡Ó3Ø!#Ð˜3Ó#Ø €N�DÓ Ø"Ð˜Ó"Ø2?€N�D˜‘I  c¨3 h¡Ñ/Ó?Ø Ð�sÓ Ø€O�SÓØ€O�SÓØ-3€N�G˜MÑ*Ó3Ø€HˆeÓØ€HˆeÓØ&Ð�cÓ&Ø,0Ð˜˜T™
 TÑ)Ó0Ø/3Ð  #¨¡*Ó3Ø04Ð! 3¨¡:Ó4Ø6:Ð'¨¨t©Ó:Ø8<Ð)¨3°©:Ó<÷(ó (rZ   r   Ú&ZOEDEPTH_PRETRAINED_CONFIG_ARCHIVE_MAPN)r_   Útypingr   Úhuggingface_hub.dataclassesr   Úbackbone_utilsr   Úconfiguration_utilsr   Úutilsr   Úauto.configuration_autor
   rl   r   Ú__all__rR   rZ   rX   Ú<module>rt      sg   ðñ #å å .å CÝ 3Ý #Ý 0ð Ð^ð*Ð &ñ
 Ð/Ñ0Øô(Ð%ó (ó ó 1ð(ðD 4Ð5EÐ
F�rZ   