+
    œ°³j‰  ã                   ó„   € ^ RI Ht ^RIHt ^RIHt ^RIHtHt ^RI	H
t
 ]! RR7      ] ! R R	]4      4       4       tR	.tR
# )é    )Ústrict)ÚPreTrainedConfig)Úauto_docstring)ÚCONFIG_MAPPINGÚ
AutoConfig)ÚSuperPointConfigzETH-CVG/lightglue_superpoint)Ú
checkpointc                   ó„   a a€ ] tR t^t oRtRtR]/tRtRt	^	t
^tRtRtRtRtR	tR
tRtRtV 3R ltR tV3R ltRtVtV ;t# )ÚLightGlueConfigaó  
keypoint_detector_config (`Union[AutoConfig, dict]`,  *optional*, defaults to `SuperPointConfig`):
    The config object or dictionary of the keypoint detector.
descriptor_dim (`int`, *optional*, defaults to 256):
    The dimension of the descriptors.
depth_confidence (`float`, *optional*, defaults to 0.95):
    The confidence threshold used to perform early stopping
width_confidence (`float`, *optional*, defaults to 0.99):
    The confidence threshold used to prune points
filter_threshold (`float`, *optional*, defaults to 0.1):
    The confidence threshold used to filter matches

Examples:
    ```python
    >>> from transformers import LightGlueConfig, LightGlueForKeypointMatching

    >>> # Initializing a LightGlue style configuration
    >>> configuration = LightGlueConfig()

    >>> # Initializing a model from the LightGlue style configuration
    >>> model = LightGlueForKeypointMatching(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```
Ú	lightglueÚkeypoint_detector_configNé   gffffffî?g®Gáz®ï?gš™™™™™¹?g{®Gáz”?Úgelug        Tc                ó  <€ V P                   f   V P                  V n         \        V P                  \        4      '       db   V P                  P                  RR4      V P                  R&   \        V P                  R,          ,          ! R/ V P                  BRR/B V n        M'V P                  f   \        R,          ! RR7      V n        V P                  ^,          V n        V P                  V n	        \        SV `,  ! R/ VB  R # )NÚ
model_typeÚ
superpointÚattn_implementationÚeager)r   © )Únum_key_value_headsÚnum_attention_headsÚ
isinstancer   ÚdictÚgetr   Údescriptor_dimÚintermediate_sizeÚhidden_sizeÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s   &,€Úv/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/lightglue/configuration_lightglue.pyr   ÚLightGlueConfig.__post_init__K   sÝ   ø€ Ø×#Ñ#Ò+Ø'+×'?Ñ'?ˆDÔ$ô �d×3Ñ3´T×:Ò:Ø:>×:WÑ:W×:[Ñ:[Ð\hÐjvÓ:wˆD×)Ñ)¨,Ñ7Ü,:¸4×;XÑ;XÐYeÕ;fÖ,gñ -Ø×/Ñ/ñ-ØELò-ˆDÕ)ð ×*Ñ*Ò2Ü,:¸<Ö,HÐ]dÔ,eˆDÔ)à!%×!4Ñ!4°qÕ!8ˆÔØ×.Ñ.ˆÔÜ‰ÒÑ' Ô'ó    c                ó`   € V P                   V P                  ,          ^ 8w  d   \        R4      hR# )zOPart of `@strict`-powered validation. Validates the architecture of the config.z1descriptor_dim % num_heads is different from zeroN)r   r   Ú
ValueError)r    s   &r#   Úvalidate_architectureÚ%LightGlueConfig.validate_architecture]   s,   € à×Ñ ×!9Ñ!9Õ9¸QÔ>ÜÐPÓQÐQñ ?r%   c                óæ   <€ V ^8„  d   Qh/ S[ S[,          R,          ;R&   S[;R&   S[;R&   S[;R&   S[R,          ;R&   S[;R&   S[;R&   S[;R	&   S[;R
&   S[;R&   S[S[,          ;R&   S[;R&   # )é   Nr   r   Únum_hidden_layersr   r   Údepth_confidenceÚwidth_confidenceÚfilter_thresholdÚinitializer_rangeÚ
hidden_actÚattention_dropoutÚattention_bias)r   r   ÚintÚfloatÚstrÚbool)ÚformatÚ__classdict__s   "€r#   Ú__annotate__ÚLightGlueConfig.__annotate__   sÌ   ø‡ ‚ ñB #Ñ%5Õ5¸Õ<ÑCñC ñD ÑñE ñF ÑñG ñH Ñ ñI ñJ ˜t�Ñ*ñK ñL Ñ"ñM ñN Ñ"ñO ñP Ñ!ñQ ñR Ñ#ñS ñT ÑñU ñV ™s•{Ñ(ñW ñX ÑòY r%   )r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Úsub_configsr   r   r,   r   r   r-   r.   r/   r0   r1   r2   r3   r   r(   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r"   r9   s   @@r#   r   r      ss   ù‡ € ñð6 €JØ-¨zÐ:€Kà?CÐØ€NØÐØ ÐØ&*ÐØ"ÐØ"ÐØ!ÐØ#ÐØ€JØ%(ÐØ€Nõ(ò$R÷A … r%   r   N)Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   Úautor   r   r   r   r   Ú__all__r   r%   r#   Ú<module>rK      sQ   ðõ* /å 3Ý #ß -Ý )ñ Ð9Ô:ØôARÐ&ó ARó ó ;ðARðH Ð
‚r%   