{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"选读：难例权重和对象匹配不是一件事","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html","markdown":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.md","pages":[{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","unit":"选读：输出组织与训练分配还可以怎样改变？","unitId":"spatial-training-extensions","chapter":"II","number":1}],"aliases":[{"oldId":"b-c07a3ddd5502ff51ec882593","targetId":"b-c07a3ddd5502ff51ec882593","page":"reading-opening","operation":"move","beforeSHA256":"d48c0707359c8eb1e1e1f08018885ea3b0fed5db49243c6f8e6893b9d7dc2080","afterSHA256":"d48c0707359c8eb1e1e1f08018885ea3b0fed5db49243c6f8e6893b9d7dc2080","reason":"Same source body in authored semantic page"},{"oldId":"b-5a1d20ad4e402ca5c82b3d52","targetId":"b-5a1d20ad4e402ca5c82b3d52","page":"reading-opening","operation":"move","beforeSHA256":"66f71cd1faef17a7a06a83c631491bac5b4f376e49bca8b1f468f3604df1787a","afterSHA256":"66f71cd1faef17a7a06a83c631491bac5b4f376e49bca8b1f468f3604df1787a","reason":"Same source body in authored semantic page"},{"oldId":"b-2e591ab106cc6a2f0f7e2d02","targetId":"b-2e591ab106cc6a2f0f7e2d02","page":"reading-opening","operation":"move","beforeSHA256":"acad29e92db22a1ad00a309903470a4328f8c18cfdf4fac20c3446621f0f6335","afterSHA256":"acad29e92db22a1ad00a309903470a4328f8c18cfdf4fac20c3446621f0f6335","reason":"Same source body in authored semantic page"},{"oldId":"b-c5726c6232b96d649bdb3632","targetId":"b-c5726c6232b96d649bdb3632","page":"reading-opening","operation":"move","beforeSHA256":"6d41a42fe14ef8b81dbbf4c540876335e4e04e4ecf75f45c1c416ef808b7f693","afterSHA256":"6d41a42fe14ef8b81dbbf4c540876335e4e04e4ecf75f45c1c416ef808b7f693","reason":"Same source body in authored semantic page"},{"oldId":"b-8e2a9fb395471e25480b5dba","targetId":"b-8e2a9fb395471e25480b5dba","page":"reading-opening","operation":"move","beforeSHA256":"09c26eb8dd7894d9423b7b2465780fda6811ebe147e75d5d917afc5f99951c94","afterSHA256":"09c26eb8dd7894d9423b7b2465780fda6811ebe147e75d5d917afc5f99951c94","reason":"Same source body in authored semantic page"},{"oldId":"b-99476654bbf55261ea02872b","targetId":"b-99476654bbf55261ea02872b","page":"reading-opening","operation":"move","beforeSHA256":"2b9ccef7e1220e2250cceff1abd8bdd736b42f8da5a223f26b029f44b962e807","afterSHA256":"2b9ccef7e1220e2250cceff1abd8bdd736b42f8da5a223f26b029f44b962e807","reason":"Same source body in authored semantic page"}],"blocks":[{"id":"b-c07a3ddd5502ff51ec882593","type":"h1","scope":"focal-versus-assignment","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html#b-c07a3ddd5502ff51ec882593","content":"# 选读：难例权重和对象匹配不是一件事","sha256":"d48c0707359c8eb1e1e1f08018885ea3b0fed5db49243c6f8e6893b9d7dc2080","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"spatial-training-extensions","title":"选读：输出组织与训练分配还可以怎样改变？"},"page":{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","number":1},"sectionTitle":"选读：难例权重和对象匹配不是一件事","currentQuestion":"选读：难例权重和对象匹配不是一件事","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-5a1d20ad4e402ca5c82b3d52","prerequisites":[{"id":"b-5a1d20ad4e402ca5c82b3d52","url":"#b-5a1d20ad4e402ca5c82b3d52","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-5a1d20ad4e402ca5c82b3d52","type":"p","scope":"focal-versus-assignment","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html#b-5a1d20ad4e402ca5c82b3d52","content":"从错类、漏检、框偏和重复四项错误读结果。IoU 把位置偏差变成可比较几何量，AP 再加入分数排序与对象唯一匹配。沿下方积分例走完分数排序、精确率与召回率计算，再用 LAB10 的结果辨认这些错误。","sha256":"66f71cd1faef17a7a06a83c631491bac5b4f376e49bca8b1f468f3604df1787a","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"spatial-training-extensions","title":"选读：输出组织与训练分配还可以怎样改变？"},"page":{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","number":1},"sectionTitle":"选读：难例权重和对象匹配不是一件事","currentQuestion":"选读：难例权重和对象匹配不是一件事","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c07a3ddd5502ff51ec882593","nextBlock":"b-2e591ab106cc6a2f0f7e2d02","prerequisites":[{"id":"b-c07a3ddd5502ff51ec882593","url":"#b-c07a3ddd5502ff51ec882593","role":"section-title"}],"relatedBlocks":[]},{"id":"b-2e591ab106cc6a2f0f7e2d02","type":"p","scope":"focal-versus-assignment","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html#b-2e591ab106cc6a2f0f7e2d02","content":"大量背景参考框已经很容易分类，却可能因数量占优而贡献大量总损失。focal loss 在基本交叉熵外乘 $(1-p_t)^\\gamma$。取 γ=2，正确类概率 .9 的样本权重 .01，概率 .5 的权重 .25，后者相对贡献更大。这是在调整哪些样本值得继续关注，不直接增加空间信息，也不指定哪项预测负责哪只对象。","sha256":"acad29e92db22a1ad00a309903470a4328f8c18cfdf4fac20c3446621f0f6335","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"spatial-training-extensions","title":"选读：输出组织与训练分配还可以怎样改变？"},"page":{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","number":1},"sectionTitle":"选读：难例权重和对象匹配不是一件事","currentQuestion":"选读：难例权重和对象匹配不是一件事","sourceSlides":[],"knowledgeBlock":null,"formulas":[{"latex":"(1-p_t)^\\gamma","definitionContext":"选读：难例权重和对象匹配不是一件事"}],"previousBlock":"b-5a1d20ad4e402ca5c82b3d52","nextBlock":"b-c5726c6232b96d649bdb3632","prerequisites":[{"id":"b-c07a3ddd5502ff51ec882593","url":"#b-c07a3ddd5502ff51ec882593","role":"section-title"},{"id":"b-5a1d20ad4e402ca5c82b3d52","url":"#b-5a1d20ad4e402ca5c82b3d52","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-c5726c6232b96d649bdb3632","type":"p","scope":"focal-versus-assignment","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html#b-c5726c6232b96d649bdb3632","content":"对象匹配回答另一件事：当真值是一组无序对象，预测槽位该怎样对应它们？给两预测、两真值的代价矩阵 `[[2,.3],[.4,2]]`，对角总代价 4，交叉 .7，所以选择交叉。交换标注数组顺序不该改变对象集合本身，匹配用于消除这个任意顺序。","sha256":"6d41a42fe14ef8b81dbbf4c540876335e4e04e4ecf75f45c1c416ef808b7f693","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"spatial-training-extensions","title":"选读：输出组织与训练分配还可以怎样改变？"},"page":{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","number":1},"sectionTitle":"选读：难例权重和对象匹配不是一件事","currentQuestion":"选读：难例权重和对象匹配不是一件事","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-2e591ab106cc6a2f0f7e2d02","nextBlock":"b-8e2a9fb395471e25480b5dba","prerequisites":[{"id":"b-c07a3ddd5502ff51ec882593","url":"#b-c07a3ddd5502ff51ec882593","role":"section-title"},{"id":"b-5a1d20ad4e402ca5c82b3d52","url":"#b-5a1d20ad4e402ca5c82b3d52","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-8e2a9fb395471e25480b5dba","type":"p","scope":"focal-versus-assignment","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html#b-8e2a9fb395471e25480b5dba","content":"LAB20 从类别概率、框 L1 与 IoU 实际构造成本，再穷举 2! 分配；它是足够透明的解析练习。这里没有图像编码器学习，也不是完整 DETR。主讲保留对象身份的必要性，这些损失组织细节进入选读即可，不必为保持课程丰富而重新开一章。","sha256":"09c26eb8dd7894d9423b7b2465780fda6811ebe147e75d5d917afc5f99951c94","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"spatial-training-extensions","title":"选读：输出组织与训练分配还可以怎样改变？"},"page":{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","number":1},"sectionTitle":"选读：难例权重和对象匹配不是一件事","currentQuestion":"选读：难例权重和对象匹配不是一件事","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c5726c6232b96d649bdb3632","nextBlock":"b-99476654bbf55261ea02872b","prerequisites":[{"id":"b-c07a3ddd5502ff51ec882593","url":"#b-c07a3ddd5502ff51ec882593","role":"section-title"},{"id":"b-5a1d20ad4e402ca5c82b3d52","url":"#b-5a1d20ad4e402ca5c82b3d52","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-99476654bbf55261ea02872b","type":"h2","scope":"focal-versus-assignment","url":"https://codingai-lec03.pages.dev/course/blocks/focal-versus-assignment.html#b-99476654bbf55261ea02872b","content":"## 继续阅读与实验","sha256":"2b9ccef7e1220e2250cceff1abd8bdd736b42f8da5a223f26b029f44b962e807","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"spatial-training-extensions","title":"选读：输出组织与训练分配还可以怎样改变？"},"page":{"id":"reading-opening","title":"选读：难例权重和对象匹配不是一件事","number":1},"sectionTitle":"选读：难例权重和对象匹配不是一件事","currentQuestion":"选读：难例权重和对象匹配不是一件事","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-8e2a9fb395471e25480b5dba","nextBlock":null,"prerequisites":[{"id":"b-c07a3ddd5502ff51ec882593","url":"#b-c07a3ddd5502ff51ec882593","role":"section-title"},{"id":"b-5a1d20ad4e402ca5c82b3d52","url":"#b-5a1d20ad4e402ca5c82b3d52","role":"problem-context"}],"relatedBlocks":[]}]}
