{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"连续位置的数值，怎样从四个邻点得到？","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html","markdown":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.md","pages":[{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","unit":"区域采样怎样保住几何对应？","unitId":"roi-alignment-and-evidence","chapter":"II","number":1},{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","unit":"区域采样怎样保住几何对应？","unitId":"roi-alignment-and-evidence","chapter":"II","number":2}],"aliases":[{"oldId":"explanation","targetId":"roi-bilinear-point","operation":"split-explanation-range"},{"oldId":"b-edbbcdacf13cf39cf27521ce","targetId":"b-edbbcdacf13cf39cf27521ce","page":"roi-bilinear-point","operation":"move","beforeSHA256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","afterSHA256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","reason":"Same source body in authored semantic page"},{"oldId":"b-7e195c5cb5b0d5cd9a75d17a","targetId":"b-7e195c5cb5b0d5cd9a75d17a","page":"roi-bilinear-point","operation":"move","beforeSHA256":"d78b5a62078cd3e28e73e49220efe697356bcc28e7e4b4ea0ec29b285c8f1bcb","afterSHA256":"d78b5a62078cd3e28e73e49220efe697356bcc28e7e4b4ea0ec29b285c8f1bcb","reason":"Same source body in authored semantic page"},{"oldId":"b-f7b25c3229af6ac083bd9bf2","targetId":"b-f7b25c3229af6ac083bd9bf2","page":"roi-bilinear-point","operation":"move","beforeSHA256":"185d6570689468f3c523e1d63cc5d2dd507c9b0ff60f2af36bd85b2834d7978e","afterSHA256":"185d6570689468f3c523e1d63cc5d2dd507c9b0ff60f2af36bd85b2834d7978e","reason":"Same source body in authored semantic page"},{"oldId":"b-bd1174ff1f8c27a23778f2a5","targetId":"b-bd1174ff1f8c27a23778f2a5","page":"roi-bilinear-point","operation":"rewrite","beforeSHA256":"42d4cd16f326be5ced36ee533b5baaa0fbd9a49d4765c2f66ad4f576b3fbf130","afterSHA256":"7cfd12e8a6fb39b6b584051658e0572333ea554fe1d4b1890a3eac4903d1e548","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-5934a96ea42b8a8d7b111646","targetId":"b-5934a96ea42b8a8d7b111646","page":"roi-bilinear-point","operation":"move","beforeSHA256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","afterSHA256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","reason":"Same source body in authored semantic page"},{"oldId":"b-d67608f74d980c651b1ca8c3","targetId":"b-d67608f74d980c651b1ca8c3","page":"roi-bilinear-point","operation":"move","beforeSHA256":"dc4ea7cd3e6bb02ae42889df64f7cfced896437d94ce4b1c6535f820400fe2d7","afterSHA256":"dc4ea7cd3e6bb02ae42889df64f7cfced896437d94ce4b1c6535f820400fe2d7","reason":"Same source body in authored semantic page"},{"oldId":"b-e40c5d52d8b8e006e7839424","targetId":"b-e40c5d52d8b8e006e7839424","page":"roi-bilinear-point","operation":"move","beforeSHA256":"c8b573b98a7fa194bf937b9a406747425138e4b74e7ca487215523d704aff87c","afterSHA256":"c8b573b98a7fa194bf937b9a406747425138e4b74e7ca487215523d704aff87c","reason":"Same source body in authored semantic page"},{"oldId":"b-90f6c096efe9ae5f53f9e9dd","targetId":"b-90f6c096efe9ae5f53f9e9dd","page":"roi-bilinear-point","operation":"move","beforeSHA256":"9068ee93532c027ce4a75a59639e005de9272ab4f6cedc3e1e4e0f6ab8dad0e6","afterSHA256":"9068ee93532c027ce4a75a59639e005de9272ab4f6cedc3e1e4e0f6ab8dad0e6","reason":"Same source body in authored semantic page"},{"oldId":"b-44274492d8f6e8ca95cfb223","targetId":"b-44274492d8f6e8ca95cfb223","page":"roi-bilinear-point","operation":"move","beforeSHA256":"6098132f38143db98713510c6df60aa2a55dfc48b17b0637c5e2592782dbb6c0","afterSHA256":"6098132f38143db98713510c6df60aa2a55dfc48b17b0637c5e2592782dbb6c0","reason":"Same source body in authored semantic page"},{"oldId":"b-fca28abad0df2325f0762e0b","targetId":"b-fca28abad0df2325f0762e0b","page":"roi-bilinear-point","operation":"move","beforeSHA256":"e08caebafdde342be57aa6b66bdec78b97e37eaf0745834abac6b5dabd48f342","afterSHA256":"e08caebafdde342be57aa6b66bdec78b97e37eaf0745834abac6b5dabd48f342","reason":"Same source body in authored semantic page"},{"oldId":"b-fac45115c8ce2736a005838c","targetId":"b-fac45115c8ce2736a005838c","page":"roi-bilinear-point","operation":"move","beforeSHA256":"7cb60f9af73cf3da129cce8fba643e88e045cb9f8723c215c7a46c9c821c4b96","afterSHA256":"7cb60f9af73cf3da129cce8fba643e88e045cb9f8723c215c7a46c9c821c4b96","reason":"Same source body in authored semantic page"},{"oldId":"b-b6db1d489d32ff848bd71bc8","targetId":"b-b6db1d489d32ff848bd71bc8","page":"roi-bilinear-point","operation":"move","beforeSHA256":"50faa1907bce52a0c1b9670e4eda0dd8a6e4a1a4f4685dd9f1bc498dc8d2d5ac","afterSHA256":"50faa1907bce52a0c1b9670e4eda0dd8a6e4a1a4f4685dd9f1bc498dc8d2d5ac","reason":"Same source body in authored semantic page"},{"oldId":"b-4a4e17fcc23248e5e929a0fb","targetId":"b-4a4e17fcc23248e5e929a0fb","page":"roi-bilinear-point","operation":"move","beforeSHA256":"53a805f92a552538c0667b62945f85ee07625d6afae225bf981b2bd38b85b9d5","afterSHA256":"53a805f92a552538c0667b62945f85ee07625d6afae225bf981b2bd38b85b9d5","reason":"Same source body in authored semantic page"},{"oldId":"b-0f722fce835c17104dad4ea8","targetId":"b-0f722fce835c17104dad4ea8","page":"roi-bilinear-point","operation":"move","beforeSHA256":"44cb2566bcc3ce1a1f97783df0399795af8b4c48a70b3d2c7deb23cd4161030a","afterSHA256":"44cb2566bcc3ce1a1f97783df0399795af8b4c48a70b3d2c7deb23cd4161030a","reason":"Same source body in authored semantic page"},{"oldId":"b-50869b8209f7c3a2affad287","targetId":"b-50869b8209f7c3a2affad287","page":"roi-bilinear-point","operation":"move","beforeSHA256":"e15d7ace9925a47d75c2a3d2a65f7e3ee041f605766c463595ccb135a878717e","afterSHA256":"e15d7ace9925a47d75c2a3d2a65f7e3ee041f605766c463595ccb135a878717e","reason":"Same source body in authored semantic page"},{"oldId":"b-37046dff81f5652565b100a8","targetId":"b-37046dff81f5652565b100a8","page":"roi-bilinear-point","operation":"move","beforeSHA256":"9136cb8337acfd32af84b2036c0b38bfe5b2063884701804233d805b453716ee","afterSHA256":"9136cb8337acfd32af84b2036c0b38bfe5b2063884701804233d805b453716ee","reason":"Same source body in authored semantic page"},{"oldId":"b-a7e47a2f8953a9b8b04d4395","targetId":"b-a7e47a2f8953a9b8b04d4395","page":"roi-bilinear-point","operation":"move","beforeSHA256":"fbe5b44bee9d282ff590837265375a033f6d90e578acaf2976fd5faba600088a","afterSHA256":"fbe5b44bee9d282ff590837265375a033f6d90e578acaf2976fd5faba600088a","reason":"Same source body in authored semantic page"},{"oldId":"b-ae251a1c1958aa7c31d97413","targetId":"b-ae251a1c1958aa7c31d97413","page":"roi-bilinear-point","operation":"move","beforeSHA256":"32fbfe064486528d43cc6d4f7b59a9b5fc564e721f6c8bac0c170a9a657ddefd","afterSHA256":"32fbfe064486528d43cc6d4f7b59a9b5fc564e721f6c8bac0c170a9a657ddefd","reason":"Same source body in authored semantic page"},{"oldId":"b-2703fe67bcda6be650f61502","targetId":"b-2703fe67bcda6be650f61502","page":"roi-bilinear-point","operation":"move","beforeSHA256":"2b487a3bbdaba8ad00eb8f635e307aa81cb75993a9809ce739ad5343d8e26506","afterSHA256":"2b487a3bbdaba8ad00eb8f635e307aa81cb75993a9809ce739ad5343d8e26506","reason":"Same source body in authored semantic page"},{"oldId":"b-8f893b765a185ebf0532709f","targetId":"b-8f893b765a185ebf0532709f","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"fa5b38417fd29d01b21181eea88b248bfc687c29de8e333d6b03c2b3879a18f1","afterSHA256":"fa5b38417fd29d01b21181eea88b248bfc687c29de8e333d6b03c2b3879a18f1","reason":"Same source body in authored semantic page"},{"oldId":"b-dcea430195bcff237fac9ba3","targetId":"b-dcea430195bcff237fac9ba3","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"3bb8d279d8595e2246936d624e3b4edea6ceca91fece02cd289fada770a219f4","afterSHA256":"3bb8d279d8595e2246936d624e3b4edea6ceca91fece02cd289fada770a219f4","reason":"Same source body in authored semantic page"},{"oldId":"b-32aadf0a42371fdf61bb5d7a","targetId":"b-32aadf0a42371fdf61bb5d7a","page":"roi-alignment-paper-comparison","operation":"rewrite","beforeSHA256":"0bfedb1ed97588d37565883224ab357ea9af5995f6404d1f3d1042d261fbdfd8","afterSHA256":"f59df6ce113db0faf2717e5b8440d85ef1f069b2e8b327b430459828cfd41119","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-261bf84e44cf6a9a95c8d07f","targetId":"b-261bf84e44cf6a9a95c8d07f","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"4cdba8cde1b8262a042dd6aa8cda6abe7fd5a4e8cb6f224f5bb95e0f3611cd8d","afterSHA256":"4cdba8cde1b8262a042dd6aa8cda6abe7fd5a4e8cb6f224f5bb95e0f3611cd8d","reason":"Same source body in authored semantic page"},{"oldId":"b-4b3d9703ff05b9c993ff3d78","targetId":"b-4b3d9703ff05b9c993ff3d78","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"a75c59c916a80252869b500277c7120d64fcb5056b16b7893076a6f49e7c3632","afterSHA256":"a75c59c916a80252869b500277c7120d64fcb5056b16b7893076a6f49e7c3632","reason":"Same source body in authored semantic page"},{"oldId":"b-fe0ac35c72cf070e7641646c","targetId":"b-fe0ac35c72cf070e7641646c","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"50177d63e411d3e58553d7d266c6c7aa4db901ec7404aeb2df04d4279b19a9b5","afterSHA256":"50177d63e411d3e58553d7d266c6c7aa4db901ec7404aeb2df04d4279b19a9b5","reason":"Same source body in authored semantic page"},{"oldId":"b-5c7c9a0efac01c688845e5b2","targetId":"b-5c7c9a0efac01c688845e5b2","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"f16be0424762a44344338696f06ef266c4571d15367ae2cbbd28fac98ac7e9cb","afterSHA256":"f16be0424762a44344338696f06ef266c4571d15367ae2cbbd28fac98ac7e9cb","reason":"Same source body in authored semantic page"},{"oldId":"b-d3b55ac71e41c82e5d0fb334","targetId":"b-d3b55ac71e41c82e5d0fb334","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"b25685f04cd1b885f3a5999e6a912460c7424021cdc5b2190584242086a82681","afterSHA256":"b25685f04cd1b885f3a5999e6a912460c7424021cdc5b2190584242086a82681","reason":"Same source body in authored semantic page"},{"oldId":"b-63910ccd05709e66c779bfd0","targetId":"b-63910ccd05709e66c779bfd0","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"870dba80fb13cf1609c4afc28bfc4c91f57748b1b8815484a0fb60fa8bb3c81f","afterSHA256":"870dba80fb13cf1609c4afc28bfc4c91f57748b1b8815484a0fb60fa8bb3c81f","reason":"Same source body in authored semantic page"},{"oldId":"b-2c84eb115ee2bc3925c0898e","targetId":"b-2c84eb115ee2bc3925c0898e","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"6955e045c8fbdb378937ad8d5626fbdfd0ccf783714411777d456afe09fc53c8","afterSHA256":"6955e045c8fbdb378937ad8d5626fbdfd0ccf783714411777d456afe09fc53c8","reason":"Same source body in authored semantic page"},{"oldId":"b-6c5f8b29ebced76cd14c5edd","targetId":"b-6c5f8b29ebced76cd14c5edd","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","afterSHA256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","reason":"Same source body in authored semantic page"},{"oldId":"b-1455bc6af5357715ef0f31b8","targetId":"b-1455bc6af5357715ef0f31b8","page":"roi-alignment-paper-comparison","operation":"move","beforeSHA256":"b8b69250624fd8c15e6f5db8690409848aaec027fc3b89222c6665c3044c9586","afterSHA256":"b8b69250624fd8c15e6f5db8690409848aaec027fc3b89222c6665c3044c9586","reason":"Same source body in authored semantic page"},{"oldId":"roi-bilinear-point-title","targetId":"b-ac518534f85a6a4767963a75","operation":"retain-source-identity"},{"oldId":"roi-alignment-paper-comparison-title","targetId":"b-0211a6ef4c461d2773cb2008","operation":"retain-source-identity"},{"oldId":"roi-alignment-paper-comparison-bridge","targetId":"b-e9dfc064c0b523bf2c7f8db8","operation":"retain-source-identity"}],"blocks":[{"id":"b-ac518534f85a6a4767963a75","type":"h2","scope":"roi-bilinear-point","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-ac518534f85a6a4767963a75","content":"## 从四个邻点实际算出 2.5","sha256":"248b6ca7f284b7a6c9a1a75212c66f4f6d32bce74b4774811646b8c462874ff2","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-edbbcdacf13cf39cf27521ce","prerequisites":[{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-edbbcdacf13cf39cf27521ce","type":"h2","scope":"explanation","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-edbbcdacf13cf39cf27521ce","content":"## 解释、算例与证据","sha256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-ac518534f85a6a4767963a75","nextBlock":"b-7e195c5cb5b0d5cd9a75d17a","prerequisites":[{"id":"b-ac518534f85a6a4767963a75","url":"#b-ac518534f85a6a4767963a75","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-7e195c5cb5b0d5cd9a75d17a","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-7e195c5cb5b0d5cd9a75d17a","content":"# P42 · 连续位置的数值，怎样从四个邻点得到？","sha256":"d78b5a62078cd3e28e73e49220efe697356bcc28e7e4b4ea0ec29b285c8f1bcb","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-edbbcdacf13cf39cf27521ce","nextBlock":"b-f7b25c3229af6ac083bd9bf2","prerequisites":[{"id":"b-edbbcdacf13cf39cf27521ce","url":"#b-edbbcdacf13cf39cf27521ce","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-f7b25c3229af6ac083bd9bf2","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-f7b25c3229af6ac083bd9bf2","content":"对 0、2、4、6 四邻值，按横向 1/4、纵向 1/2 算出 2.5。两步插值与四项加权是同一运算。读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。","sha256":"185d6570689468f3c523e1d63cc5d2dd507c9b0ff60f2af36bd85b2834d7978e","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-7e195c5cb5b0d5cd9a75d17a","nextBlock":"b-bd1174ff1f8c27a23778f2a5","prerequisites":[{"id":"b-7e195c5cb5b0d5cd9a75d17a","url":"#b-7e195c5cb5b0d5cd9a75d17a","role":"section-title"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-bd1174ff1f8c27a23778f2a5","type":"figure","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-bd1174ff1f8c27a23778f2a5","content":"图内标签与数值：Lecture 03 课堂图解 P42；F = [[0,2],[4,6]]；x 向右，y 向下；0；2；4；6；(.25, .5)；x；y；上行：¾×0 + ¼×2 = 0.5；下行：¾×4 + ¼×6 = 4.5；再取两行中间值；½×0.5 + ½×4.5 = 2.5；四邻点权重：⅜，⅛，⅜，⅛；权重和 = 1；结果 = 2.5；一个连续采样点的双线性算例；完整 RoIAlign 还要组织分格、多个采样点与汇总。\n\nF=[[0,2],[4,6]] 的四邻点与 (.25,.5) 采样点，横向两次插值和纵向一次插值连接到 2.5。\n\n- F = [[0,2],[4,6]]；x 向右，y 向下\n- 0\n- 2\n- 4\n- 6\n- (.25, .5)\n- x\n- y\n- 上行：¾×0 + ¼×2 = 0.5\n- 下行：¾×4 + ¼×6 = 4.5\n- 再取两行中间值\n- ½×0.5 + ½×4.5 = 2.5\n- 四邻点权重：⅜，⅛，⅜，⅛\n- 权重和 = 1；结果 = 2.5\n- 一个连续采样点的双线性算例；完整 RoIAlign 还要组织分格、多个采样点与汇总。F=[[0,2],[4,6]] 的四邻点与 (.25,.5) 采样点，横向两次插值和纵向一次插值连接到 2.5。 [查看对应图解状态](/#/l3-r2-p42/1)[查看完整图解](/course/figures/l3-r2-p42-1.html)","sha256":"7cfd12e8a6fb39b6b584051658e0572333ea554fe1d4b1890a3eac4903d1e548","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"figure":{"caption":"F=[[0,2],[4,6]] 的四邻点与 (.25,.5) 采样点，横向两次插值和纵向一次插值连接到 2.5。 查看对应图解状态","labels":["F = [[0,2],[4,6]]；x 向右，y 向下","0","2","4","6","(.25, .5)","x","y","上行：¾×0 + ¼×2 = 0.5","下行：¾×4 + ¼×6 = 4.5","再取两行中间值","½×0.5 + ½×4.5 = 2.5","四邻点权重：⅜，⅛，⅜，⅛","权重和 = 1；结果 = 2.5","一个连续采样点的双线性算例；完整 RoIAlign 还要组织分格、多个采样点与汇总。"],"description":"F=[[0,2],[4,6]] 的四邻点与 (.25,.5) 采样点，横向两次插值和纵向一次插值连接到 2.5。F = [[0,2],[4,6]]；x 向右，y 向下0246(.25, .5)xy上行：¾×0 + ¼×2 = 0.5下行：¾×4 + ¼×6 = 4.5再取两行中间值½×0.5 + ½×4.5 = 2.5四邻点权重：⅜，⅛，⅜，⅛权重和 = 1；结果 = 2.5一个连续采样点的双线性算例；完整 RoIAlign 还要组织分格、多个采样点与汇总。","evidenceIdentity":"F=[[0,2],[4,6]] 的四邻点与 (.25,.5) 采样点，横向两次插值和纵向一次插值连接到 2.5。 查看对应图解状态","images":[]},"previousBlock":"b-f7b25c3229af6ac083bd9bf2","nextBlock":"b-5934a96ea42b8a8d7b111646","prerequisites":[{"id":"b-7e195c5cb5b0d5cd9a75d17a","url":"#b-7e195c5cb5b0d5cd9a75d17a","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-5934a96ea42b8a8d7b111646","type":"h2","scope":"narrative","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-5934a96ea42b8a8d7b111646","content":"## 课堂讲述","sha256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bd1174ff1f8c27a23778f2a5","nextBlock":"b-d67608f74d980c651b1ca8c3","prerequisites":[{"id":"b-7e195c5cb5b0d5cd9a75d17a","url":"#b-7e195c5cb5b0d5cd9a75d17a","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-d67608f74d980c651b1ca8c3","type":"p","scope":"narrative","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-d67608f74d980c651b1ca8c3","content":"这四个相邻位置的值分别是零、二、四、六。我们要读的位置在横向四分之一、纵向一半处，不正好落在其中任何一个整数点上。\n先在上面一行按横向位置插值，得到零点五；下面一行同样插值得到四点五；再在两行的中间取值，得到二点五。也可以一次写成四个邻点的加权和，结果相同。\n这段计算不是让你背四个权重，而是看清连续采样没有创造一张新图：它在已有特征之间，按指定位置构造读出。RoIAlign 会在区域的分格中组织这类采样与聚合。保持坐标对应，对需要细轮廓的任务就特别重要。","sha256":"dc4ea7cd3e6bb02ae42889df64f7cfced896437d94ce4b1c6535f820400fe2d7","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-5934a96ea42b8a8d7b111646","nextBlock":"b-e40c5d52d8b8e006e7839424","prerequisites":[{"id":"b-5934a96ea42b8a8d7b111646","url":"#b-5934a96ea42b8a8d7b111646","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-e40c5d52d8b8e006e7839424","type":"h3","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-e40c5d52d8b8e006e7839424","content":"### 四个邻点如何读出 2.5","sha256":"c8b573b98a7fa194bf937b9a406747425138e4b74e7ca487215523d704aff87c","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[],"previousBlock":"b-d67608f74d980c651b1ca8c3","nextBlock":"b-90f6c096efe9ae5f53f9e9dd","prerequisites":[{"id":"b-5934a96ea42b8a8d7b111646","url":"#b-5934a96ea42b8a8d7b111646","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-90f6c096efe9ae5f53f9e9dd","url":"#b-90f6c096efe9ae5f53f9e9dd","relation":"same-reasoning"},{"id":"b-44274492d8f6e8ca95cfb223","url":"#b-44274492d8f6e8ca95cfb223","relation":"same-reasoning"},{"id":"b-fca28abad0df2325f0762e0b","url":"#b-fca28abad0df2325f0762e0b","relation":"same-reasoning"},{"id":"b-fac45115c8ce2736a005838c","url":"#b-fac45115c8ce2736a005838c","relation":"same-reasoning"},{"id":"b-b6db1d489d32ff848bd71bc8","url":"#b-b6db1d489d32ff848bd71bc8","relation":"same-reasoning"},{"id":"b-4a4e17fcc23248e5e929a0fb","url":"#b-4a4e17fcc23248e5e929a0fb","relation":"same-reasoning"}]},{"id":"b-90f6c096efe9ae5f53f9e9dd","type":"p","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-90f6c096efe9ae5f53f9e9dd","content":"把左上、右上、左下、右下值依次记为 0、2、4、6。要读取的点相对左上角横向走了 α=1/4、纵向走了 β=1/2。上排插值为 $(1-α)0+α2=.5$，下排为 $(1-α)4+α6=4.5$，再纵向插值得 $(1-β).5+β4.5=2.5$。","sha256":"9068ee93532c027ce4a75a59639e005de9272ab4f6cedc3e1e4e0f6ab8dad0e6","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[{"latex":"(1-α)0+α2=.5","definitionContext":"把左上、右上、左下、右下值依次记为 0、2、4、6。要读取的点相对左上角横向走了 α=1/4、纵向走了 β=1/2。上排插值为 $(1-α)0+α2=.5$，下排为 $(1-α)4+α6=4.5$，再纵向插值得 $(1-β).5+β4.5=2.5$。\n也可直接写四点加权和：\n$\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n$\n对应权重为 3/8、1/8、3/8、1/8，总和为 1。代入得 $0+2/8+12/8+6/8=2.5$。离左边更近，所以两项左邻的总权重是 3/4；纵向正好一半，上下各占 1/2。这些比例直接来自几何，而不是学出来的四个自由参数。\nRoIAlign 在每个 bin 内组织多个这种连续采样点，再按实现聚合。它用原有特征构造位置相关读数，没有查到原图中的隐藏真值。改变特征图分辨率、RoI 或采样数量时，应重新计算位置；不能沿用旧邻点却声称只是换了 stride。\n读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。"},{"latex":"(1-α)4+α6=4.5","definitionContext":"把左上、右上、左下、右下值依次记为 0、2、4、6。要读取的点相对左上角横向走了 α=1/4、纵向走了 β=1/2。上排插值为 $(1-α)0+α2=.5$，下排为 $(1-α)4+α6=4.5$，再纵向插值得 $(1-β).5+β4.5=2.5$。\n也可直接写四点加权和：\n$\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n$\n对应权重为 3/8、1/8、3/8、1/8，总和为 1。代入得 $0+2/8+12/8+6/8=2.5$。离左边更近，所以两项左邻的总权重是 3/4；纵向正好一半，上下各占 1/2。这些比例直接来自几何，而不是学出来的四个自由参数。\nRoIAlign 在每个 bin 内组织多个这种连续采样点，再按实现聚合。它用原有特征构造位置相关读数，没有查到原图中的隐藏真值。改变特征图分辨率、RoI 或采样数量时，应重新计算位置；不能沿用旧邻点却声称只是换了 stride。\n读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。"},{"latex":"(1-β).5+β4.5=2.5","definitionContext":"把左上、右上、左下、右下值依次记为 0、2、4、6。要读取的点相对左上角横向走了 α=1/4、纵向走了 β=1/2。上排插值为 $(1-α)0+α2=.5$，下排为 $(1-α)4+α6=4.5$，再纵向插值得 $(1-β).5+β4.5=2.5$。\n也可直接写四点加权和：\n$\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n$\n对应权重为 3/8、1/8、3/8、1/8，总和为 1。代入得 $0+2/8+12/8+6/8=2.5$。离左边更近，所以两项左邻的总权重是 3/4；纵向正好一半，上下各占 1/2。这些比例直接来自几何，而不是学出来的四个自由参数。\nRoIAlign 在每个 bin 内组织多个这种连续采样点，再按实现聚合。它用原有特征构造位置相关读数，没有查到原图中的隐藏真值。改变特征图分辨率、RoI 或采样数量时，应重新计算位置；不能沿用旧邻点却声称只是换了 stride。\n读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。"}],"previousBlock":"b-e40c5d52d8b8e006e7839424","nextBlock":"b-44274492d8f6e8ca95cfb223","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","relation":"same-reasoning"},{"id":"b-44274492d8f6e8ca95cfb223","url":"#b-44274492d8f6e8ca95cfb223","relation":"same-reasoning"},{"id":"b-fca28abad0df2325f0762e0b","url":"#b-fca28abad0df2325f0762e0b","relation":"same-reasoning"},{"id":"b-fac45115c8ce2736a005838c","url":"#b-fac45115c8ce2736a005838c","relation":"same-reasoning"},{"id":"b-b6db1d489d32ff848bd71bc8","url":"#b-b6db1d489d32ff848bd71bc8","relation":"same-reasoning"},{"id":"b-4a4e17fcc23248e5e929a0fb","url":"#b-4a4e17fcc23248e5e929a0fb","relation":"same-reasoning"}]},{"id":"b-44274492d8f6e8ca95cfb223","type":"p","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-44274492d8f6e8ca95cfb223","content":"也可直接写四点加权和：","sha256":"6098132f38143db98713510c6df60aa2a55dfc48b17b0637c5e2592782dbb6c0","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[],"previousBlock":"b-90f6c096efe9ae5f53f9e9dd","nextBlock":"b-fca28abad0df2325f0762e0b","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","relation":"same-reasoning"},{"id":"b-90f6c096efe9ae5f53f9e9dd","url":"#b-90f6c096efe9ae5f53f9e9dd","relation":"same-reasoning"},{"id":"b-fca28abad0df2325f0762e0b","url":"#b-fca28abad0df2325f0762e0b","relation":"same-reasoning"},{"id":"b-fac45115c8ce2736a005838c","url":"#b-fac45115c8ce2736a005838c","relation":"same-reasoning"},{"id":"b-b6db1d489d32ff848bd71bc8","url":"#b-b6db1d489d32ff848bd71bc8","relation":"same-reasoning"},{"id":"b-4a4e17fcc23248e5e929a0fb","url":"#b-4a4e17fcc23248e5e929a0fb","relation":"same-reasoning"}]},{"id":"b-fca28abad0df2325f0762e0b","type":"p","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-fca28abad0df2325f0762e0b","content":"$\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n$","sha256":"e08caebafdde342be57aa6b66bdec78b97e37eaf0745834abac6b5dabd48f342","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[{"latex":"\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n","definitionContext":"把左上、右上、左下、右下值依次记为 0、2、4、6。要读取的点相对左上角横向走了 α=1/4、纵向走了 β=1/2。上排插值为 $(1-α)0+α2=.5$，下排为 $(1-α)4+α6=4.5$，再纵向插值得 $(1-β).5+β4.5=2.5$。\n也可直接写四点加权和：\n$\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n$\n对应权重为 3/8、1/8、3/8、1/8，总和为 1。代入得 $0+2/8+12/8+6/8=2.5$。离左边更近，所以两项左邻的总权重是 3/4；纵向正好一半，上下各占 1/2。这些比例直接来自几何，而不是学出来的四个自由参数。\nRoIAlign 在每个 bin 内组织多个这种连续采样点，再按实现聚合。它用原有特征构造位置相关读数，没有查到原图中的隐藏真值。改变特征图分辨率、RoI 或采样数量时，应重新计算位置；不能沿用旧邻点却声称只是换了 stride。\n读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。"}],"previousBlock":"b-44274492d8f6e8ca95cfb223","nextBlock":"b-fac45115c8ce2736a005838c","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","relation":"same-reasoning"},{"id":"b-90f6c096efe9ae5f53f9e9dd","url":"#b-90f6c096efe9ae5f53f9e9dd","relation":"same-reasoning"},{"id":"b-44274492d8f6e8ca95cfb223","url":"#b-44274492d8f6e8ca95cfb223","relation":"same-reasoning"},{"id":"b-fac45115c8ce2736a005838c","url":"#b-fac45115c8ce2736a005838c","relation":"same-reasoning"},{"id":"b-b6db1d489d32ff848bd71bc8","url":"#b-b6db1d489d32ff848bd71bc8","relation":"same-reasoning"},{"id":"b-4a4e17fcc23248e5e929a0fb","url":"#b-4a4e17fcc23248e5e929a0fb","relation":"same-reasoning"}]},{"id":"b-fac45115c8ce2736a005838c","type":"p","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-fac45115c8ce2736a005838c","content":"对应权重为 3/8、1/8、3/8、1/8，总和为 1。代入得 $0+2/8+12/8+6/8=2.5$。离左边更近，所以两项左邻的总权重是 3/4；纵向正好一半，上下各占 1/2。这些比例直接来自几何，而不是学出来的四个自由参数。","sha256":"7cb60f9af73cf3da129cce8fba643e88e045cb9f8723c215c7a46c9c821c4b96","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[{"latex":"0+2/8+12/8+6/8=2.5","definitionContext":"把左上、右上、左下、右下值依次记为 0、2、4、6。要读取的点相对左上角横向走了 α=1/4、纵向走了 β=1/2。上排插值为 $(1-α)0+α2=.5$，下排为 $(1-α)4+α6=4.5$，再纵向插值得 $(1-β).5+β4.5=2.5$。\n也可直接写四点加权和：\n$\nv=(1-α)(1-β)F_{00}+α(1-β)F_{10}+(1-α)βF_{01}+αβF_{11}.\n$\n对应权重为 3/8、1/8、3/8、1/8，总和为 1。代入得 $0+2/8+12/8+6/8=2.5$。离左边更近，所以两项左邻的总权重是 3/4；纵向正好一半，上下各占 1/2。这些比例直接来自几何，而不是学出来的四个自由参数。\nRoIAlign 在每个 bin 内组织多个这种连续采样点，再按实现聚合。它用原有特征构造位置相关读数，没有查到原图中的隐藏真值。改变特征图分辨率、RoI 或采样数量时，应重新计算位置；不能沿用旧邻点却声称只是换了 stride。\n读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。"}],"previousBlock":"b-fca28abad0df2325f0762e0b","nextBlock":"b-b6db1d489d32ff848bd71bc8","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","relation":"same-reasoning"},{"id":"b-90f6c096efe9ae5f53f9e9dd","url":"#b-90f6c096efe9ae5f53f9e9dd","relation":"same-reasoning"},{"id":"b-44274492d8f6e8ca95cfb223","url":"#b-44274492d8f6e8ca95cfb223","relation":"same-reasoning"},{"id":"b-fca28abad0df2325f0762e0b","url":"#b-fca28abad0df2325f0762e0b","relation":"same-reasoning"},{"id":"b-b6db1d489d32ff848bd71bc8","url":"#b-b6db1d489d32ff848bd71bc8","relation":"same-reasoning"},{"id":"b-4a4e17fcc23248e5e929a0fb","url":"#b-4a4e17fcc23248e5e929a0fb","relation":"same-reasoning"}]},{"id":"b-b6db1d489d32ff848bd71bc8","type":"p","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-b6db1d489d32ff848bd71bc8","content":"RoIAlign 在每个 bin 内组织多个这种连续采样点，再按实现聚合。它用原有特征构造位置相关读数，没有查到原图中的隐藏真值。改变特征图分辨率、RoI 或采样数量时，应重新计算位置；不能沿用旧邻点却声称只是换了 stride。","sha256":"50faa1907bce52a0c1b9670e4eda0dd8a6e4a1a4f4685dd9f1bc498dc8d2d5ac","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[],"previousBlock":"b-fac45115c8ce2736a005838c","nextBlock":"b-4a4e17fcc23248e5e929a0fb","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","relation":"same-reasoning"},{"id":"b-90f6c096efe9ae5f53f9e9dd","url":"#b-90f6c096efe9ae5f53f9e9dd","relation":"same-reasoning"},{"id":"b-44274492d8f6e8ca95cfb223","url":"#b-44274492d8f6e8ca95cfb223","relation":"same-reasoning"},{"id":"b-fca28abad0df2325f0762e0b","url":"#b-fca28abad0df2325f0762e0b","relation":"same-reasoning"},{"id":"b-fac45115c8ce2736a005838c","url":"#b-fac45115c8ce2736a005838c","relation":"same-reasoning"},{"id":"b-4a4e17fcc23248e5e929a0fb","url":"#b-4a4e17fcc23248e5e929a0fb","relation":"same-reasoning"}]},{"id":"b-4a4e17fcc23248e5e929a0fb","type":"p","scope":"bilinear-four-neighbors","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-4a4e17fcc23248e5e929a0fb","content":"读完算例后，接着看[原论文的对照：对齐改善了哪些指标](/course/blocks/roi-align-paper-evidence.html)，区分“使用双线性插值”和“保持坐标对齐”的作用。","sha256":"53a805f92a552538c0667b62945f85ee07625d6afae225bf981b2bd38b85b9d5","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"四个邻点如何读出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":"bilinear-four-neighbors","formulas":[],"previousBlock":"b-b6db1d489d32ff848bd71bc8","nextBlock":"b-d63cf8f37a5a7266f6d5301b","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"},{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","relation":"same-reasoning"},{"id":"b-90f6c096efe9ae5f53f9e9dd","url":"#b-90f6c096efe9ae5f53f9e9dd","relation":"same-reasoning"},{"id":"b-44274492d8f6e8ca95cfb223","url":"#b-44274492d8f6e8ca95cfb223","relation":"same-reasoning"},{"id":"b-fca28abad0df2325f0762e0b","url":"#b-fca28abad0df2325f0762e0b","relation":"same-reasoning"},{"id":"b-fac45115c8ce2736a005838c","url":"#b-fac45115c8ce2736a005838c","relation":"same-reasoning"},{"id":"b-b6db1d489d32ff848bd71bc8","url":"#b-b6db1d489d32ff848bd71bc8","relation":"same-reasoning"}]},{"id":"b-d63cf8f37a5a7266f6d5301b","type":"h4","scope":"roi-bilinear-point","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-d63cf8f37a5a7266f6d5301b","content":"#### 图示条件与公式约定","sha256":"ef7f915c1ae63ed67bd23fecf050249273ba0efa8965d2c8d1c1c6b2d3178122","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4a4e17fcc23248e5e929a0fb","nextBlock":"b-0f722fce835c17104dad4ea8","prerequisites":[{"id":"b-e40c5d52d8b8e006e7839424","url":"#b-e40c5d52d8b8e006e7839424","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-0f722fce835c17104dad4ea8","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-0f722fce835c17104dad4ea8","content":"四点为左上0、右上2、左下4、右下6，x=.25,y=.5，权重依次3/8、1/8、3/8、1/8，值2.5。它是单点插值，不是完整 RoIAlign。原论文每 RoI bin 内4个规则采样点后 max/average 聚合；图43进一步连接局部区域目标。","sha256":"44cb2566bcc3ce1a1f97783df0399795af8b4c48a70b3d2c7deb23cd4161030a","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-d63cf8f37a5a7266f6d5301b","nextBlock":"b-cbdfaebbe1c1f174adb7f506","prerequisites":[{"id":"b-d63cf8f37a5a7266f6d5301b","url":"#b-d63cf8f37a5a7266f6d5301b","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-cbdfaebbe1c1f174adb7f506","type":"h4","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-cbdfaebbe1c1f174adb7f506","content":"#### 这条线索的展开与后续阅读","sha256":"48b8229f7559b36ed4d5628416e3991e5c73293fbce43374db67386c8736f3bc","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-0f722fce835c17104dad4ea8","nextBlock":"b-50869b8209f7c3a2affad287","prerequisites":[{"id":"b-d63cf8f37a5a7266f6d5301b","url":"#b-d63cf8f37a5a7266f6d5301b","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-50869b8209f7c3a2affad287","type":"ul","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-50869b8209f7c3a2affad287","content":"- [保留连续位置，从邻居读取特征](/supplement.html?return=l3-r2-p42/0#/l3-roi-align/0) 本页说明\n- [训练对照说明：对齐值得修复](/supplement.html?return=l3-r2-p42/0#/l3-roi-evidence/0) 本页说明\n- [RoIAlign 修复读取错位，不修复表示丢失｜核心改动怎样工作](/supplement.html?return=l3-r2-p42/0#/l3-roi-align-chain-mechanism/0) 本页说明\n- [RoIAlign 修复读取错位，不修复表示丢失｜一起算一个完整例子](/supplement.html?return=l3-r2-p42/0#/l3-roi-align-chain-example/0) 本页说明","sha256":"e15d7ace9925a47d75c2a3d2a65f7e3ee041f605766c463595ccb135a878717e","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-cbdfaebbe1c1f174adb7f506","nextBlock":"b-37046dff81f5652565b100a8","prerequisites":[{"id":"b-cbdfaebbe1c1f174adb7f506","url":"#b-cbdfaebbe1c1f174adb7f506","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-37046dff81f5652565b100a8","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-37046dff81f5652565b100a8","content":"- [保留连续位置，从邻居读取特征](/supplement.html?return=l3-r2-p42/0#/l3-roi-align/0) 本页说明","sha256":"9136cb8337acfd32af84b2036c0b38bfe5b2063884701804233d805b453716ee","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-50869b8209f7c3a2affad287","nextBlock":"b-a7e47a2f8953a9b8b04d4395","prerequisites":[{"id":"b-cbdfaebbe1c1f174adb7f506","url":"#b-cbdfaebbe1c1f174adb7f506","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-a7e47a2f8953a9b8b04d4395","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-a7e47a2f8953a9b8b04d4395","content":"- [训练对照说明：对齐值得修复](/supplement.html?return=l3-r2-p42/0#/l3-roi-evidence/0) 本页说明","sha256":"fbe5b44bee9d282ff590837265375a033f6d90e578acaf2976fd5faba600088a","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-37046dff81f5652565b100a8","nextBlock":"b-ae251a1c1958aa7c31d97413","prerequisites":[{"id":"b-cbdfaebbe1c1f174adb7f506","url":"#b-cbdfaebbe1c1f174adb7f506","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-ae251a1c1958aa7c31d97413","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-ae251a1c1958aa7c31d97413","content":"- [RoIAlign 修复读取错位，不修复表示丢失｜核心改动怎样工作](/supplement.html?return=l3-r2-p42/0#/l3-roi-align-chain-mechanism/0) 本页说明","sha256":"32fbfe064486528d43cc6d4f7b59a9b5fc564e721f6c8bac0c170a9a657ddefd","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-a7e47a2f8953a9b8b04d4395","nextBlock":"b-2703fe67bcda6be650f61502","prerequisites":[{"id":"b-cbdfaebbe1c1f174adb7f506","url":"#b-cbdfaebbe1c1f174adb7f506","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-2703fe67bcda6be650f61502","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-2703fe67bcda6be650f61502","content":"- [RoIAlign 修复读取错位，不修复表示丢失｜一起算一个完整例子](/supplement.html?return=l3-r2-p42/0#/l3-roi-align-chain-example/0) 本页说明","sha256":"2b487a3bbdaba8ad00eb8f635e307aa81cb75993a9809ce739ad5343d8e26506","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-bilinear-point","title":"从四个邻点实际算出 2.5","number":1},"sectionTitle":"从四个邻点实际算出 2.5","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-ae251a1c1958aa7c31d97413","nextBlock":null,"prerequisites":[{"id":"b-cbdfaebbe1c1f174adb7f506","url":"#b-cbdfaebbe1c1f174adb7f506","role":"section-title"},{"id":"b-f7b25c3229af6ac083bd9bf2","url":"#b-f7b25c3229af6ac083bd9bf2","role":"problem-context"}],"relatedBlocks":[{"id":"b-bd1174ff1f8c27a23778f2a5","url":"#b-bd1174ff1f8c27a23778f2a5","relation":"figure-and-explanation"}]},{"id":"b-0211a6ef4c461d2773cb2008","type":"h2","scope":"roi-alignment-paper-comparison","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-0211a6ef4c461d2773cb2008","content":"## 在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","sha256":"202ae2113e1385542e7a4adee39eb2a48079a3e12f953d3ac42ddc0ba56d9956","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-e9dfc064c0b523bf2c7f8db8","prerequisites":[{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-e9dfc064c0b523bf2c7f8db8","type":"p","scope":"roi-alignment-paper-comparison","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-e9dfc064c0b523bf2c7f8db8","content":"计算说明组件怎样工作；论文同条件对照再检验它是否改变任务表现。","sha256":"345b125d230b11e5dfea4efd8909fa8749e519b405ef20f4d9b6f94b94c12146","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-0211a6ef4c461d2773cb2008","nextBlock":"b-8f893b765a185ebf0532709f","prerequisites":[{"id":"b-0211a6ef4c461d2773cb2008","url":"#b-0211a6ef4c461d2773cb2008","role":"section-title"}],"relatedBlocks":[]},{"id":"b-8f893b765a185ebf0532709f","type":"h3","scope":"roi-align-paper-evidence","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-8f893b765a185ebf0532709f","content":"### 原论文的对照：对齐改善了哪些指标","sha256":"fa5b38417fd29d01b21181eea88b248bfc687c29de8e333d6b03c2b3879a18f1","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"原论文的对照：对齐改善了哪些指标","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":"roi-align-paper-evidence","formulas":[],"previousBlock":"b-e9dfc064c0b523bf2c7f8db8","nextBlock":"b-dcea430195bcff237fac9ba3","prerequisites":[{"id":"b-0211a6ef4c461d2773cb2008","url":"#b-0211a6ef4c461d2773cb2008","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[{"id":"b-dcea430195bcff237fac9ba3","url":"#b-dcea430195bcff237fac9ba3","relation":"same-reasoning"},{"id":"b-32aadf0a42371fdf61bb5d7a","url":"#b-32aadf0a42371fdf61bb5d7a","relation":"same-reasoning"},{"id":"b-261bf84e44cf6a9a95c8d07f","url":"#b-261bf84e44cf6a9a95c8d07f","relation":"same-reasoning"},{"id":"b-4b3d9703ff05b9c993ff3d78","url":"#b-4b3d9703ff05b9c993ff3d78","relation":"same-reasoning"},{"id":"b-fe0ac35c72cf070e7641646c","url":"#b-fe0ac35c72cf070e7641646c","relation":"same-reasoning"}]},{"id":"b-dcea430195bcff237fac9ba3","type":"p","scope":"roi-align-paper-evidence","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-dcea430195bcff237fac9ba3","content":"Mask R-CNN v3 的 Table 2 使用 COCO `trainval35k` 训练、`minival` 测试；表中未另说明时报告 mask AP。以下固定 ResNet-50-C4、stride 16，并选同为 max 聚合的行：","sha256":"3bb8d279d8595e2246936d624e3b4edea6ceca91fece02cd289fada770a219f4","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"原论文的对照：对齐改善了哪些指标","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":"roi-align-paper-evidence","formulas":[],"previousBlock":"b-8f893b765a185ebf0532709f","nextBlock":"b-32aadf0a42371fdf61bb5d7a","prerequisites":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","relation":"same-reasoning"},{"id":"b-32aadf0a42371fdf61bb5d7a","url":"#b-32aadf0a42371fdf61bb5d7a","relation":"same-reasoning"},{"id":"b-261bf84e44cf6a9a95c8d07f","url":"#b-261bf84e44cf6a9a95c8d07f","relation":"same-reasoning"},{"id":"b-4b3d9703ff05b9c993ff3d78","url":"#b-4b3d9703ff05b9c993ff3d78","relation":"same-reasoning"},{"id":"b-fe0ac35c72cf070e7641646c","url":"#b-fe0ac35c72cf070e7641646c","relation":"same-reasoning"}]},{"id":"b-32aadf0a42371fdf61bb5d7a","type":"table","scope":"roi-align-paper-evidence","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-32aadf0a42371fdf61bb5d7a","content":"| 区域读取 | 是否保留对齐 | 是否双线性 | mask AP | mask AP75 |\n| --- | --- | --- | --- | --- |\n| RoIPool | 否 | 否 | 26.9 | 26.4 |\n| RoIWarp | 否 | 是 | 27.2 | 27.1 |\n| RoIAlign | 是 | 是 | 30.2 | 31.8 |","sha256":"f59df6ce113db0faf2717e5b8440d85ef1f069b2e8b327b430459828cfd41119","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"原论文的对照：对齐改善了哪些指标","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":"roi-align-paper-evidence","formulas":[],"table":{"headers":["区域读取","是否保留对齐","是否双线性","mask AP","mask AP75"],"rows":[["区域读取","是否保留对齐","是否双线性","mask AP","mask AP75"],["RoIPool","否","否","26.9","26.4"],["RoIWarp","否","是","27.2","27.1"],["RoIAlign","是","是","30.2","31.8"]]},"previousBlock":"b-dcea430195bcff237fac9ba3","nextBlock":"b-261bf84e44cf6a9a95c8d07f","prerequisites":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","relation":"same-reasoning"},{"id":"b-dcea430195bcff237fac9ba3","url":"#b-dcea430195bcff237fac9ba3","relation":"same-reasoning"},{"id":"b-261bf84e44cf6a9a95c8d07f","url":"#b-261bf84e44cf6a9a95c8d07f","relation":"same-reasoning"},{"id":"b-4b3d9703ff05b9c993ff3d78","url":"#b-4b3d9703ff05b9c993ff3d78","relation":"same-reasoning"},{"id":"b-fe0ac35c72cf070e7641646c","url":"#b-fe0ac35c72cf070e7641646c","relation":"same-reasoning"}]},{"id":"b-261bf84e44cf6a9a95c8d07f","type":"p","scope":"roi-align-paper-evidence","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-261bf84e44cf6a9a95c8d07f","content":"RoIAlign 相比 RoIPool 的 AP 增加 3.3 点，AP75 增加 5.4 点。RoIWarp 也插值却没有同样改善，支持“保持坐标对应”这一机制判断。平均聚合的 RoIAlign 行是 AP30.3/AP75 31.5，引用时不能把不同聚合行混在一个对照里。Table 2(d) 换成 C5、stride32，mask AP 从 23.6 到 30.9；这是另一组设置。","sha256":"4cdba8cde1b8262a042dd6aa8cda6abe7fd5a4e8cb6f224f5bb95e0f3611cd8d","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"原论文的对照：对齐改善了哪些指标","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":"roi-align-paper-evidence","formulas":[],"previousBlock":"b-32aadf0a42371fdf61bb5d7a","nextBlock":"b-4b3d9703ff05b9c993ff3d78","prerequisites":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","relation":"same-reasoning"},{"id":"b-dcea430195bcff237fac9ba3","url":"#b-dcea430195bcff237fac9ba3","relation":"same-reasoning"},{"id":"b-32aadf0a42371fdf61bb5d7a","url":"#b-32aadf0a42371fdf61bb5d7a","relation":"same-reasoning"},{"id":"b-4b3d9703ff05b9c993ff3d78","url":"#b-4b3d9703ff05b9c993ff3d78","relation":"same-reasoning"},{"id":"b-fe0ac35c72cf070e7641646c","url":"#b-fe0ac35c72cf070e7641646c","relation":"same-reasoning"}]},{"id":"b-4b3d9703ff05b9c993ff3d78","type":"p","scope":"roi-align-paper-evidence","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-4b3d9703ff05b9c993ff3d78","content":"这些是训练完整模型的论文结果，不是本课程重跑。它们说明读取位置值得修复，尤其严格定位受益；P44 则把输入 F 固定成完全相同，讨论任何确定性读出都无法创造差别。方法有效与构造例中的信息限制，可以同时成立。","sha256":"a75c59c916a80252869b500277c7120d64fcb5056b16b7893076a6f49e7c3632","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"原论文的对照：对齐改善了哪些指标","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":"roi-align-paper-evidence","formulas":[],"previousBlock":"b-261bf84e44cf6a9a95c8d07f","nextBlock":"b-fe0ac35c72cf070e7641646c","prerequisites":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","relation":"same-reasoning"},{"id":"b-dcea430195bcff237fac9ba3","url":"#b-dcea430195bcff237fac9ba3","relation":"same-reasoning"},{"id":"b-32aadf0a42371fdf61bb5d7a","url":"#b-32aadf0a42371fdf61bb5d7a","relation":"same-reasoning"},{"id":"b-261bf84e44cf6a9a95c8d07f","url":"#b-261bf84e44cf6a9a95c8d07f","relation":"same-reasoning"},{"id":"b-fe0ac35c72cf070e7641646c","url":"#b-fe0ac35c72cf070e7641646c","relation":"same-reasoning"}]},{"id":"b-fe0ac35c72cf070e7641646c","type":"p","scope":"roi-align-paper-evidence","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-fe0ac35c72cf070e7641646c","content":"接着读[为什么相同 F 仍无法恢复：表示碰撞的推导](/course/blocks/representation-collision-proof.html)，再到 [LAB03 · 空间信息：表示、采样与掩码](/course/notebooks/49a2c030eafa4e1db6fc4f1a08c3810a.html)，用一维读数和差分通道改变条件。","sha256":"50177d63e411d3e58553d7d266c6c7aa4db901ec7404aeb2df04d4279b19a9b5","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"原论文的对照：对齐改善了哪些指标","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":"roi-align-paper-evidence","formulas":[],"previousBlock":"b-4b3d9703ff05b9c993ff3d78","nextBlock":"b-5c7c9a0efac01c688845e5b2","prerequisites":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","relation":"same-reasoning"},{"id":"b-dcea430195bcff237fac9ba3","url":"#b-dcea430195bcff237fac9ba3","relation":"same-reasoning"},{"id":"b-32aadf0a42371fdf61bb5d7a","url":"#b-32aadf0a42371fdf61bb5d7a","relation":"same-reasoning"},{"id":"b-261bf84e44cf6a9a95c8d07f","url":"#b-261bf84e44cf6a9a95c8d07f","relation":"same-reasoning"},{"id":"b-4b3d9703ff05b9c993ff3d78","url":"#b-4b3d9703ff05b9c993ff3d78","relation":"same-reasoning"}]},{"id":"b-5c7c9a0efac01c688845e5b2","type":"h3","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-5c7c9a0efac01c688845e5b2","content":"### 沿着图解追问","sha256":"f16be0424762a44344338696f06ef266c4571d15367ae2cbbd28fac98ac7e9cb","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-fe0ac35c72cf070e7641646c","nextBlock":"b-d3b55ac71e41c82e5d0fb334","prerequisites":[{"id":"b-8f893b765a185ebf0532709f","url":"#b-8f893b765a185ebf0532709f","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-d3b55ac71e41c82e5d0fb334","type":"p","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-d3b55ac71e41c82e5d0fb334","content":"以下是备课用的模拟师生对话，不是课堂实录。","sha256":"b25685f04cd1b885f3a5999e6a912460c7424021cdc5b2190584242086a82681","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-5c7c9a0efac01c688845e5b2","nextBlock":"b-63910ccd05709e66c779bfd0","prerequisites":[{"id":"b-5c7c9a0efac01c688845e5b2","url":"#b-5c7c9a0efac01c688845e5b2","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-63910ccd05709e66c779bfd0","type":"p","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-63910ccd05709e66c779bfd0","content":"**学生：**四点加权是不是已经把丢掉的像素补出来了？","sha256":"870dba80fb13cf1609c4afc28bfc4c91f57748b1b8815484a0fb60fa8bb3c81f","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-d3b55ac71e41c82e5d0fb334","nextBlock":"b-2c84eb115ee2bc3925c0898e","prerequisites":[{"id":"b-5c7c9a0efac01c688845e5b2","url":"#b-5c7c9a0efac01c688845e5b2","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-2c84eb115ee2bc3925c0898e","type":"p","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-2c84eb115ee2bc3925c0898e","content":"**教师：**它按指定位置读取现有特征，不知道被删去的真实像素。图上 2.5 来自这四个数和坐标；如果甲乙给它同样四个数与坐标，它们的结果仍相同。","sha256":"6955e045c8fbdb378937ad8d5626fbdfd0ccf783714411777d456afe09fc53c8","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-63910ccd05709e66c779bfd0","nextBlock":"b-6c5f8b29ebced76cd14c5edd","prerequisites":[{"id":"b-5c7c9a0efac01c688845e5b2","url":"#b-5c7c9a0efac01c688845e5b2","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-6c5f8b29ebced76cd14c5edd","type":"h2","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-6c5f8b29ebced76cd14c5edd","content":"## 沿这个问题继续","sha256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-2c84eb115ee2bc3925c0898e","nextBlock":"b-1455bc6af5357715ef0f31b8","prerequisites":[{"id":"b-5c7c9a0efac01c688845e5b2","url":"#b-5c7c9a0efac01c688845e5b2","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-1455bc6af5357715ef0f31b8","type":"p","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-1455bc6af5357715ef0f31b8","content":"先读本页解释与图，再到 LAB03 改一个坐标或对象。","sha256":"b8b69250624fd8c15e6f5db8690409848aaec027fc3b89222c6665c3044c9586","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-6c5f8b29ebced76cd14c5edd","nextBlock":"b-643960328ab56e86628897de","prerequisites":[{"id":"b-6c5f8b29ebced76cd14c5edd","url":"#b-6c5f8b29ebced76cd14c5edd","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-643960328ab56e86628897de","type":"h4","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p42.html#b-643960328ab56e86628897de","content":"#### 按问题回查的讲解与短练习（1）","sha256":"0480869f0a66009b015a757d67aed6061011e378987f98a024f4e8bfc5386152","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-alignment-paper-comparison","title":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","number":2},"sectionTitle":"在同一设置下比较 RoIPool、RoIWarp 与 RoIAlign","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p42","l3-r2-p43"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-1455bc6af5357715ef0f31b8","nextBlock":null,"prerequisites":[{"id":"b-6c5f8b29ebced76cd14c5edd","url":"#b-6c5f8b29ebced76cd14c5edd","role":"section-title"},{"id":"b-e9dfc064c0b523bf2c7f8db8","url":"#b-e9dfc064c0b523bf2c7f8db8","role":"problem-context"}],"relatedBlocks":[]}]}
