§
    ­¸j™
  ã                   ó„   — d Z ddlmZmZ ddlmZ ddlmZ dddœZ G d„ d	e¦  «        Z	dd„Z
edk    r e
¦   «          dS dS )af  LightningCLI entry point for RF-DETR training and evaluation.

Provides the ``rfdetr`` command with auto-generated subcommands::

    rfdetr fit     --config configs/rfdetr_base.yaml
    rfdetr validate --ckpt_path output/best.ckpt
    rfdetr test    --ckpt_path output/best.ckpt
    rfdetr predict --ckpt_path output/best.ckpt

Both ``RFDETRModelModule`` and ``RFDETRDataModule`` share the same ``(model_config, train_config)`` constructor
signature.  ``link_arguments`` eliminates the duplication so the user specifies each config group once; the datamodule
receives the same values automatically at parse time.
é    )ÚLightningArgumentParserÚLightningCLI)ÚRFDETRDataModule)ÚRFDETRModelModuleÚrfdetrzRF-DETR command line interface.)ÚprogÚdescriptionc                   ó"   — e Zd ZdZdeddfd„ZdS )Ú	RFDETRCliam  LightningCLI subclass for RF-DETR training and evaluation.

    Wires ``RFDETRModelModule`` and ``RFDETRDataModule`` under a unified CLI, with argument linking that shares
    ``model_config`` and ``train_config`` between module and datamodule so the user only specifies them once.

    Auto-generated subcommands: ``fit``, ``validate``, ``test``, ``predict``.
    ÚparserÚreturnNc                 óf   — |                      ddd¬¦  «         |                      ddd¬¦  «         dS )u¸  Register argument links that share configs between module and datamodule.

        Linking ``model.model_config`` â†’ ``data.model_config`` and ``model.train_config`` â†’ ``data.train_config`` means
        the user specifies both config groups once; the datamodule receives the same values automatically.

        Args:
            parser: The jsonargparse ``LightningArgumentParser`` provided by
                ``LightningCLI``.
        zmodel.model_configzdata.model_configÚparse)Úapply_onzmodel.train_configzdata.train_configN)Úlink_arguments)Úselfr   s     úc/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/rfdetr/training/cli.pyÚadd_arguments_to_parserz!RFDETRCli.add_arguments_to_parser(   sF   € ð 	×ÒÐ2Ð4GÐRYÐÑZÔZÐZØ×ÒÐ2Ð4GÐRYÐÑZÔZÐZÐZÐZó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r   r   r      sI   € € € € € ðð ð[Ð.Eð [È$ð [ð [ð [ð [ð [ð [r   r   r   Nc                  óH   — t          t          t          t          ¬¦  «         dS )zìEntry point for the ``rfdetr`` CLI.

    Constructs and runs ``RFDETRCli`` with ``RFDETRModelModule`` and ``RFDETRDataModule``.  Subcommands are auto-
    generated by ``LightningCLI``: ``fit``, ``validate``, ``test``, ``predict``.
    )Úparser_kwargsN)r   r   r   Ú_PARSER_KWARGSr   r   r   Úmainr   6   s!   € õ ÕÕ!1ÅÐPÑPÔPÐPÐPÐPr   Ú__main__)r   N)r   Úpytorch_lightning.clir   r   Úrfdetr.training.module_datar   Úrfdetr.training.module_modelr   r   r   r   r   r   r   r   ú<module>r#      sÐ   ððð ð HÐ GÐ GÐ GÐ GÐ GÐ GÐ Gà 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø :Ð :Ð :Ð :Ð :Ð :ð Ø4ðð €ð[ð [ð [ð [ð [�ñ [ô [ð [ð.Qð Qð Qð Qð ˆzÒÐØ€D�F„F€F€F€Fð Ðr   