Ë
    ýÿæi7	  ã                   ód   — d dl mZ d dlmZ d dlmZmZ d dlmZ  G d„ de«      Z	 G d„ de«      Z
y	)
é    )Ú
Collection)ÚAny)ÚModifiedPanopticQualityÚPanopticQuality)Ú_deprecated_root_import_classc                   óH   ‡ — e Zd ZdZ	 d	dee   dee   dededdf
ˆ fd„Zˆ xZ	S )
Ú_ModifiedPanopticQualitya{  Wrapper for deprecated import.

    >>> from torch import tensor
    >>> preds = tensor([[[0, 0], [0, 1], [6, 0], [7, 0], [0, 2], [1, 0]]])
    >>> target = tensor([[[0, 1], [0, 0], [6, 0], [7, 0], [6, 0], [255, 0]]])
    >>> pq_modified = _ModifiedPanopticQuality(things = {0, 1}, stuffs = {6, 7})
    >>> pq_modified(preds, target)
    tensor(0.7667, dtype=torch.float64)

    ÚthingsÚstuffsÚallow_unknown_preds_categoryÚkwargsÚreturnNc                 óD   •— t        dd«       t        ‰| �  d|||dœ|¤Ž y )Nr   Ú	detection©r
   r   r   © ©r   ÚsuperÚ__init__©Úselfr
   r   r   r   Ú	__class__s        €úw/Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/torchmetrics/detection/_deprecated.pyr   z!_ModifiedPanopticQuality.__init__   s2   ø€ ô 	&Ð&?ÀÔMÜ‰Ñð 	
Ø &ÐGcñ	
Øgmó	
ó    ©F©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚintÚboolr   r   Ú__classcell__©r   s   @r   r	   r	      sO   ø„ ñ	ð .3ñ	

à˜3‘ð

ð ˜3‘ð

ð '+ð	

ð
 ð

ð 
÷

ñ 

r   r	   c                   óH   ‡ — e Zd ZdZ	 d	dee   dee   dededdf
ˆ fd„Zˆ xZ	S )
Ú_PanopticQualitya;  Wrapper for deprecated import.

    >>> from torch import tensor
    >>> preds = tensor([[[[6, 0], [0, 0], [6, 0], [6, 0]],
    ...                  [[0, 0], [0, 0], [6, 0], [0, 1]],
    ...                  [[0, 0], [0, 0], [6, 0], [0, 1]],
    ...                  [[0, 0], [7, 0], [6, 0], [1, 0]],
    ...                  [[0, 0], [7, 0], [7, 0], [7, 0]]]])
    >>> target = tensor([[[[6, 0], [0, 1], [6, 0], [0, 1]],
    ...                   [[0, 1], [0, 1], [6, 0], [0, 1]],
    ...                   [[0, 1], [0, 1], [6, 0], [1, 0]],
    ...                   [[0, 1], [7, 0], [1, 0], [1, 0]],
    ...                   [[0, 1], [7, 0], [7, 0], [7, 0]]]])
    >>> panoptic_quality = _PanopticQuality(things = {0, 1}, stuffs = {6, 7})
    >>> panoptic_quality(preds, target)
    tensor(0.5463, dtype=torch.float64)

    r
   r   r   r   r   Nc                 óD   •— t        dd«       t        ‰| �  d|||dœ|¤Ž y )Nr   r   r   r   r   r   s        €r   r   z_PanopticQuality.__init__5   s2   ø€ ô 	&Ð&7¸ÔEÜ‰Ñð 	
Ø &ÐGcñ	
Øgmó	
r   r   r   r$   s   @r   r&   r&   !   sO   ø„ ñð. .3ñ	

à˜3‘ð

ð ˜3‘ð

ð '+ð	

ð
 ð

ð 
÷

ñ 

r   r&   N)Úcollections.abcr   Útypingr   Útorchmetrics.detectionr   r   Útorchmetrics.utilities.printsr   r	   r&   r   r   r   Ú<module>r,      s*   ðÝ &Ý ç KÝ Gô
Ð6ô 
ô2
�õ 
r   