You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="n">CLASS_NMS_OFFSET</span><spanclass="o">=</span><spanclass="mi">7680</span><spanclass="c1"># offset to apply to boxes for class-wise NMS</span>
247
246
248
247
@@ -252,6 +251,7 @@ <h1>Source code for perceptionmetrics.models.utils.yolo</h1><div class="highligh
Copy file name to clipboardExpand all lines: docs/py_docs/build/html/api/perceptionmetrics.models.utils.html
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -480,13 +480,14 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Link to this headi
480
480
<spanid="perceptionmetrics-models-utils-torchvision-module"></span><h2>perceptionmetrics.models.utils.torchvision module<aclass="headerlink" href="#module-perceptionmetrics.models.utils.torchvision" title="Link to this heading">¶</a></h2>
@@ -503,14 +504,15 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Link to this headi
503
504
<spanid="perceptionmetrics-models-utils-yolo-module"></span><h2>perceptionmetrics.models.utils.yolo module<aclass="headerlink" href="#module-perceptionmetrics.models.utils.yolo" title="Link to this heading">¶</a></h2>
<li><p><strong>output</strong> (<em>torch.Tensor</em>) – Tensor of shape [num_classes + 4, num_anchors] containing bounding box predictions and class logits.</p></li>
512
513
<li><p><strong>confidence_threshold</strong> (<em>float</em>) – Confidence threshold to filter boxes.</p></li>
513
514
<li><p><strong>nms_threshold</strong> (<em>float</em>) – IoU threshold for Non-Maximum Suppression (NMS). Some models may not perform NMS (e.g. YOLOv26).</p></li>
515
+
<li><p><strong>max_detections</strong> (<em>int</em>) – Maximum number of best detections to keep per image after filtering.</p></li>
0 commit comments