{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"5 · NMS 的阈值不是评价的阈值","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html","markdown":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.md","pages":[{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","unit":"5 · NMS 的阈值不是评价的阈值","unitId":"notebook-blocks/cf51f5d05100404d88c27df74895324d","chapter":"course","number":1}],"aliases":[{"oldId":"b-5685449fa55e6a1872f20f38","targetId":"b-5685449fa55e6a1872f20f38","page":"reading-opening","operation":"move","beforeSHA256":"9027342eb8430f11699811edb871aeb2e37b28e9f874a2aa48778e6bac2818b7","afterSHA256":"9027342eb8430f11699811edb871aeb2e37b28e9f874a2aa48778e6bac2818b7","reason":"Same source body in authored semantic page"},{"oldId":"b-29dff3ca4a543ea5b8cd1935","targetId":"b-29dff3ca4a543ea5b8cd1935","page":"reading-opening","operation":"move","beforeSHA256":"04c4944ef3605875834f423d7f25780828de819f27d94c505e2f6c01d6c0125d","afterSHA256":"04c4944ef3605875834f423d7f25780828de819f27d94c505e2f6c01d6c0125d","reason":"Same source body in authored semantic page"},{"oldId":"b-bae56d09059595e4f3e56b27","targetId":"b-bae56d09059595e4f3e56b27","page":"reading-opening","operation":"move","beforeSHA256":"dc06c1e728a4b5740ba634b145bc9a1da6323031626734cb4555db5a744df806","afterSHA256":"dc06c1e728a4b5740ba634b145bc9a1da6323031626734cb4555db5a744df806","reason":"Same source body in authored semantic page"},{"oldId":"b-4799053637550c67b2e1c821","targetId":"b-4799053637550c67b2e1c821","page":"reading-opening","operation":"move","beforeSHA256":"4e0de6d032a3765c60907de32f28cd988b659299663e842d319bdb0426243d78","afterSHA256":"4e0de6d032a3765c60907de32f28cd988b659299663e842d319bdb0426243d78","reason":"Same source body in authored semantic page"},{"oldId":"b-489053606b5e9fa540fd1c43","targetId":"b-489053606b5e9fa540fd1c43","page":"reading-opening","operation":"move","beforeSHA256":"99b2e6e24035851332a4887c1978f2bbacb01b592049fd2378d378923f9664a2","afterSHA256":"99b2e6e24035851332a4887c1978f2bbacb01b592049fd2378d378923f9664a2","reason":"Same source body in authored semantic page"},{"oldId":"b-88bb4ce7760fa599dfd9143c","targetId":"b-88bb4ce7760fa599dfd9143c","page":"reading-opening","operation":"move","beforeSHA256":"ff44778ca5c7eeffd58655ecd14f2f76e6c6de9e6c4a98686ed1e0c15217ef2b","afterSHA256":"ff44778ca5c7eeffd58655ecd14f2f76e6c6de9e6c4a98686ed1e0c15217ef2b","reason":"Same source body in authored semantic page"},{"oldId":"b-5203bb14c226b6dcd95fca70","targetId":"b-5203bb14c226b6dcd95fca70","page":"reading-opening","operation":"move","beforeSHA256":"e9598bbdffe74d165e2e2c5ccdbbf7874c6f5cd6a3cb7db83f9c8df436452870","afterSHA256":"e9598bbdffe74d165e2e2c5ccdbbf7874c6f5cd6a3cb7db83f9c8df436452870","reason":"Same source body in authored semantic page"},{"oldId":"b-fdd157ccdf90c4bf146ec3b3","targetId":"b-fdd157ccdf90c4bf146ec3b3","page":"reading-opening","operation":"rewrite","beforeSHA256":"75b8f0aea0f458a26c6a4bad18386ce51d6d045666cc4f14f2992675604dab4a","afterSHA256":"4dd65e80188fecd322b1ed169bd716718a7ab85d7ac95618c6543e0ec8506461","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-a58f31eae095cdfcc5ebdf69","targetId":"b-a58f31eae095cdfcc5ebdf69","page":"reading-opening","operation":"move","beforeSHA256":"66f68d3235a1e4b9040cc5899b3ed4cbb50ffe431cf9d426948cb0450dbf573f","afterSHA256":"66f68d3235a1e4b9040cc5899b3ed4cbb50ffe431cf9d426948cb0450dbf573f","reason":"Same source body in authored semantic page"},{"oldId":"block-cf51f5d05100404d88c27df74895324d--5-nms-的阈值不是评价的阈值","targetId":"b-489053606b5e9fa540fd1c43","operation":"retain-source-identity"}],"blocks":[{"id":"b-5685449fa55e6a1872f20f38","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-5685449fa55e6a1872f20f38","content":"[LAB 09 · 检测几何：框、匹配、NMS 与 AP](/course/notebooks/90d213b4e1e04c7e889ee6fc042b2358.html)","sha256":"9027342eb8430f11699811edb871aeb2e37b28e9f874a2aa48778e6bac2818b7","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-29dff3ca4a543ea5b8cd1935","prerequisites":[],"relatedBlocks":[]},{"id":"b-29dff3ca4a543ea5b8cd1935","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-29dff3ca4a543ea5b8cd1935","content":"# 5 · NMS 的阈值不是评价的阈值","sha256":"04c4944ef3605875834f423d7f25780828de819f27d94c505e2f6c01d6c0125d","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-5685449fa55e6a1872f20f38","nextBlock":"b-bae56d09059595e4f3e56b27","prerequisites":[{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-bae56d09059595e4f3e56b27","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-bae56d09059595e4f3e56b27","content":"并入相关学习路径","sha256":"dc06c1e728a4b5740ba634b145bc9a1da6323031626734cb4555db5a744df806","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-29dff3ca4a543ea5b8cd1935","nextBlock":"b-4799053637550c67b2e1c821","prerequisites":[{"id":"b-29dff3ca4a543ea5b8cd1935","url":"#b-29dff3ca4a543ea5b8cd1935","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-4799053637550c67b2e1c821","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-4799053637550c67b2e1c821","content":"固定框匹配、PR/AP、NMS误删相邻对象反例","sha256":"4e0de6d032a3765c60907de32f28cd988b659299663e842d319bdb0426243d78","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bae56d09059595e4f3e56b27","nextBlock":"b-489053606b5e9fa540fd1c43","prerequisites":[{"id":"b-29dff3ca4a543ea5b8cd1935","url":"#b-29dff3ca4a543ea5b8cd1935","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-489053606b5e9fa540fd1c43","type":"h2","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-489053606b5e9fa540fd1c43","content":"## 5 · NMS 的阈值不是评价的阈值","sha256":"99b2e6e24035851332a4887c1978f2bbacb01b592049fd2378d378923f9664a2","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4799053637550c67b2e1c821","nextBlock":"b-88bb4ce7760fa599dfd9143c","prerequisites":[{"id":"b-29dff3ca4a543ea5b8cd1935","url":"#b-29dff3ca4a543ea5b8cd1935","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-88bb4ce7760fa599dfd9143c","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-88bb4ce7760fa599dfd9143c","content":"代码实现 **class-aware NMS**：按分数降序保留当前框；仅当另一个框与它**类别相同且 IoU > 0.50** 时才抑制。相等时保留；不同类别即使坐标完全一致也保留。本例没有额外分数过滤。NMS 输入不包含 GT，因此不是训练匹配，也不能知道两个重叠框是否对应同一个真实对象。","sha256":"ff44778ca5c7eeffd58655ecd14f2f76e6c6de9e6c4a98686ed1e0c15217ef2b","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-489053606b5e9fa540fd1c43","nextBlock":"b-5203bb14c226b6dcd95fca70","prerequisites":[{"id":"b-489053606b5e9fa540fd1c43","url":"#b-489053606b5e9fa540fd1c43","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-5203bb14c226b6dcd95fca70","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-5203bb14c226b6dcd95fca70","content":"原例 P1/P2 同类，互相 IoU=`9/11 > 0.50`，所以 P2 被删，保留原编号 `[P1,P3,P4]`。","sha256":"e9598bbdffe74d165e2e2c5ccdbbf7874c6f5cd6a3cb7db83f9c8df436452870","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-88bb4ce7760fa599dfd9143c","nextBlock":"b-fdd157ccdf90c4bf146ec3b3","prerequisites":[{"id":"b-489053606b5e9fa540fd1c43","url":"#b-489053606b5e9fa540fd1c43","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-fdd157ccdf90c4bf146ec3b3","type":"table","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-fdd157ccdf90c4bf146ec3b3","content":"| 条件 | AP50 的 TP/FP 顺序 | AP50 | AP75 | AP50 最终 recall |\n| --- | --- | --- | --- | --- |\n| NMS 前 | TP, FP, TP, FP | 5/6 | 1/2 | 1 |\n| NMS 后 | TP, TP, FP | 1 | 1/2 | 1 |","sha256":"4dd65e80188fecd322b1ed169bd716718a7ab85d7ac95618c6543e0ec8506461","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"table":{"headers":["条件","AP50 的 TP/FP 顺序","AP50","AP75","AP50 最终 recall"],"rows":[["条件","AP50 的 TP/FP 顺序","AP50","AP75","AP50 最终 recall"],["NMS 前","TP, FP, TP, FP","5/6","1/2","1"],["NMS 后","TP, TP, FP","1","1/2","1"]]},"previousBlock":"b-5203bb14c226b6dcd95fca70","nextBlock":"b-a58f31eae095cdfcc5ebdf69","prerequisites":[{"id":"b-489053606b5e9fa540fd1c43","url":"#b-489053606b5e9fa540fd1c43","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-a58f31eae095cdfcc5ebdf69","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/cf51f5d05100404d88c27df74895324d.html#b-a58f31eae095cdfcc5ebdf69","content":"NMS 清理了 P2 重复错误，因此 AP50 改善；它没有调整 P3 坐标，AP75 没有改善。NMS 后仍留有 P4 这个 FP，但它排在全部真值被召回之后，故此处 all-points AP50 仍为 1。**AP=1 不表示预测列表中绝无 FP。**","sha256":"66f68d3235a1e4b9040cc5899b3ed4cbb50ffe431cf9d426948cb0450dbf573f","chapter":{"id":"course","title":"5 · NMS 的阈值不是评价的阈值"},"unit":{"id":"notebook-blocks/cf51f5d05100404d88c27df74895324d","title":"5 · NMS 的阈值不是评价的阈值"},"page":{"id":"reading-opening","title":"5 · NMS 的阈值不是评价的阈值","number":1},"sectionTitle":"5 · NMS 的阈值不是评价的阈值","currentQuestion":"5 · NMS 的阈值不是评价的阈值","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-fdd157ccdf90c4bf146ec3b3","nextBlock":null,"prerequisites":[{"id":"b-489053606b5e9fa540fd1c43","url":"#b-489053606b5e9fa540fd1c43","role":"section-title"},{"id":"b-5685449fa55e6a1872f20f38","url":"#b-5685449fa55e6a1872f20f38","role":"problem-context"}],"relatedBlocks":[]}]}
