{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.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/blocks/sam-prompt-contract.html","markdown":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.md","pages":[{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","unit":"提示怎样指定这一次要分的区域？","unitId":"prompted-spatial-output","chapter":"II","number":1}],"aliases":[{"oldId":"b-a642bf30c4975e4d6ff15d66","targetId":"b-a642bf30c4975e4d6ff15d66","page":"reading-opening","operation":"move","beforeSHA256":"d1a4868fcba58821033c0b31a20570d970dfa3aa226fbdb2d27509e32552814a","afterSHA256":"d1a4868fcba58821033c0b31a20570d970dfa3aa226fbdb2d27509e32552814a","reason":"Same source body in authored semantic page"},{"oldId":"b-801ad8a411103cd37259a1ff","targetId":"b-801ad8a411103cd37259a1ff","page":"reading-opening","operation":"move","beforeSHA256":"cc360b3357cf196b2e5ddeb14dfa0fc981c6483b9b6d354127392b41cd622396","afterSHA256":"cc360b3357cf196b2e5ddeb14dfa0fc981c6483b9b6d354127392b41cd622396","reason":"Same source body in authored semantic page"},{"oldId":"b-44149c3c4111b47c7ec6c8e0","targetId":"b-44149c3c4111b47c7ec6c8e0","page":"reading-opening","operation":"move","beforeSHA256":"56e7c036b4f4f45007a9bb867592b5303af825844c50e015a082b7a5ff5f8446","afterSHA256":"56e7c036b4f4f45007a9bb867592b5303af825844c50e015a082b7a5ff5f8446","reason":"Same source body in authored semantic page"},{"oldId":"b-a8af4130d7de2adc33b9f793","targetId":"b-a8af4130d7de2adc33b9f793","page":"reading-opening","operation":"move","beforeSHA256":"b4fc40a21ed69c43b6d314267ce3e4c2d4c5b7ac80bea0111de8c7fdda89c3ae","afterSHA256":"b4fc40a21ed69c43b6d314267ce3e4c2d4c5b7ac80bea0111de8c7fdda89c3ae","reason":"Same source body in authored semantic page"},{"oldId":"b-73dc7960ec9703edd2669d8c","targetId":"b-73dc7960ec9703edd2669d8c","page":"reading-opening","operation":"move","beforeSHA256":"0477ef728ef80f0e9c50f2e6e04b9240e3247b8ec2e7d94d69df73c5cb655bef","afterSHA256":"0477ef728ef80f0e9c50f2e6e04b9240e3247b8ec2e7d94d69df73c5cb655bef","reason":"Same source body in authored semantic page"},{"oldId":"b-59016614d952ec0851496d1c","targetId":"b-59016614d952ec0851496d1c","page":"reading-opening","operation":"move","beforeSHA256":"fcbf0787095b9e16d8ae3b231dd82815ec22356d221f1c8dcfed08e0d3dab8d0","afterSHA256":"fcbf0787095b9e16d8ae3b231dd82815ec22356d221f1c8dcfed08e0d3dab8d0","reason":"Same source body in authored semantic page"},{"oldId":"b-f6ac24d03fdb8becb020a9ac","targetId":"b-f6ac24d03fdb8becb020a9ac","page":"reading-opening","operation":"rewrite","beforeSHA256":"d3a3c4b263b8af701593023b13e79f312eb9706c4a42ce0fc292ee1780346382","afterSHA256":"1da599743dca7f1ad77ff98559e32b7ad334fa8160ae65a61d30ed8ed2e9a648","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-6b01b56437ca769ce8875f9e","targetId":"b-6b01b56437ca769ce8875f9e","page":"reading-opening","operation":"move","beforeSHA256":"2b9ccef7e1220e2250cceff1abd8bdd736b42f8da5a223f26b029f44b962e807","afterSHA256":"2b9ccef7e1220e2250cceff1abd8bdd736b42f8da5a223f26b029f44b962e807","reason":"Same source body in authored semantic page"}],"blocks":[{"id":"b-a642bf30c4975e4d6ff15d66","type":"h1","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-a642bf30c4975e4d6ff15d66","content":"# SAM 的提示回答“这次要哪一块”","sha256":"d1a4868fcba58821033c0b31a20570d970dfa3aa226fbdb2d27509e32552814a","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-801ad8a411103cd37259a1ff","prerequisites":[{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]},{"id":"b-801ad8a411103cd37259a1ff","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-801ad8a411103cd37259a1ff","content":"点和框指定本次目标，但一个点仍可能同时指向局部与整体。SAM 的可复用图像表示和轻量提示解码使交互更方便；当前 LAB16 是透明规则对照，应准确区分规则输出、教学标注和真正模型输出。","sha256":"cc360b3357cf196b2e5ddeb14dfa0fc981c6483b9b6d354127392b41cd622396","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-a642bf30c4975e4d6ff15d66","nextBlock":"b-44149c3c4111b47c7ec6c8e0","prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]},{"id":"b-44149c3c4111b47c7ec6c8e0","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-44149c3c4111b47c7ec6c8e0","content":"在杯柄上给一个正点，并不唯一规定目标是杯柄、整只杯子还是更大的对象组合。提示式分割的任务是根据图像与提示返回合理 mask；提示增加信息，但不必天然消除所有歧义。","sha256":"56e7c036b4f4f45007a9bb867592b5303af825844c50e015a082b7a5ff5f8446","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-801ad8a411103cd37259a1ff","nextBlock":"b-a8af4130d7de2adc33b9f793","prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"},{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]},{"id":"b-a8af4130d7de2adc33b9f793","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-a8af4130d7de2adc33b9f793","content":"几何提示可以分工：正点表示希望包含的位置，负点表示希望排除的位置，框给出大致区域，已有 mask 可以作为进一步修正的输入。它们不是人工直接提供完整答案，却约束了本次想处理的对象。模型须结合图像线索填出边界。","sha256":"b4fc40a21ed69c43b6d314267ce3e4c2d4c5b7ac80bea0111de8c7fdda89c3ae","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-44149c3c4111b47c7ec6c8e0","nextBlock":"b-73dc7960ec9703edd2669d8c","prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"},{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]},{"id":"b-73dc7960ec9703edd2669d8c","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-73dc7960ec9703edd2669d8c","content":"原始 SAM 将图像编码、提示编码和 mask 解码分开。同一图像的较重表示可缓存，用户改点、改框时重复较轻的后半段。它也能为模糊提示给出多个 mask 与估计质量，从而容纳“部分还是整体”的不同解释。","sha256":"0477ef728ef80f0e9c50f2e6e04b9240e3247b8ec2e7d94d69df73c5cb655bef","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-a8af4130d7de2adc33b9f793","nextBlock":"b-59016614d952ec0851496d1c","prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"},{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]},{"id":"b-59016614d952ec0851496d1c","type":"p","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-59016614d952ec0851496d1c","content":"本页教学图显示提示与目标的对应关系；若要评价模型，应保存真正返回的 mask，并先约定期望的对象粒度。用户给一个点后显示手工真值，不能替代推理证据。LAB16 目前保留的是确定性颜色/连通域规则，适合比较接口，不冒充 SAM 权重推理。","sha256":"fcbf0787095b9e16d8ae3b231dd82815ec22356d221f1c8dcfed08e0d3dab8d0","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-73dc7960ec9703edd2669d8c","nextBlock":"b-f6ac24d03fdb8becb020a9ac","prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"},{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]},{"id":"b-f6ac24d03fdb8becb020a9ac","type":"figure","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-f6ac24d03fdb8becb020a9ac","content":"图内标签与数值：Lecture 03 课堂图解 P46；增加框和杯身正点；整只杯子；新增提示；缩小目标歧义；正点：要求包含；负点：要求排除；由提示约束希望分出的区域；点、框等提示指定分割区域；图示掩码为教学标注。\n\n同一图像改变点或框，改变当前所问的区域。 查看对应图解状态\n\n- 增加框和杯身正点\n- 整只杯子\n- 新增提示\n- 缩小目标歧义\n- 正点：要求包含\n- 负点：要求排除\n- 由提示约束希望分出的区域\n- 点、框等提示指定分割区域；图示掩码为教学标注。同一图像改变点或框，改变当前所问的区域。 [查看对应图解状态](/#/l3-r2-p46/1)[查看完整图解](/#/l3-r2-p46/1)","sha256":"1da599743dca7f1ad77ff98559e32b7ad334fa8160ae65a61d30ed8ed2e9a648","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"figure":{"caption":"同一图像改变点或框，改变当前所问的区域。 查看对应图解状态","labels":["增加框和杯身正点","整只杯子","新增提示","缩小目标歧义","正点：要求包含","负点：要求排除","由提示约束希望分出的区域","点、框等提示指定分割区域；图示掩码为教学标注。"],"description":"同一图像改变点或框，改变当前所问的区域。 查看对应图解状态增加框和杯身正点整只杯子新增提示缩小目标歧义正点：要求包含负点：要求排除由提示约束希望分出的区域点、框等提示指定分割区域；图示掩码为教学标注。","evidenceIdentity":"同一图像改变点或框，改变当前所问的区域。 查看对应图解状态","images":[{"src":"/assets/display/8ced939a1fd55047fbf73ea5.webp","alt":""}]},"previousBlock":"b-59016614d952ec0851496d1c","nextBlock":"b-6b01b56437ca769ce8875f9e","prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"},{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-6b01b56437ca769ce8875f9e","type":"h2","scope":"sam-prompt-contract","url":"https://codingai-lec03.pages.dev/course/blocks/sam-prompt-contract.html#b-6b01b56437ca769ce8875f9e","content":"## 继续阅读与实验","sha256":"2b9ccef7e1220e2250cceff1abd8bdd736b42f8da5a223f26b029f44b962e807","chapter":{"id":"II","title":"区域、像素与实例"},"unit":{"id":"prompted-spatial-output","title":"提示怎样指定这一次要分的区域？"},"page":{"id":"reading-opening","title":"SAM 的提示回答“这次要哪一块”","number":1},"sectionTitle":"SAM 的提示回答“这次要哪一块”","currentQuestion":"SAM 的提示回答“这次要哪一块”","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f6ac24d03fdb8becb020a9ac","nextBlock":null,"prerequisites":[{"id":"b-a642bf30c4975e4d6ff15d66","url":"#b-a642bf30c4975e4d6ff15d66","role":"section-title"},{"id":"b-801ad8a411103cd37259a1ff","url":"#b-801ad8a411103cd37259a1ff","role":"problem-context"}],"relatedBlocks":[{"id":"b-f6ac24d03fdb8becb020a9ac","url":"#b-f6ac24d03fdb8becb020a9ac","relation":"figure-and-explanation"}]}]}
