update template code

This commit is contained in:
phatakmr
2025-10-13 14:48:00 +02:00
parent c9d159fcc6
commit 8f637a4a0d
46 changed files with 2955 additions and 1 deletions

15
mmp/a6/nms.py Normal file
View File

@@ -0,0 +1,15 @@
from typing import List, Sequence, Tuple
from ..a3.annotation import AnnotationRect
def non_maximum_suppression(
boxes_scores: Sequence[Tuple[AnnotationRect, float]], threshold: float
) -> List[Tuple[AnnotationRect, float]]:
"""Exercise 6.1
@param boxes_scores: Sequence of tuples of annotations and scores
@param threshold: Threshold for NMS
@return: A list of tuples of the remaining boxes after NMS together with their scores
"""
raise NotImplementedError()