
    Z j                     |    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
9\ " S S\5      5       5       rS/rg)zDETR model configuration    )strict   )%consolidate_backbone_kwargs_to_config)PreTrainedConfig)auto_docstring   )
AutoConfigzfacebook/detr-resnet-50)
checkpointc                     ^  \ rS rSr% SrSrS\0rS/rSSSS	.r	S
r
\\-  S
-  \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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-r(\\S.'   S/r)\\S0'   S+r*\\S1'   S+r+\\S2'   S-r,\\S3'   S/r-\\S4'   Sr.\\S5'   U 4S6 jr/S7r0U =r1$ )8
DetrConfig   a  
num_queries (`int`, *optional*, defaults to 100):
    Number of object queries, i.e. detection slots. This is the maximal number of objects
    [`ConditionalDetrModel`] can detect in a single image. For COCO, we recommend 100 queries.
position_embedding_type (`str`, *optional*, defaults to `"sine"`):
    Type of position embeddings to be used on top of the image features. One of `"sine"` or `"learned"`.
dilation (`bool`, *optional*, defaults to `False`):
    Whether to replace stride with dilation in the last convolutional block (DC5). Only supported when
    `use_timm_backbone` = `True`.

Examples:

```python
>>> from transformers import DetrConfig, DetrModel

>>> # Initializing a DETR facebook/detr-resnet-50 style configuration
>>> configuration = DetrConfig()

>>> # Initializing a model (with random weights) from the facebook/detr-resnet-50 style configuration
>>> model = DetrModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```detrbackbone_configpast_key_valuesd_modelencoder_attention_headsencoder_layers)hidden_sizenum_attention_headsnum_hidden_layersNr   num_channelsd   num_queries   i   encoder_ffn_dim   decoder_layersdecoder_ffn_dimdecoder_attention_headsg        encoder_layerdropdecoder_layerdropTis_encoder_decoderreluactivation_function   g?dropoutattention_dropoutactivation_dropoutg{Gz?init_stdg      ?init_xavier_stdFauxiliary_losssineposition_embedding_typedilation   
class_cost   	bbox_costr   	giou_costmask_loss_coefficientdice_loss_coefficientbbox_loss_coefficientgiou_loss_coefficienteos_coefficientc           	      H  > UR                  S0 5      nUR                  SU R                  5      SSUR                  S/ SQ5      S.nU R                  (       a  UR                  SS	5      US'   [        SU R                  S
SSS/0US.UD6u  U l        n[
        TU ]  " S0 UD6  g )Nbackbone_kwargsr   TFout_indices)r/   r   r      )r   features_onlyuse_pretrained_backboner;   output_stride   resnet50resnetout_featuresstage4)r   default_backbonedefault_config_typedefault_config_kwargstimm_default_kwargs )getr   r.   r   r   super__post_init__)selfkwargsr:   rH   	__class__s       |/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/transformers/models/detr/configuration_detr.pyrL   DetrConfig.__post_init__\   s     **%6;+//@Q@QR!',*..}lK	
 ==3B3F3FXZ3[0'L (
 00' (#1H:"> 3(
 (
$f 	''    )r   )2__name__
__module____qualname____firstlineno____doc__
model_typer	   sub_configskeys_to_ignore_at_inferenceattribute_mapr   dictr   __annotations__r   intr   r   r   r   r   r   r   r    floatr!   r"   boolr$   strr   r&   r'   r(   r)   r*   r+   r-   r.   r0   r2   r3   r4   r5   r6   r7   r8   rL   __static_attributes____classcell__)rO   s   @rP   r   r      s   2 J$j1K#4"5 8-M 7;OT,,t3:L#KNCOS#$S$NCOS#$S$%(us{(%(us{(##%%GSGUS[%(us{(&))He OU  ND #)S)HdJIsIs!"3"!"3"!"3"!"3" OU ( (rR   r   N)rW   huggingface_hub.dataclassesr   backbone_utilsr   configuration_utilsr   utilsr   autor	   r   __all__rI   rR   rP   <module>rj      sP     . C 3 #  45U(! U(  6U(p .rR   