§
    ­¸j-  ã                  óª  — d Z ddlmZ g d¢ZddlmZ ddlmZ ddlm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ  edd	d
¬¦  «         G d„ de¦  «        ¦   «         Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z  edd	d
¬¦  «         G d„ de¦  «        ¦   «         Z! G d„ de¦  «        Z" G d„ de¦  «        Z# edd	d
¬¦  «         G d„ de#¦  «        ¦   «         Z$ G d„ de#¦  «        Z% G d „ d!e#¦  «        Z& G d"„ d#e#¦  «        Z' G d$„ d%e#¦  «        Z( G d&„ d'e#¦  «        Z) G d(„ d)e#¦  «        Z*dS )*aV  Concrete RF-DETR model variant classes.

All classes inherit from :class:`~rfdetr.detr.RFDETR` which remains defined in ``rfdetr.detr``. Backward-compatible
access from ``rfdetr.detr`` is provided via lazy ``__getattr__`` re-exports, so importing ``rfdetr.variants`` no longer
depends on a fragile eager ``detr -> variants`` import sequence.
é    )Úannotations)Ú
RFDETRBaseÚRFDETRKeypointPreviewÚ
RFDETRNanoÚRFDETRSmallÚRFDETRMediumÚRFDETRLargeÚRFDETRLargeDeprecatedÚ	RFDETRSegÚRFDETRSegPreviewÚRFDETRSegNanoÚRFDETRSegSmallÚRFDETRSegMediumÚRFDETRSegLargeÚRFDETRSegXLargeÚRFDETRSeg2XLarge)ÚAny)Údeprecated_class)ÚKeypointTrainConfigÚModelConfigÚRFDETRBaseConfigÚRFDETRKeypointPreviewConfigÚRFDETRLargeConfigÚRFDETRLargeDeprecatedConfigÚRFDETRMediumConfigÚRFDETRNanoConfigÚRFDETRSeg2XLargeConfigÚRFDETRSegLargeConfigÚRFDETRSegMediumConfigÚRFDETRSegNanoConfigÚRFDETRSegPreviewConfigÚRFDETRSegSmallConfigÚRFDETRSegXLargeConfigÚRFDETRSmallConfigÚSegmentationTrainConfig)ÚRFDETRNz1.7.0z2.0.0)ÚtargetÚdeprecated_inÚ	remove_inc                  ó   — e Zd ZdZdZeZdS )r   z¥Train an RF-DETR Base model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    zrfdetr-baseN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úsizer   Ú_model_config_class© ó    ú_/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/rfdetr/variants.pyr   r   ;   s'   € € € € € ðð ð €DØ*ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   z¥Train an RF-DETR Nano model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    zrfdetr-nanoN)r+   r,   r-   r.   r/   r   r0   r1   r2   r3   r   r   K   s'   € € € € € ðð ð €DØ*ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZeZdS )r   zÈTrain or run inference with the RF-DETR keypoint preview model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    zrfdetr-keypoint-previewN)	r+   r,   r-   r.   r/   r   r0   r   Ú_train_config_classr1   r2   r3   r   r   V   s-   € € € € € ðð ð %€DØ5ÐØ-ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   z¦Train an RF-DETR Small model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    zrfdetr-smallN)r+   r,   r-   r.   r/   r$   r0   r1   r2   r3   r   r   b   s'   € € € € € ðð ð €DØ+ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   z§Train an RF-DETR Medium model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    zrfdetr-mediumN)r+   r,   r-   r.   r/   r   r0   r1   r2   r3   r   r   m   s'   € € € € € ðð ð €DØ,ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r
   z¾Train an RF-DETR Large model using the legacy config.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    úrfdetr-largeN)r+   r,   r-   r.   r/   r   r0   r1   r2   r3   r
   r
   x   s'   € € € € € ðð ð €DØ5ÐÐÐr2   r
   c                  ó   — e Zd ZdZdZd	d„ZdS )
r	   z¦Train an RF-DETR Large model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``.
    r:   Úkwargsr   Úreturnr   c                ó   — t          di |¤ŽS )Nr1   )r   )Úselfr<   s     r3   Úget_model_configzRFDETRLarge.get_model_config‘   s   € Ý Ð*Ð* 6Ð*Ð*Ð*r2   N)r<   r   r=   r   )r+   r,   r-   r.   r/   r@   r1   r2   r3   r	   r	   ˆ   s9   € € € € € ðð ð €Dð+ð +ð +ð +ð +ð +r2   r	   c                  ó   — e Zd ZdZeZdS )r   zÓBase class for all RF-DETR segmentation models.

    Training accepts custom square integer ``resolution`` values. Most segmentation variants use multiples of 24;
    ``RFDETRSegNano`` uses multiples of 12.
    N)r+   r,   r-   r.   r%   r6   r1   r2   r3   r   r   •   s"   € € € € € ðð ð 2ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   zìTrain an RF-DETR Segmentation Preview model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``. Deprecated in v1.7.0, scheduled for removal in v2.0.0.
    zrfdetr-seg-previewN)r+   r,   r-   r.   r/   r!   r0   r1   r2   r3   r   r   Ÿ   s'   € € € € € ðð ð  €DØ0ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   zÕTrain an RF-DETR Segmentation Nano model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``; this variant uses multiples of 12.
    zrfdetr-seg-nanoN)r+   r,   r-   r.   r/   r    r0   r1   r2   r3   r   r   ¯   s'   € € € € € ðð ð €DØ-ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   zÖTrain an RF-DETR Segmentation Small model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``; this variant uses multiples of 24.
    zrfdetr-seg-smallN)r+   r,   r-   r.   r/   r"   r0   r1   r2   r3   r   r   º   ó'   € € € € € ðð ð €DØ.ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   z×Train an RF-DETR Segmentation Medium model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``; this variant uses multiples of 24.
    zrfdetr-seg-mediumN)r+   r,   r-   r.   r/   r   r0   r1   r2   r3   r   r   Å   ó'   € € € € € ðð ð €DØ/ÐÐÐr2   r   c                  ó   — e Zd ZdZdZeZdS )r   zÖTrain an RF-DETR Segmentation Large model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``; this variant uses multiples of 24.
    zrfdetr-seg-largeN)r+   r,   r-   r.   r/   r   r0   r1   r2   r3   r   r   Ð   rE   r2   r   c                  ó   — e Zd ZdZdZeZdS )r   z×Train an RF-DETR Segmentation XLarge model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``; this variant uses multiples of 24.
    zrfdetr-seg-xlargeN)r+   r,   r-   r.   r/   r#   r0   r1   r2   r3   r   r   Û   rG   r2   r   c                  ó   — e Zd ZdZdZeZdS )r   zØTrain an RF-DETR Segmentation 2XLarge model.

    Training accepts custom square integer ``resolution`` values. The value must be divisible by ``patch_size *
    num_windows``; this variant uses multiples of 24.
    zrfdetr-seg-2xlargeN)r+   r,   r-   r.   r/   r   r0   r1   r2   r3   r   r   æ   s'   € € € € € ðð ð  €DØ0ÐÐÐr2   r   )+r.   Ú
__future__r   Ú__all__Útypingr   Ú	deprecater   Úrfdetr.configr   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   Úrfdetr.detrr&   r   r   r   r   r   r
   r	   r   r   r   r   r   r   r   r   r1   r2   r3   ú<module>rQ      s*  ððð ð #Ð "Ð "Ð "Ð "Ð "ðð ð €ð$ Ð Ð Ð Ð Ð à &Ð &Ð &Ð &Ð &Ð &ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð& Ð Ð Ð Ð Ð ð ÐØØØðñ ô ð
+ð +ð +ð +ð +�ñ +ô +ñô ð
+ð+ð +ð +ð +ð +�ñ +ô +ð +ð	.ð 	.ð 	.ð 	.ð 	.˜Fñ 	.ô 	.ð 	.ð,ð ,ð ,ð ,ð ,�&ñ ,ô ,ð ,ð-ð -ð -ð -ð -�6ñ -ô -ð -ð ÐØØØðñ ô ð
6ð 6ð 6ð 6ð 6˜Fñ 6ô 6ñô ð
6ð
+ð 
+ð 
+ð 
+ð 
+�&ñ 
+ô 
+ð 
+ð2ð 2ð 2ð 2ð 2�ñ 2ô 2ð 2ð ÐØØØðñ ô ð
1ð 1ð 1ð 1ð 1�yñ 1ô 1ñô ð
1ð.ð .ð .ð .ð .�Iñ .ô .ð .ð/ð /ð /ð /ð /�Yñ /ô /ð /ð0ð 0ð 0ð 0ð 0�iñ 0ô 0ð 0ð/ð /ð /ð /ð /�Yñ /ô /ð /ð0ð 0ð 0ð 0ð 0�iñ 0ô 0ð 0ð1ð 1ð 1ð 1ð 1�yñ 1ô 1ð 1ð 1ð 1r2   