{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.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-p41.html","markdown":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.md","pages":[{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","unit":"区域采样怎样保住几何对应？","unitId":"roi-alignment-and-evidence","chapter":"II","number":1}],"aliases":[{"oldId":"explanation","targetId":"roi-coordinate-quantization","operation":"split-explanation-range"},{"oldId":"b-93e16e1184477a89e9e30cef","targetId":"b-93e16e1184477a89e9e30cef","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","afterSHA256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","reason":"Same source body in authored semantic page"},{"oldId":"b-606418f135e7c8a1a049c5fd","targetId":"b-606418f135e7c8a1a049c5fd","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"21fc8f08f76b515227fd95268f3eee234278ad4d6c9292a1582019fbf4874a85","afterSHA256":"21fc8f08f76b515227fd95268f3eee234278ad4d6c9292a1582019fbf4874a85","reason":"Same source body in authored semantic page"},{"oldId":"b-0ab9ceb623ab9100d6671a5b","targetId":"b-0ab9ceb623ab9100d6671a5b","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"a718447ea93e2a98352601e665677407f3818c09ddd5c66f56f9f973812016b5","afterSHA256":"a718447ea93e2a98352601e665677407f3818c09ddd5c66f56f9f973812016b5","reason":"Same source body in authored semantic page"},{"oldId":"b-4b0e0fb58fa6fd8c936dde1d","targetId":"b-4b0e0fb58fa6fd8c936dde1d","page":"roi-coordinate-quantization","operation":"rewrite","beforeSHA256":"f3aeab983b44b300c077423c76654c7b935b00b5984765110d674b9ee18c3a49","afterSHA256":"56593f80c842ad0a79026cf4e8e7a77725471a463be9037bbbbda48e6975c85f","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-f8ab22de515d1840d1a3ff9a","targetId":"b-f8ab22de515d1840d1a3ff9a","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","afterSHA256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","reason":"Same source body in authored semantic page"},{"oldId":"b-b2fcdc0078531cb125424a00","targetId":"b-b2fcdc0078531cb125424a00","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"9357bce2827314f36c0e7626f5b2ce2223f0fb55c82381860553dfd348849c48","afterSHA256":"9357bce2827314f36c0e7626f5b2ce2223f0fb55c82381860553dfd348849c48","reason":"Same source body in authored semantic page"},{"oldId":"b-ecdf49317d461d8bbc929add","targetId":"b-ecdf49317d461d8bbc929add","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"0a553f669ddf2c9f3eee37754a1252f32be1782ca63e97c468382e81653a83ac","afterSHA256":"0a553f669ddf2c9f3eee37754a1252f32be1782ca63e97c468382e81653a83ac","reason":"Same source body in authored semantic page"},{"oldId":"b-9eb0a3d929e418d43f06aad7","targetId":"b-9eb0a3d929e418d43f06aad7","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"3a6e0fa6b3fb69b6a4d4de6248f5782cd7f6cd1526a9e83bee2a3e905e0a0cba","afterSHA256":"3a6e0fa6b3fb69b6a4d4de6248f5782cd7f6cd1526a9e83bee2a3e905e0a0cba","reason":"Same source body in authored semantic page"},{"oldId":"b-c45cdaa8436d151e085e3f2f","targetId":"b-c45cdaa8436d151e085e3f2f","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"59f2fa5526dd244c1cd7f426fbb3f8548e2296a2b892bfb242e03e04c4bf3c4b","afterSHA256":"59f2fa5526dd244c1cd7f426fbb3f8548e2296a2b892bfb242e03e04c4bf3c4b","reason":"Same source body in authored semantic page"},{"oldId":"b-a32daf7f1c6ef91e12feae6c","targetId":"b-a32daf7f1c6ef91e12feae6c","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"fdbcb0321317dac836713727d5d1e056dbca8a7014e9fb008fd017cbc37e9ebe","afterSHA256":"fdbcb0321317dac836713727d5d1e056dbca8a7014e9fb008fd017cbc37e9ebe","reason":"Same source body in authored semantic page"},{"oldId":"b-c6744ae908bc636219feceec","targetId":"b-c6744ae908bc636219feceec","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"85e6dd889d8c627fb88dea5f6ce6d15900b27df68b7e1f8e313dd5dd0e319e3c","afterSHA256":"85e6dd889d8c627fb88dea5f6ce6d15900b27df68b7e1f8e313dd5dd0e319e3c","reason":"Same source body in authored semantic page"},{"oldId":"b-96df15301bd135c78ab3bc36","targetId":"b-96df15301bd135c78ab3bc36","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","afterSHA256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","reason":"Same source body in authored semantic page"},{"oldId":"b-456ece34c7ea573b8b1dd62a","targetId":"b-456ece34c7ea573b8b1dd62a","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"b8b69250624fd8c15e6f5db8690409848aaec027fc3b89222c6665c3044c9586","afterSHA256":"b8b69250624fd8c15e6f5db8690409848aaec027fc3b89222c6665c3044c9586","reason":"Same source body in authored semantic page"},{"oldId":"b-afee26986b9c27f83ffb66fa","targetId":"b-afee26986b9c27f83ffb66fa","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"0cdfebec1d8a25a09cdf4a17deb3c265242fe0ad9486542fd5134c2c3f93036f","afterSHA256":"0cdfebec1d8a25a09cdf4a17deb3c265242fe0ad9486542fd5134c2c3f93036f","reason":"Same source body in authored semantic page"},{"oldId":"b-ab4287a55cd4c569e61fb0d3","targetId":"b-ab4287a55cd4c569e61fb0d3","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"85d556c15ad26e8816a6528fe798320052ff5eb644b08f3307d61d29a401f309","afterSHA256":"85d556c15ad26e8816a6528fe798320052ff5eb644b08f3307d61d29a401f309","reason":"Same source body in authored semantic page"},{"oldId":"b-557c207a9cf739d44ddbf6c0","targetId":"b-557c207a9cf739d44ddbf6c0","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"c0f11cc358b592c7cec0d619eaf17c765e830f31da5a382e5d6080e319ee4bce","afterSHA256":"c0f11cc358b592c7cec0d619eaf17c765e830f31da5a382e5d6080e319ee4bce","reason":"Same source body in authored semantic page"},{"oldId":"b-bbbc72152051f7b9ac7c3942","targetId":"b-bbbc72152051f7b9ac7c3942","page":"roi-coordinate-quantization","operation":"move","beforeSHA256":"ce056a9fb730fe9b8ace51a8cd234ad05c88e7f6be5e1b2bf9154a51a2f46fda","afterSHA256":"ce056a9fb730fe9b8ace51a8cd234ad05c88e7f6be5e1b2bf9154a51a2f46fda","reason":"Same source body in authored semantic page"},{"oldId":"roi-coordinate-quantization-title","targetId":"b-6f585bd83caeca42b1a3c55e","operation":"retain-source-identity"}],"blocks":[{"id":"b-6f585bd83caeca42b1a3c55e","type":"h2","scope":"roi-coordinate-quantization","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-6f585bd83caeca42b1a3c55e","content":"## 先算 35/16，再判断取整改变了什么","sha256":"52f5e8ca1c0d73ca7bb4bd7ed9f2eda910d3198442411a78e54403ff1a09cf10","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-93e16e1184477a89e9e30cef","prerequisites":[{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-93e16e1184477a89e9e30cef","type":"h2","scope":"explanation","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-93e16e1184477a89e9e30cef","content":"## 解释、算例与证据","sha256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-6f585bd83caeca42b1a3c55e","nextBlock":"b-606418f135e7c8a1a049c5fd","prerequisites":[{"id":"b-6f585bd83caeca42b1a3c55e","url":"#b-6f585bd83caeca42b1a3c55e","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-606418f135e7c8a1a049c5fd","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-606418f135e7c8a1a049c5fd","content":"# P41 · 三个像素的偏移，为什么会伤到轮廓？","sha256":"21fc8f08f76b515227fd95268f3eee234278ad4d6c9292a1582019fbf4874a85","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-93e16e1184477a89e9e30cef","nextBlock":"b-0ab9ceb623ab9100d6671a5b","prerequisites":[{"id":"b-93e16e1184477a89e9e30cef","url":"#b-93e16e1184477a89e9e30cef","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-0ab9ceb623ab9100d6671a5b","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-0ab9ceb623ab9100d6671a5b","content":"先固定简单坐标约定 x/stride，再看 35→2.1875→取整 2 所造成的位置变化。真实库的像素中心与边界设置必须另核对；本页的三个像素误差是指定算例，不是所有实现的固定偏差。","sha256":"a718447ea93e2a98352601e665677407f3818c09ddd5c66f56f9f973812016b5","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-606418f135e7c8a1a049c5fd","nextBlock":"b-4b0e0fb58fa6fd8c936dde1d","prerequisites":[{"id":"b-606418f135e7c8a1a049c5fd","url":"#b-606418f135e7c8a1a049c5fd","role":"section-title"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-4b0e0fb58fa6fd8c936dde1d","type":"figure","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-4b0e0fb58fa6fd8c936dde1d","content":"图内标签与数值：Lecture 03 课堂图解 P41；约定：原图 x ÷ 16 → 特征坐标；原图 x；0；16；32；48；64；35；连续位置；35/16 = 2.1875；32；取整后；2 × 16 = 32；读的位置变了 3 个原图像素；坐标示意，不模拟各框架的半像素约定；RoIAlign 避免相关坐标量化。\n\n原图坐标轴上的 x=35 映射到 stride16 特征坐标 2.1875；量化到 2 时对回 x=32，明确三像素偏移。\n\n- 约定：原图 x ÷ 16 → 特征坐标\n- 原图 x\n- 0\n- 16\n- 32\n- 48\n- 64\n- 35\n- 连续位置\n- 35/16 = 2.1875\n- 32\n- 取整后\n- 2 × 16 = 32\n- 读的位置变了 3 个原图像素\n- 坐标示意，不模拟各框架的半像素约定；RoIAlign 避免相关坐标量化。原图坐标轴上的 x=35 映射到 stride16 特征坐标 2.1875；量化到 2 时对回 x=32，明确三像素偏移。 [查看对应图解状态](/#/l3-r2-p41/1)[查看完整图解](/course/figures/l3-r2-p41-1.html)","sha256":"56593f80c842ad0a79026cf4e8e7a77725471a463be9037bbbbda48e6975c85f","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"figure":{"caption":"原图坐标轴上的 x=35 映射到 stride16 特征坐标 2.1875；量化到 2 时对回 x=32，明确三像素偏移。 查看对应图解状态","labels":["约定：原图 x ÷ 16 → 特征坐标","原图 x","0","16","32","48","64","35","连续位置","35/16 = 2.1875","32","取整后","2 × 16 = 32","读的位置变了 3 个原图像素","坐标示意，不模拟各框架的半像素约定；RoIAlign 避免相关坐标量化。"],"description":"原图坐标轴上的 x=35 映射到 stride16 特征坐标 2.1875；量化到 2 时对回 x=32，明确三像素偏移。约定：原图 x ÷ 16 → 特征坐标原图 x01632486435连续位置35/16 = 2.187532取整后2 × 16 = 32读的位置变了 3 个原图像素坐标示意，不模拟各框架的半像素约定；RoIAlign 避免相关坐标量化。","evidenceIdentity":"原图坐标轴上的 x=35 映射到 stride16 特征坐标 2.1875；量化到 2 时对回 x=32，明确三像素偏移。 查看对应图解状态","images":[]},"previousBlock":"b-0ab9ceb623ab9100d6671a5b","nextBlock":"b-f8ab22de515d1840d1a3ff9a","prerequisites":[{"id":"b-606418f135e7c8a1a049c5fd","url":"#b-606418f135e7c8a1a049c5fd","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f8ab22de515d1840d1a3ff9a","type":"h2","scope":"narrative","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-f8ab22de515d1840d1a3ff9a","content":"## 课堂讲述","sha256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4b0e0fb58fa6fd8c936dde1d","nextBlock":"b-b2fcdc0078531cb125424a00","prerequisites":[{"id":"b-606418f135e7c8a1a049c5fd","url":"#b-606418f135e7c8a1a049c5fd","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-b2fcdc0078531cb125424a00","type":"p","scope":"narrative","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-b2fcdc0078531cb125424a00","content":"用一个小坐标例子看。特征图相对原图的步长是十六，原图横坐标三十五对应特征坐标二点一八七五。如果简单变成整数二，就相当于换到了原图三十二附近的位置。\n识别“大概是什么”时，这样的偏差可能不太显眼；但在杯柄或细边界上，几个像素就会改变哪些位置应该属于对象。\n这里不是说所有取整都造成同样大小的错误，而是指出一种信息通路问题：我们希望读取这个区域，却在离散化过程中改变了它的几何对应。RoIAlign 的关键，就是在区域提取中避免相关量化，并用连续位置采样。下一页让这个采样变成能算出来的东西。","sha256":"9357bce2827314f36c0e7626f5b2ce2223f0fb55c82381860553dfd348849c48","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f8ab22de515d1840d1a3ff9a","nextBlock":"b-ecdf49317d461d8bbc929add","prerequisites":[{"id":"b-f8ab22de515d1840d1a3ff9a","url":"#b-f8ab22de515d1840d1a3ff9a","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-ecdf49317d461d8bbc929add","type":"h3","scope":"roi-coordinate-conventions","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-ecdf49317d461d8bbc929add","content":"### 35 除以 16 之后，为什么不应急着取整","sha256":"0a553f669ddf2c9f3eee37754a1252f32be1782ca63e97c468382e81653a83ac","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"35 除以 16 之后，为什么不应急着取整","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":"roi-coordinate-conventions","formulas":[],"previousBlock":"b-b2fcdc0078531cb125424a00","nextBlock":"b-9eb0a3d929e418d43f06aad7","prerequisites":[{"id":"b-f8ab22de515d1840d1a3ff9a","url":"#b-f8ab22de515d1840d1a3ff9a","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"},{"id":"b-9eb0a3d929e418d43f06aad7","url":"#b-9eb0a3d929e418d43f06aad7","relation":"same-reasoning"},{"id":"b-c45cdaa8436d151e085e3f2f","url":"#b-c45cdaa8436d151e085e3f2f","relation":"same-reasoning"},{"id":"b-a32daf7f1c6ef91e12feae6c","url":"#b-a32daf7f1c6ef91e12feae6c","relation":"same-reasoning"},{"id":"b-c6744ae908bc636219feceec","url":"#b-c6744ae908bc636219feceec","relation":"same-reasoning"}]},{"id":"b-9eb0a3d929e418d43f06aad7","type":"p","scope":"roi-coordinate-conventions","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-9eb0a3d929e418d43f06aad7","content":"本页采用教学约定 (u=x/s)，不额外加入像素中心偏移。原图 x=35、特征步长 s=16，得到 u=2.1875。若立即取整为 2，读到的位置就相当于原图 x=32；对分类可能仍包含相似内容，但细杯柄边缘已偏了三个像素。","sha256":"3a6e0fa6b3fb69b6a4d4de6248f5782cd7f6cd1526a9e83bee2a3e905e0a0cba","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"35 除以 16 之后，为什么不应急着取整","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":"roi-coordinate-conventions","formulas":[],"previousBlock":"b-ecdf49317d461d8bbc929add","nextBlock":"b-c45cdaa8436d151e085e3f2f","prerequisites":[{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"},{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","relation":"same-reasoning"},{"id":"b-c45cdaa8436d151e085e3f2f","url":"#b-c45cdaa8436d151e085e3f2f","relation":"same-reasoning"},{"id":"b-a32daf7f1c6ef91e12feae6c","url":"#b-a32daf7f1c6ef91e12feae6c","relation":"same-reasoning"},{"id":"b-c6744ae908bc636219feceec","url":"#b-c6744ae908bc636219feceec","relation":"same-reasoning"}]},{"id":"b-c45cdaa8436d151e085e3f2f","type":"p","scope":"roi-coordinate-conventions","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-c45cdaa8436d151e085e3f2f","content":"这不表示所有实际库都直接使用 x/s。具体实现还可能约定像素中心、半像素偏移、对齐端点及边界外采样。对照库输出时必须先统一这些约定，不能把差异都归结为数值误差。课堂算例选择简单坐标，是为了单独看清连续位置与量化的差别。","sha256":"59f2fa5526dd244c1cd7f426fbb3f8548e2296a2b892bfb242e03e04c4bf3c4b","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"35 除以 16 之后，为什么不应急着取整","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":"roi-coordinate-conventions","formulas":[],"previousBlock":"b-9eb0a3d929e418d43f06aad7","nextBlock":"b-a32daf7f1c6ef91e12feae6c","prerequisites":[{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"},{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","relation":"same-reasoning"},{"id":"b-9eb0a3d929e418d43f06aad7","url":"#b-9eb0a3d929e418d43f06aad7","relation":"same-reasoning"},{"id":"b-a32daf7f1c6ef91e12feae6c","url":"#b-a32daf7f1c6ef91e12feae6c","relation":"same-reasoning"},{"id":"b-c6744ae908bc636219feceec","url":"#b-c6744ae908bc636219feceec","relation":"same-reasoning"}]},{"id":"b-a32daf7f1c6ef91e12feae6c","type":"p","scope":"roi-coordinate-conventions","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-a32daf7f1c6ef91e12feae6c","content":"RoI 提取不只涉及框起点，还要把框划成固定数量 bins，并在每个 bin 中选择采样位置。若框边界或 bin 边界被取整，细小移动可能完全不改变读数，跨过阈值又会突然跳变。保留连续几何，再通过邻域插值得值，便能把这些连续变化传到区域读出。","sha256":"fdbcb0321317dac836713727d5d1e056dbca8a7014e9fb008fd017cbc37e9ebe","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"35 除以 16 之后，为什么不应急着取整","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":"roi-coordinate-conventions","formulas":[],"previousBlock":"b-c45cdaa8436d151e085e3f2f","nextBlock":"b-c6744ae908bc636219feceec","prerequisites":[{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"},{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","relation":"same-reasoning"},{"id":"b-9eb0a3d929e418d43f06aad7","url":"#b-9eb0a3d929e418d43f06aad7","relation":"same-reasoning"},{"id":"b-c45cdaa8436d151e085e3f2f","url":"#b-c45cdaa8436d151e085e3f2f","relation":"same-reasoning"},{"id":"b-c6744ae908bc636219feceec","url":"#b-c6744ae908bc636219feceec","relation":"same-reasoning"}]},{"id":"b-c6744ae908bc636219feceec","type":"p","scope":"roi-coordinate-conventions","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-c6744ae908bc636219feceec","content":"到 P42 我们真正算一个点；到 P43 再把点值放回局部二维目标。一次插值算对，是理解组件，不等于已经完成整套实例分割。","sha256":"85e6dd889d8c627fb88dea5f6ce6d15900b27df68b7e1f8e313dd5dd0e319e3c","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"35 除以 16 之后，为什么不应急着取整","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":"roi-coordinate-conventions","formulas":[],"previousBlock":"b-a32daf7f1c6ef91e12feae6c","nextBlock":"b-96df15301bd135c78ab3bc36","prerequisites":[{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"},{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","relation":"same-reasoning"},{"id":"b-9eb0a3d929e418d43f06aad7","url":"#b-9eb0a3d929e418d43f06aad7","relation":"same-reasoning"},{"id":"b-c45cdaa8436d151e085e3f2f","url":"#b-c45cdaa8436d151e085e3f2f","relation":"same-reasoning"},{"id":"b-a32daf7f1c6ef91e12feae6c","url":"#b-a32daf7f1c6ef91e12feae6c","relation":"same-reasoning"}]},{"id":"b-96df15301bd135c78ab3bc36","type":"h2","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-96df15301bd135c78ab3bc36","content":"## 沿这个问题继续","sha256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c6744ae908bc636219feceec","nextBlock":"b-456ece34c7ea573b8b1dd62a","prerequisites":[{"id":"b-ecdf49317d461d8bbc929add","url":"#b-ecdf49317d461d8bbc929add","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-456ece34c7ea573b8b1dd62a","type":"p","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-456ece34c7ea573b8b1dd62a","content":"先读本页解释与图，再到 LAB03 改一个坐标或对象。","sha256":"b8b69250624fd8c15e6f5db8690409848aaec027fc3b89222c6665c3044c9586","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-96df15301bd135c78ab3bc36","nextBlock":"b-37ab4dd0d7f3dd159b540db3","prerequisites":[{"id":"b-96df15301bd135c78ab3bc36","url":"#b-96df15301bd135c78ab3bc36","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-37ab4dd0d7f3dd159b540db3","type":"h4","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-37ab4dd0d7f3dd159b540db3","content":"#### 按问题回查的讲解与短练习（1）","sha256":"0480869f0a66009b015a757d67aed6061011e378987f98a024f4e8bfc5386152","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-456ece34c7ea573b8b1dd62a","nextBlock":"b-2336f8ab6d2a49f99b0da539","prerequisites":[{"id":"b-96df15301bd135c78ab3bc36","url":"#b-96df15301bd135c78ab3bc36","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-2336f8ab6d2a49f99b0da539","type":"h4","scope":"roi-coordinate-quantization","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-2336f8ab6d2a49f99b0da539","content":"#### 图示条件与公式约定","sha256":"ef7f915c1ae63ed67bd23fecf050249273ba0efa8965d2c8d1c1c6b2d3178122","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-37ab4dd0d7f3dd159b540db3","nextBlock":"b-afee26986b9c27f83ffb66fa","prerequisites":[{"id":"b-37ab4dd0d7f3dd159b540db3","url":"#b-37ab4dd0d7f3dd159b540db3","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-afee26986b9c27f83ffb66fa","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-afee26986b9c27f83ffb66fa","content":"教学坐标假设图像边界坐标/stride，无半像素偏置。35/16=2.1875，取整2对回32。仅用于解释量化误差，不声称还原 torchvision 等具体框架全部坐标约定。","sha256":"0cdfebec1d8a25a09cdf4a17deb3c265242fe0ad9486542fd5134c2c3f93036f","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-2336f8ab6d2a49f99b0da539","nextBlock":"b-21e2531c3adc34877e9be78f","prerequisites":[{"id":"b-2336f8ab6d2a49f99b0da539","url":"#b-2336f8ab6d2a49f99b0da539","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-21e2531c3adc34877e9be78f","type":"h4","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-21e2531c3adc34877e9be78f","content":"#### 这条线索的展开与后续阅读","sha256":"48b8229f7559b36ed4d5628416e3991e5c73293fbce43374db67386c8736f3bc","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-afee26986b9c27f83ffb66fa","nextBlock":"b-ab4287a55cd4c569e61fb0d3","prerequisites":[{"id":"b-2336f8ab6d2a49f99b0da539","url":"#b-2336f8ab6d2a49f99b0da539","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-ab4287a55cd4c569e61fb0d3","type":"ul","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-ab4287a55cd4c569e61fb0d3","content":"- [边界在 35，为什么被读到 32？](/supplement.html?return=l3-r2-p41/0#/l3-roi-coordinates/0) 本页说明\n- [RoIAlign 修复读取错位，不修复表示丢失｜问题从哪里出现](/supplement.html?return=l3-r2-p41/0#/l3-roi-align-chain-problem/0) 本页说明","sha256":"85d556c15ad26e8816a6528fe798320052ff5eb644b08f3307d61d29a401f309","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-21e2531c3adc34877e9be78f","nextBlock":"b-557c207a9cf739d44ddbf6c0","prerequisites":[{"id":"b-21e2531c3adc34877e9be78f","url":"#b-21e2531c3adc34877e9be78f","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-557c207a9cf739d44ddbf6c0","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-557c207a9cf739d44ddbf6c0","content":"- [边界在 35，为什么被读到 32？](/supplement.html?return=l3-r2-p41/0#/l3-roi-coordinates/0) 本页说明","sha256":"c0f11cc358b592c7cec0d619eaf17c765e830f31da5a382e5d6080e319ee4bce","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-ab4287a55cd4c569e61fb0d3","nextBlock":"b-bbbc72152051f7b9ac7c3942","prerequisites":[{"id":"b-21e2531c3adc34877e9be78f","url":"#b-21e2531c3adc34877e9be78f","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]},{"id":"b-bbbc72152051f7b9ac7c3942","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p41.html#b-bbbc72152051f7b9ac7c3942","content":"- [RoIAlign 修复读取错位，不修复表示丢失｜问题从哪里出现](/supplement.html?return=l3-r2-p41/0#/l3-roi-align-chain-problem/0) 本页说明","sha256":"ce056a9fb730fe9b8ace51a8cd234ad05c88e7f6be5e1b2bf9154a51a2f46fda","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"roi-alignment-and-evidence","title":"区域采样怎样保住几何对应？"},"page":{"id":"roi-coordinate-quantization","title":"先算 35/16，再判断取整改变了什么","number":1},"sectionTitle":"先算 35/16，再判断取整改变了什么","currentQuestion":"从坐标、四邻插值到局部目标，再检查论文中的同条件证据。","sourceSlides":["l3-r2-p41"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-557c207a9cf739d44ddbf6c0","nextBlock":null,"prerequisites":[{"id":"b-21e2531c3adc34877e9be78f","url":"#b-21e2531c3adc34877e9be78f","role":"section-title"},{"id":"b-0ab9ceb623ab9100d6671a5b","url":"#b-0ab9ceb623ab9100d6671a5b","role":"problem-context"}],"relatedBlocks":[{"id":"b-4b0e0fb58fa6fd8c936dde1d","url":"#b-4b0e0fb58fa6fd8c936dde1d","relation":"figure-and-explanation"}]}]}
