From b58a8c0a511aa510c539bc8c617c6253648702d9 Mon Sep 17 00:00:00 2001 From: Rinat M <25082858+rmukh@users.noreply.github.com> Date: Tue, 7 Oct 2025 16:29:37 +0800 Subject: [PATCH] Update cocoeval.py passing a maxdets parameter from user --- PythonAPI/pycocotools/cocoeval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonAPI/pycocotools/cocoeval.py b/PythonAPI/pycocotools/cocoeval.py index 89c251e..cb268d9 100644 --- a/PythonAPI/pycocotools/cocoeval.py +++ b/PythonAPI/pycocotools/cocoeval.py @@ -457,7 +457,7 @@ def _summarize( ap=1, iouThr=None, areaRng='all', maxDets=100 ): return mean_s def _summarizeDets(): stats = np.zeros((12,)) - stats[0] = _summarize(1) + stats[0] = _summarize(1, maxDets=self.params.maxDets[2]) stats[1] = _summarize(1, iouThr=.5, maxDets=self.params.maxDets[2]) stats[2] = _summarize(1, iouThr=.75, maxDets=self.params.maxDets[2]) stats[3] = _summarize(1, areaRng='small', maxDets=self.params.maxDets[2])