{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"SAM：把“分哪一块”交给提示","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html","markdown":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.md","pages":[{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","unit":"提示怎样指定这一次要分的区域？","unitId":"prompted-spatial-output","chapter":"II","number":1},{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","unit":"提示怎样指定这一次要分的区域？","unitId":"prompted-spatial-output","chapter":"II","number":2}],"aliases":[{"oldId":"explanation","targetId":"prompt-mask-granularity","operation":"split-explanation-range"},{"oldId":"b-29810b18afaf271ade27f9bc","targetId":"b-29810b18afaf271ade27f9bc","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","afterSHA256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","reason":"Same source body in authored semantic page"},{"oldId":"b-3a572afdd0f175c57a743214","targetId":"b-3a572afdd0f175c57a743214","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"21b54ffc47c90da6723a3906b238df936781c0f5a814296723a4a6610cddbfe4","afterSHA256":"21b54ffc47c90da6723a3906b238df936781c0f5a814296723a4a6610cddbfe4","reason":"Same source body in authored semantic page"},{"oldId":"b-f1846b2331feb3763b9d7bd6","targetId":"b-f1846b2331feb3763b9d7bd6","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"cc360b3357cf196b2e5ddeb14dfa0fc981c6483b9b6d354127392b41cd622396","afterSHA256":"cc360b3357cf196b2e5ddeb14dfa0fc981c6483b9b6d354127392b41cd622396","reason":"Same source body in authored semantic page"},{"oldId":"b-1857ff6a7ab2f27c49dc499c","targetId":"b-1857ff6a7ab2f27c49dc499c","page":"prompt-mask-granularity","operation":"rewrite","beforeSHA256":"3c35bf923b9cdcbccc64709b5d7297204b1a0cf05382ad88e3f6818d61175da7","afterSHA256":"0136d487818563b4155aab8bd702832eb00fc512193e7fdaec4a9237f6e04dfb","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-07270b87d2fc571b83a732d5","targetId":"b-07270b87d2fc571b83a732d5","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","afterSHA256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","reason":"Same source body in authored semantic page"},{"oldId":"b-15987bb947ca68d26f8a04ef","targetId":"b-15987bb947ca68d26f8a04ef","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"201f0540781702a683000c7062b32a9dca150c0e8e8cdf031b8b14a237a4804d","afterSHA256":"201f0540781702a683000c7062b32a9dca150c0e8e8cdf031b8b14a237a4804d","reason":"Same source body in authored semantic page"},{"oldId":"b-708b450abe2a34cf84b4f43c","targetId":"b-708b450abe2a34cf84b4f43c","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"1a92e46a40204827db6d80dd01bf721598d1e6dca2cf0bb7881084341995f825","afterSHA256":"1a92e46a40204827db6d80dd01bf721598d1e6dca2cf0bb7881084341995f825","reason":"Same source body in authored semantic page"},{"oldId":"b-1b998727a4ab74584fc1e989","targetId":"b-1b998727a4ab74584fc1e989","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"56e7c036b4f4f45007a9bb867592b5303af825844c50e015a082b7a5ff5f8446","afterSHA256":"56e7c036b4f4f45007a9bb867592b5303af825844c50e015a082b7a5ff5f8446","reason":"Same source body in authored semantic page"},{"oldId":"b-724e663eaeefc65442378c26","targetId":"b-724e663eaeefc65442378c26","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"b4fc40a21ed69c43b6d314267ce3e4c2d4c5b7ac80bea0111de8c7fdda89c3ae","afterSHA256":"b4fc40a21ed69c43b6d314267ce3e4c2d4c5b7ac80bea0111de8c7fdda89c3ae","reason":"Same source body in authored semantic page"},{"oldId":"b-392b6e4388bbbb62d910b577","targetId":"b-392b6e4388bbbb62d910b577","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"0477ef728ef80f0e9c50f2e6e04b9240e3247b8ec2e7d94d69df73c5cb655bef","afterSHA256":"0477ef728ef80f0e9c50f2e6e04b9240e3247b8ec2e7d94d69df73c5cb655bef","reason":"Same source body in authored semantic page"},{"oldId":"b-66474f4ec992417787f26807","targetId":"b-66474f4ec992417787f26807","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"fcbf0787095b9e16d8ae3b231dd82815ec22356d221f1c8dcfed08e0d3dab8d0","afterSHA256":"fcbf0787095b9e16d8ae3b231dd82815ec22356d221f1c8dcfed08e0d3dab8d0","reason":"Same source body in authored semantic page"},{"oldId":"b-00496628b1f9ee83ad6120ba","targetId":"b-00496628b1f9ee83ad6120ba","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"431099aa1c7b85b26fb66aca6c0b446fe2002817daaae4f5aa3ba737631ef1c2","afterSHA256":"431099aa1c7b85b26fb66aca6c0b446fe2002817daaae4f5aa3ba737631ef1c2","reason":"Same source body in authored semantic page"},{"oldId":"b-4353f1197a4a6a7039767791","targetId":"b-4353f1197a4a6a7039767791","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"e8e40a7a7b4e26d61dd8e67ff3937e85c82fc92f6a2b084d5d3eaff994a319dc","afterSHA256":"e8e40a7a7b4e26d61dd8e67ff3937e85c82fc92f6a2b084d5d3eaff994a319dc","reason":"Same source body in authored semantic page"},{"oldId":"b-9e93a0473a5e42898069987d","targetId":"b-9e93a0473a5e42898069987d","page":"prompt-mask-granularity","operation":"move","beforeSHA256":"e8e40a7a7b4e26d61dd8e67ff3937e85c82fc92f6a2b084d5d3eaff994a319dc","afterSHA256":"e8e40a7a7b4e26d61dd8e67ff3937e85c82fc92f6a2b084d5d3eaff994a319dc","reason":"Same source body in authored semantic page"},{"oldId":"b-bf3b20a7587c44906a38262b","targetId":"b-bf3b20a7587c44906a38262b","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"8030ffbf81056c0f73dab79c4c6a5655a83eca33f4f75a7544143b163724db03","afterSHA256":"8030ffbf81056c0f73dab79c4c6a5655a83eca33f4f75a7544143b163724db03","reason":"Same source body in authored semantic page"},{"oldId":"b-4ed1748ae38ab27495535309","targetId":"b-4ed1748ae38ab27495535309","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"0ea93c8189c66e77304ac1f4f9dde95a1d382a8f7d7323980890a7e8397e51e6","afterSHA256":"0ea93c8189c66e77304ac1f4f9dde95a1d382a8f7d7323980890a7e8397e51e6","reason":"Same source body in authored semantic page"},{"oldId":"b-d79283f1f78fcebb3d97bc72","targetId":"b-d79283f1f78fcebb3d97bc72","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"4c557624835b36a583194eddac5a7e899b4c02b7570cac64ccd7d7bb29598e5a","afterSHA256":"4c557624835b36a583194eddac5a7e899b4c02b7570cac64ccd7d7bb29598e5a","reason":"Same source body in authored semantic page"},{"oldId":"b-c33e512b0288e280d261899a","targetId":"b-c33e512b0288e280d261899a","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"4da8ba93b7a9d464be4d626338644c5c4d5729eb6ee6e69359bb744d7642035c","afterSHA256":"4da8ba93b7a9d464be4d626338644c5c4d5729eb6ee6e69359bb744d7642035c","reason":"Same source body in authored semantic page"},{"oldId":"b-c0f56c8f47e02705a66acd0a","targetId":"b-c0f56c8f47e02705a66acd0a","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"014d3e686af1d67cf2f7363ad92439dd1a233edd6fea947dbe71b9cdac105596","afterSHA256":"014d3e686af1d67cf2f7363ad92439dd1a233edd6fea947dbe71b9cdac105596","reason":"Same source body in authored semantic page"},{"oldId":"b-36a24ca4141d12813896e9a0","targetId":"b-36a24ca4141d12813896e9a0","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"f16be0424762a44344338696f06ef266c4571d15367ae2cbbd28fac98ac7e9cb","afterSHA256":"f16be0424762a44344338696f06ef266c4571d15367ae2cbbd28fac98ac7e9cb","reason":"Same source body in authored semantic page"},{"oldId":"b-c325210952cda38dfe45362b","targetId":"b-c325210952cda38dfe45362b","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"b25685f04cd1b885f3a5999e6a912460c7424021cdc5b2190584242086a82681","afterSHA256":"b25685f04cd1b885f3a5999e6a912460c7424021cdc5b2190584242086a82681","reason":"Same source body in authored semantic page"},{"oldId":"b-c0343b3822dee2668f49b3ee","targetId":"b-c0343b3822dee2668f49b3ee","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"4f4b98de7865232edca36ef4b0fc099bed0f30a719a9749de83810601c809399","afterSHA256":"4f4b98de7865232edca36ef4b0fc099bed0f30a719a9749de83810601c809399","reason":"Same source body in authored semantic page"},{"oldId":"b-66de48c8cecea02e038fd04a","targetId":"b-66de48c8cecea02e038fd04a","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"11f9baa0d47ea9017d680c42cbea9952303f95cd548597f1e4690c4a84652ea5","afterSHA256":"11f9baa0d47ea9017d680c42cbea9952303f95cd548597f1e4690c4a84652ea5","reason":"Same source body in authored semantic page"},{"oldId":"b-172da5041da471c53d954c5a","targetId":"b-172da5041da471c53d954c5a","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","afterSHA256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","reason":"Same source body in authored semantic page"},{"oldId":"b-557f2a2fda1eebc8ed7f3854","targetId":"b-557f2a2fda1eebc8ed7f3854","page":"prompt-lab16-rule-baseline","operation":"move","beforeSHA256":"b145cd37b1934012763c01e4a841065fbe4aaa9585a9205f1cc1134ec29a3c1b","afterSHA256":"b145cd37b1934012763c01e4a841065fbe4aaa9585a9205f1cc1134ec29a3c1b","reason":"Same source body in authored semantic page"},{"oldId":"prompt-mask-granularity-title","targetId":"b-8e12514bad6c2502d9c37dc9","operation":"retain-source-identity"},{"oldId":"prompt-lab16-rule-baseline-title","targetId":"b-9e7b7e1122787070f1872d10","operation":"retain-source-identity"},{"oldId":"prompt-lab16-rule-baseline-bridge","targetId":"b-5b073eb28373588b98faa342","operation":"retain-source-identity"}],"blocks":[{"id":"b-8e12514bad6c2502d9c37dc9","type":"h2","scope":"prompt-mask-granularity","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-8e12514bad6c2502d9c37dc9","content":"## 一个正点可能指局部，也可能指整体","sha256":"786cea83d7928a52ef057c2abdc19be981e3413dd49132c4e67f963cb03b00fe","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-29810b18afaf271ade27f9bc","prerequisites":[{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-29810b18afaf271ade27f9bc","type":"h2","scope":"explanation","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-29810b18afaf271ade27f9bc","content":"## 解释、算例与证据","sha256":"d71cf15e707c8a3674b4c90a599efee783cb84da5b8c8236a1d01c3add7b4958","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-8e12514bad6c2502d9c37dc9","nextBlock":"b-3a572afdd0f175c57a743214","prerequisites":[{"id":"b-8e12514bad6c2502d9c37dc9","url":"#b-8e12514bad6c2502d9c37dc9","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-3a572afdd0f175c57a743214","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-3a572afdd0f175c57a743214","content":"# P46 · SAM：把“分哪一块”交给提示","sha256":"21b54ffc47c90da6723a3906b238df936781c0f5a814296723a4a6610cddbfe4","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-29810b18afaf271ade27f9bc","nextBlock":"b-f1846b2331feb3763b9d7bd6","prerequisites":[{"id":"b-29810b18afaf271ade27f9bc","url":"#b-29810b18afaf271ade27f9bc","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-f1846b2331feb3763b9d7bd6","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-f1846b2331feb3763b9d7bd6","content":"点和框指定本次目标，但一个点仍可能同时指向局部与整体。SAM 的可复用图像表示和轻量提示解码使交互更方便；当前 LAB16 是透明规则对照，应准确区分规则输出、教学标注和真正模型输出。","sha256":"cc360b3357cf196b2e5ddeb14dfa0fc981c6483b9b6d354127392b41cd622396","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-3a572afdd0f175c57a743214","nextBlock":"b-1857ff6a7ab2f27c49dc499c","prerequisites":[{"id":"b-3a572afdd0f175c57a743214","url":"#b-3a572afdd0f175c57a743214","role":"section-title"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-1857ff6a7ab2f27c49dc499c","type":"figure","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-1857ff6a7ab2f27c49dc499c","content":"图内标签与数值：Lecture 03 课堂图解 P46；增加框和杯身正点；整只杯子；新增提示；缩小目标歧义；正点：要求包含；负点：要求排除；由提示约束希望分出的区域；点、框等提示指定分割区域；图示掩码为教学标注。\n\n同一图像杯柄正点对应整杯和杯柄两个教学掩码；增加框与杯身正点以约束整体目标。\n\n- 增加框和杯身正点\n- 整只杯子\n- 新增提示\n- 缩小目标歧义\n- 正点：要求包含\n- 负点：要求排除\n- 由提示约束希望分出的区域\n- 点、框等提示指定分割区域；图示掩码为教学标注。同一图像杯柄正点对应整杯和杯柄两个教学掩码；增加框与杯身正点以约束整体目标。 [查看对应图解状态](/#/l3-r2-p46/1)[查看完整图解](/course/figures/l3-r2-p46-1.html)","sha256":"0136d487818563b4155aab8bd702832eb00fc512193e7fdaec4a9237f6e04dfb","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"figure":{"caption":"同一图像杯柄正点对应整杯和杯柄两个教学掩码；增加框与杯身正点以约束整体目标。 查看对应图解状态","labels":["增加框和杯身正点","整只杯子","新增提示","缩小目标歧义","正点：要求包含","负点：要求排除","由提示约束希望分出的区域","点、框等提示指定分割区域；图示掩码为教学标注。"],"description":"同一图像杯柄正点对应整杯和杯柄两个教学掩码；增加框与杯身正点以约束整体目标。增加框和杯身正点整只杯子新增提示缩小目标歧义正点：要求包含负点：要求排除由提示约束希望分出的区域点、框等提示指定分割区域；图示掩码为教学标注。","evidenceIdentity":"同一图像杯柄正点对应整杯和杯柄两个教学掩码；增加框与杯身正点以约束整体目标。 查看对应图解状态","images":[{"src":"/assets/display/8ced939a1fd55047fbf73ea5.webp","alt":""}]},"previousBlock":"b-f1846b2331feb3763b9d7bd6","nextBlock":"b-07270b87d2fc571b83a732d5","prerequisites":[{"id":"b-3a572afdd0f175c57a743214","url":"#b-3a572afdd0f175c57a743214","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-07270b87d2fc571b83a732d5","type":"h2","scope":"narrative","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-07270b87d2fc571b83a732d5","content":"## 课堂讲述","sha256":"786ce10a6b32a492259a3dccd0a54e61cd41d28a34382fb7b5386c5f03b7ad69","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-1857ff6a7ab2f27c49dc499c","nextBlock":"b-15987bb947ca68d26f8a04ef","prerequisites":[{"id":"b-3a572afdd0f175c57a743214","url":"#b-3a572afdd0f175c57a743214","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-15987bb947ca68d26f8a04ef","type":"p","scope":"narrative","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-15987bb947ca68d26f8a04ef","content":"前面主要把任务写成固定的训练输出。SAM 带来另一种使用接口：先给图像，再通过点、框等提示指定当前关心的区域，模型返回符合提示的掩码。\n一个点未必只有一个正确解释。它落在杯柄上，我们可能关心杯柄，也可能关心整只杯子。增加提示是在减少这类歧义，而不是仅仅提高一个类别分数。\n因此，可提示分割和自动把所有物体检测出来、给它们命名，不是完全相同的任务。这个接口让模型更容易被复用于不同操作，但使用者仍要说清想分什么。接下来再看，这种能力怎样与前面讲过的预训练连接起来。","sha256":"201f0540781702a683000c7062b32a9dca150c0e8e8cdf031b8b14a237a4804d","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-07270b87d2fc571b83a732d5","nextBlock":"b-708b450abe2a34cf84b4f43c","prerequisites":[{"id":"b-07270b87d2fc571b83a732d5","url":"#b-07270b87d2fc571b83a732d5","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-708b450abe2a34cf84b4f43c","type":"h3","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-708b450abe2a34cf84b4f43c","content":"### SAM 的提示回答“这次要哪一块”","sha256":"1a92e46a40204827db6d80dd01bf721598d1e6dca2cf0bb7881084341995f825","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":"sam-prompt-contract","formulas":[],"previousBlock":"b-15987bb947ca68d26f8a04ef","nextBlock":"b-1b998727a4ab74584fc1e989","prerequisites":[{"id":"b-07270b87d2fc571b83a732d5","url":"#b-07270b87d2fc571b83a732d5","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"},{"id":"b-1b998727a4ab74584fc1e989","url":"#b-1b998727a4ab74584fc1e989","relation":"same-reasoning"},{"id":"b-724e663eaeefc65442378c26","url":"#b-724e663eaeefc65442378c26","relation":"same-reasoning"},{"id":"b-392b6e4388bbbb62d910b577","url":"#b-392b6e4388bbbb62d910b577","relation":"same-reasoning"},{"id":"b-66474f4ec992417787f26807","url":"#b-66474f4ec992417787f26807","relation":"same-reasoning"}]},{"id":"b-1b998727a4ab74584fc1e989","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-1b998727a4ab74584fc1e989","content":"在杯柄上给一个正点，并不唯一规定目标是杯柄、整只杯子还是更大的对象组合。提示式分割的任务是根据图像与提示返回合理 mask；提示增加信息，但不必天然消除所有歧义。","sha256":"56e7c036b4f4f45007a9bb867592b5303af825844c50e015a082b7a5ff5f8446","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":"sam-prompt-contract","formulas":[],"previousBlock":"b-708b450abe2a34cf84b4f43c","nextBlock":"b-724e663eaeefc65442378c26","prerequisites":[{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"},{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","relation":"same-reasoning"},{"id":"b-724e663eaeefc65442378c26","url":"#b-724e663eaeefc65442378c26","relation":"same-reasoning"},{"id":"b-392b6e4388bbbb62d910b577","url":"#b-392b6e4388bbbb62d910b577","relation":"same-reasoning"},{"id":"b-66474f4ec992417787f26807","url":"#b-66474f4ec992417787f26807","relation":"same-reasoning"}]},{"id":"b-724e663eaeefc65442378c26","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-724e663eaeefc65442378c26","content":"几何提示可以分工：正点表示希望包含的位置，负点表示希望排除的位置，框给出大致区域，已有 mask 可以作为进一步修正的输入。它们不是人工直接提供完整答案，却约束了本次想处理的对象。模型须结合图像线索填出边界。","sha256":"b4fc40a21ed69c43b6d314267ce3e4c2d4c5b7ac80bea0111de8c7fdda89c3ae","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":"sam-prompt-contract","formulas":[],"previousBlock":"b-1b998727a4ab74584fc1e989","nextBlock":"b-392b6e4388bbbb62d910b577","prerequisites":[{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"},{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","relation":"same-reasoning"},{"id":"b-1b998727a4ab74584fc1e989","url":"#b-1b998727a4ab74584fc1e989","relation":"same-reasoning"},{"id":"b-392b6e4388bbbb62d910b577","url":"#b-392b6e4388bbbb62d910b577","relation":"same-reasoning"},{"id":"b-66474f4ec992417787f26807","url":"#b-66474f4ec992417787f26807","relation":"same-reasoning"}]},{"id":"b-392b6e4388bbbb62d910b577","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-392b6e4388bbbb62d910b577","content":"原始 SAM 将图像编码、提示编码和 mask 解码分开。同一图像的较重表示可缓存，用户改点、改框时重复较轻的后半段。它也能为模糊提示给出多个 mask 与估计质量，从而容纳“部分还是整体”的不同解释。","sha256":"0477ef728ef80f0e9c50f2e6e04b9240e3247b8ec2e7d94d69df73c5cb655bef","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":"sam-prompt-contract","formulas":[],"previousBlock":"b-724e663eaeefc65442378c26","nextBlock":"b-66474f4ec992417787f26807","prerequisites":[{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"},{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","relation":"same-reasoning"},{"id":"b-1b998727a4ab74584fc1e989","url":"#b-1b998727a4ab74584fc1e989","relation":"same-reasoning"},{"id":"b-724e663eaeefc65442378c26","url":"#b-724e663eaeefc65442378c26","relation":"same-reasoning"},{"id":"b-66474f4ec992417787f26807","url":"#b-66474f4ec992417787f26807","relation":"same-reasoning"}]},{"id":"b-66474f4ec992417787f26807","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-66474f4ec992417787f26807","content":"本页教学图显示提示与目标的对应关系；若要评价模型，应保存真正返回的 mask，并先约定期望的对象粒度。用户给一个点后显示手工真值，不能替代推理证据。LAB16 目前保留的是确定性颜色/连通域规则，适合比较接口，不冒充 SAM 权重推理。","sha256":"fcbf0787095b9e16d8ae3b231dd82815ec22356d221f1c8dcfed08e0d3dab8d0","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":"sam-prompt-contract","formulas":[],"previousBlock":"b-392b6e4388bbbb62d910b577","nextBlock":"b-b103fe9cabc1bd402d613a71","prerequisites":[{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"},{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","relation":"same-reasoning"},{"id":"b-1b998727a4ab74584fc1e989","url":"#b-1b998727a4ab74584fc1e989","relation":"same-reasoning"},{"id":"b-724e663eaeefc65442378c26","url":"#b-724e663eaeefc65442378c26","relation":"same-reasoning"},{"id":"b-392b6e4388bbbb62d910b577","url":"#b-392b6e4388bbbb62d910b577","relation":"same-reasoning"}]},{"id":"b-b103fe9cabc1bd402d613a71","type":"h4","scope":"prompt-mask-granularity","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-b103fe9cabc1bd402d613a71","content":"#### 图示条件与公式约定","sha256":"ef7f915c1ae63ed67bd23fecf050249273ba0efa8965d2c8d1c1c6b2d3178122","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-66474f4ec992417787f26807","nextBlock":"b-00496628b1f9ee83ad6120ba","prerequisites":[{"id":"b-708b450abe2a34cf84b4f43c","url":"#b-708b450abe2a34cf84b4f43c","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-00496628b1f9ee83ad6120ba","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-00496628b1f9ee83ad6120ba","content":"原始 SAM 主流程以几何提示训练，单点允许整体/部件歧义，模型设计支持多个候选掩码。此处是任务标注，不是本轮运行。原论文另有 text-to-mask 探索；此图不展开，也不把组合 grounding 能力归给本图接口。","sha256":"431099aa1c7b85b26fb66aca6c0b446fe2002817daaae4f5aa3ba737631ef1c2","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-b103fe9cabc1bd402d613a71","nextBlock":"b-7746767883bc15535cc1d637","prerequisites":[{"id":"b-b103fe9cabc1bd402d613a71","url":"#b-b103fe9cabc1bd402d613a71","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-7746767883bc15535cc1d637","type":"h4","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-7746767883bc15535cc1d637","content":"#### 这条线索的展开与后续阅读","sha256":"48b8229f7559b36ed4d5628416e3991e5c73293fbce43374db67386c8736f3bc","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-00496628b1f9ee83ad6120ba","nextBlock":"b-4353f1197a4a6a7039767791","prerequisites":[{"id":"b-b103fe9cabc1bd402d613a71","url":"#b-b103fe9cabc1bd402d613a71","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-4353f1197a4a6a7039767791","type":"ul","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-4353f1197a4a6a7039767791","content":"- [提示变了，这次要分割谁？](/supplement.html?return=l3-r2-p46/0#/l3-sam/0) 本页说明","sha256":"e8e40a7a7b4e26d61dd8e67ff3937e85c82fc92f6a2b084d5d3eaff994a319dc","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-7746767883bc15535cc1d637","nextBlock":"b-9e93a0473a5e42898069987d","prerequisites":[{"id":"b-7746767883bc15535cc1d637","url":"#b-7746767883bc15535cc1d637","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-9e93a0473a5e42898069987d","type":"li","scope":"retained-reading","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-9e93a0473a5e42898069987d","content":"- [提示变了，这次要分割谁？](/supplement.html?return=l3-r2-p46/0#/l3-sam/0) 本页说明","sha256":"e8e40a7a7b4e26d61dd8e67ff3937e85c82fc92f6a2b084d5d3eaff994a319dc","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-mask-granularity","title":"一个正点可能指局部，也可能指整体","number":1},"sectionTitle":"一个正点可能指局部，也可能指整体","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4353f1197a4a6a7039767791","nextBlock":null,"prerequisites":[{"id":"b-7746767883bc15535cc1d637","url":"#b-7746767883bc15535cc1d637","role":"section-title"},{"id":"b-f1846b2331feb3763b9d7bd6","url":"#b-f1846b2331feb3763b9d7bd6","role":"problem-context"}],"relatedBlocks":[{"id":"b-1857ff6a7ab2f27c49dc499c","url":"#b-1857ff6a7ab2f27c49dc499c","relation":"figure-and-explanation"}]},{"id":"b-9e7b7e1122787070f1872d10","type":"h2","scope":"prompt-lab16-rule-baseline","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-9e7b7e1122787070f1872d10","content":"## 选读：用透明规则检查点、框与容差","sha256":"56c5c03d13a4d645a156e50d4a6c55013f7baa55d8fed21e1d31de7c8aadc5c5","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-5b073eb28373588b98faa342","prerequisites":[{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-5b073eb28373588b98faa342","type":"p","scope":"prompt-lab16-rule-baseline","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-5b073eb28373588b98faa342","content":"规则对照让每项变化可解释，同时保留与 SAM 权重推理的身份区别。","sha256":"c97e2c454a9a2bdb21e76e4dbe02f44990a99fcadd409a26f09aa5aadece41c2","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-9e7b7e1122787070f1872d10","nextBlock":"b-bf3b20a7587c44906a38262b","prerequisites":[{"id":"b-9e7b7e1122787070f1872d10","url":"#b-9e7b7e1122787070f1872d10","role":"section-title"}],"relatedBlocks":[]},{"id":"b-bf3b20a7587c44906a38262b","type":"h3","scope":"sam-rule-baseline-explained","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-bf3b20a7587c44906a38262b","content":"### LAB16：颜色连通域让提示的作用变得透明","sha256":"8030ffbf81056c0f73dab79c4c6a5655a83eca33f4f75a7544143b163724db03","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"LAB16：颜色连通域让提示的作用变得透明","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":"sam-rule-baseline-explained","formulas":[],"previousBlock":"b-5b073eb28373588b98faa342","nextBlock":"b-4ed1748ae38ab27495535309","prerequisites":[{"id":"b-9e7b7e1122787070f1872d10","url":"#b-9e7b7e1122787070f1872d10","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[{"id":"b-4ed1748ae38ab27495535309","url":"#b-4ed1748ae38ab27495535309","relation":"same-reasoning"},{"id":"b-d79283f1f78fcebb3d97bc72","url":"#b-d79283f1f78fcebb3d97bc72","relation":"same-reasoning"},{"id":"b-c33e512b0288e280d261899a","url":"#b-c33e512b0288e280d261899a","relation":"same-reasoning"},{"id":"b-c0f56c8f47e02705a66acd0a","url":"#b-c0f56c8f47e02705a66acd0a","relation":"same-reasoning"}]},{"id":"b-4ed1748ae38ab27495535309","type":"p","scope":"sam-rule-baseline-explained","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-4ed1748ae38ab27495535309","content":"当前 LAB16 输入 48×64 RGB 图像，含红色外壳、深红内部零件与蓝物体。代码从正点像素取颜色，选择颜色距离在容差内的像素，再保留与正点四邻连通的部分。负点排除与负点颜色太相似的位置；框只限制允许区域。","sha256":"0ea93c8189c66e77304ac1f4f9dde95a1d382a8f7d7323980890a7e8397e51e6","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"LAB16：颜色连通域让提示的作用变得透明","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":"sam-rule-baseline-explained","formulas":[],"previousBlock":"b-bf3b20a7587c44906a38262b","nextBlock":"b-d79283f1f78fcebb3d97bc72","prerequisites":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","relation":"same-reasoning"},{"id":"b-d79283f1f78fcebb3d97bc72","url":"#b-d79283f1f78fcebb3d97bc72","relation":"same-reasoning"},{"id":"b-c33e512b0288e280d261899a","url":"#b-c33e512b0288e280d261899a","relation":"same-reasoning"},{"id":"b-c0f56c8f47e02705a66acd0a","url":"#b-c0f56c8f47e02705a66acd0a","relation":"same-reasoning"}]},{"id":"b-d79283f1f78fcebb3d97bc72","type":"p","scope":"sam-rule-baseline-explained","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-d79283f1f78fcebb3d97bc72","content":"已有本地输出的面积为：紧容差 110，宽容差 837，增加外壳负点后 110，加框后 156。紧容差选择内部零件，宽容差把整个外壳纳入；框的面积 156 也可能截断物体。这些变化能直接从规则解释。","sha256":"4c557624835b36a583194eddac5a7e899b4c02b7570cac64ccd7d7bb29598e5a","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"LAB16：颜色连通域让提示的作用变得透明","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":"sam-rule-baseline-explained","formulas":[],"previousBlock":"b-4ed1748ae38ab27495535309","nextBlock":"b-c33e512b0288e280d261899a","prerequisites":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","relation":"same-reasoning"},{"id":"b-4ed1748ae38ab27495535309","url":"#b-4ed1748ae38ab27495535309","relation":"same-reasoning"},{"id":"b-c33e512b0288e280d261899a","url":"#b-c33e512b0288e280d261899a","relation":"same-reasoning"},{"id":"b-c0f56c8f47e02705a66acd0a","url":"#b-c0f56c8f47e02705a66acd0a","relation":"same-reasoning"}]},{"id":"b-c33e512b0288e280d261899a","type":"p","scope":"sam-rule-baseline-explained","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-c33e512b0288e280d261899a","content":"因此它适合回答“提示和算法假设共同怎样改变结果”，不能回答“SAM 学会了什么”。它确实读入像素并输出 mask，但没有可学习参数，没有加载 SAM checkpoint，也没有语义泛化证据。保留这项透明练习，比给它错误模型身份更有教学价值。","sha256":"4da8ba93b7a9d464be4d626338644c5c4d5729eb6ee6e69359bb744d7642035c","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"LAB16：颜色连通域让提示的作用变得透明","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":"sam-rule-baseline-explained","formulas":[],"previousBlock":"b-d79283f1f78fcebb3d97bc72","nextBlock":"b-c0f56c8f47e02705a66acd0a","prerequisites":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","relation":"same-reasoning"},{"id":"b-4ed1748ae38ab27495535309","url":"#b-4ed1748ae38ab27495535309","relation":"same-reasoning"},{"id":"b-d79283f1f78fcebb3d97bc72","url":"#b-d79283f1f78fcebb3d97bc72","relation":"same-reasoning"},{"id":"b-c0f56c8f47e02705a66acd0a","url":"#b-c0f56c8f47e02705a66acd0a","relation":"same-reasoning"}]},{"id":"b-c0f56c8f47e02705a66acd0a","type":"p","scope":"sam-rule-baseline-explained","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-c0f56c8f47e02705a66acd0a","content":"读完可以把同一个正点移到蓝物体，预测容差和负点的作用；或对照官方 SAM predictor 的输入输出接口，标明哪些步骤仍需真实权重推理。此处不把未来模型运行写成已经完成。","sha256":"014d3e686af1d67cf2f7363ad92439dd1a233edd6fea947dbe71b9cdac105596","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"LAB16：颜色连通域让提示的作用变得透明","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":"sam-rule-baseline-explained","formulas":[],"previousBlock":"b-c33e512b0288e280d261899a","nextBlock":"b-36a24ca4141d12813896e9a0","prerequisites":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","relation":"same-reasoning"},{"id":"b-4ed1748ae38ab27495535309","url":"#b-4ed1748ae38ab27495535309","relation":"same-reasoning"},{"id":"b-d79283f1f78fcebb3d97bc72","url":"#b-d79283f1f78fcebb3d97bc72","relation":"same-reasoning"},{"id":"b-c33e512b0288e280d261899a","url":"#b-c33e512b0288e280d261899a","relation":"same-reasoning"}]},{"id":"b-36a24ca4141d12813896e9a0","type":"h3","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-36a24ca4141d12813896e9a0","content":"### 沿着图解追问","sha256":"f16be0424762a44344338696f06ef266c4571d15367ae2cbbd28fac98ac7e9cb","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c0f56c8f47e02705a66acd0a","nextBlock":"b-c325210952cda38dfe45362b","prerequisites":[{"id":"b-bf3b20a7587c44906a38262b","url":"#b-bf3b20a7587c44906a38262b","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-c325210952cda38dfe45362b","type":"p","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-c325210952cda38dfe45362b","content":"以下是备课用的模拟师生对话，不是课堂实录。","sha256":"b25685f04cd1b885f3a5999e6a912460c7424021cdc5b2190584242086a82681","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-36a24ca4141d12813896e9a0","nextBlock":"b-c0343b3822dee2668f49b3ee","prerequisites":[{"id":"b-36a24ca4141d12813896e9a0","url":"#b-36a24ca4141d12813896e9a0","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-c0343b3822dee2668f49b3ee","type":"p","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-c0343b3822dee2668f49b3ee","content":"**学生：**给一个正点，模型为什么会给多个 mask？","sha256":"4f4b98de7865232edca36ef4b0fc099bed0f30a719a9749de83810601c809399","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c325210952cda38dfe45362b","nextBlock":"b-66de48c8cecea02e038fd04a","prerequisites":[{"id":"b-36a24ca4141d12813896e9a0","url":"#b-36a24ca4141d12813896e9a0","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-66de48c8cecea02e038fd04a","type":"p","scope":"dialogue","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-66de48c8cecea02e038fd04a","content":"**教师：**正点可能落在局部与整体的共同位置。多个合理候选表达这种歧义；再给负点或框，才有额外条件帮助选定想要的粒度。","sha256":"11f9baa0d47ea9017d680c42cbea9952303f95cd548597f1e4690c4a84652ea5","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c0343b3822dee2668f49b3ee","nextBlock":"b-172da5041da471c53d954c5a","prerequisites":[{"id":"b-36a24ca4141d12813896e9a0","url":"#b-36a24ca4141d12813896e9a0","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-172da5041da471c53d954c5a","type":"h2","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-172da5041da471c53d954c5a","content":"## 沿这个问题继续","sha256":"cf44fcc62782fb4f6bdc42c16c5187d57556a03cb7ce6065e7bd9c36d8e7d733","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-66de48c8cecea02e038fd04a","nextBlock":"b-557f2a2fda1eebc8ed7f3854","prerequisites":[{"id":"b-36a24ca4141d12813896e9a0","url":"#b-36a24ca4141d12813896e9a0","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-557f2a2fda1eebc8ed7f3854","type":"p","scope":"practice","url":"https://codingai-lec03.pages.dev/course/pages/l3-r2-p46.html#b-557f2a2fda1eebc8ed7f3854","content":"先区分提示接口与训练来源；LAB16 作为规则对照选读，原始 SAM 机制按原论文核对。","sha256":"b145cd37b1934012763c01e4a841065fbe4aaa9585a9205f1cc1134ec29a3c1b","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"prompt-lab16-rule-baseline","title":"选读：用透明规则检查点、框与容差","number":2},"sectionTitle":"选读：用透明规则检查点、框与容差","currentQuestion":"点、框和已有表示怎样结合，提示能力又从哪里学来？","sourceSlides":["l3-r2-p46","l3-r2-p47"],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-172da5041da471c53d954c5a","nextBlock":null,"prerequisites":[{"id":"b-172da5041da471c53d954c5a","url":"#b-172da5041da471c53d954c5a","role":"section-title"},{"id":"b-5b073eb28373588b98faa342","url":"#b-5b073eb28373588b98faa342","role":"problem-context"}],"relatedBlocks":[]}]}
