§
    à©ºj1  ã                  óä   — d 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  G d„ d¦  «        ZeZeZ G d„ d¦  «        Zdd	lZdd
lmZmZmZ ej                             de¦  «         ddlmZmZ g d¢Zd	S )uÝ  Perception evaluation in pure Rust.

Covers detection today â€” bbox, segmentation, keypoints, and oriented boxes on
the COCO, LVIS, and Open Images protocols. Works as a drop-in pycocotools
replacement::

    from hotcoco import init_as_pycocotools
    init_as_pycocotools()

Also included: TIDE error analysis, confusion matrices, calibration, per-image
diagnostics, dataset tools, and metric functions that work on plain arrays.
Docs: https://derekallman.github.io/hotcoco/
é    )Úannotationsé   )ÚCOCOÚCOCOevalÚ	HierarchyÚParamsÚcompareÚinit_as_lvisÚinit_as_pycocotoolsÚmaskc                  ó   — e Zd ZdZdd„ZdS )ÚLVISevala!  Drop-in replacement for lvis-api LVISEval.

    Returns a ``COCOeval`` instance configured for LVIS federated evaluation
    (``lvis_style=True``). Supports ``run()`` / ``print_results()`` /
    ``get_results()`` as required by Detectron2 and MMDetection.

    Parameters
    ----------
    gt : COCO
        Ground-truth COCO object loaded from an LVIS annotation file.
    dt : COCO
        Detection results COCO object, for example from ``gt.load_res(...)``.
    iou_type : str
        One of ``"bbox"``, ``"segm"``, or ``"keypoints"``.
    Úsegmc                ó(   — t          |||d¬¦  «        S )NT)Ú
lvis_style)r   )ÚclsÚgtÚdtÚiou_types       ú`/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/hotcoco/__init__.pyÚ__new__zLVISeval.__new__+   s   € Ý˜˜B °TÐ:Ñ:Ô:Ð:ó    N)r   ©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   © r   r   r   r      s2   € € € € € ðð ð ;ð ;ð ;ð ;ð ;ð ;r   r   c                  ó   — e Zd ZdZdd„ZdS )ÚLVISResultsa	  Drop-in replacement for lvis-api LVISResults.

    ``LVISResults(lvis_gt, predictions, max_dets=300)`` returns a ``COCO``
    object. ``max_dets`` is accepted for API compatibility; detection
    truncation is handled by ``LVISeval`` params (``max_dets=300``).
    é,  c                ó,   — |                      |¦  «        S )N)Úload_res)r   Úlvis_gtÚresultsÚmax_detss       r   r   zLVISResults.__new__B   s   € Ø×Ò Ñ(Ô(Ð(r   N)r!   r   r   r   r   r    r    :   s2   € € € € € ðð ð)ð )ð )ð )ð )ð )r   r    N)Ú	detectionÚmetricsÚ
primitiveszhotcoco.mask)ÚCocoDetectionÚCocoEvaluator)r   r   r*   r+   r   ÚLVISÚLVISEvalr    r   r   r	   r'   r
   r   r   r(   r)   )r   Ú
__future__r   Úhotcocor   r   r   r   r	   r
   r   r   r   r-   r,   r    ÚsysÚ_sysÚ r'   r(   r)   ÚmodulesÚ
setdefaultÚintegrationsr*   r+   Ú__all__r   r   r   ú<module>r7      s0  ððð ð #Ð "Ð "Ð "Ð "Ð "à hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hÐ hð;ð ;ð ;ð ;ð ;ñ ;ô ;ð ;ð4 €ð €ð	)ð 	)ð 	)ð 	)ð 	)ñ 	)ô 	)ð 	)ð Ð Ð Ð à ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,ð „× Ò ˜¨Ñ -Ô -Ð -Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6ðð ð €€€r   