{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"h 与 z：目标作用在哪一层？","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html","markdown":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.md","pages":[{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","unit":"h 与 z：目标作用在哪一层？","unitId":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","chapter":"course","number":1}],"aliases":[{"oldId":"b-91ef4fce78cf512e91bd6df3","targetId":"b-91ef4fce78cf512e91bd6df3","page":"reading-opening","operation":"move","beforeSHA256":"66fcbfd55e8ee49e9b36e857c1385fb66cc262f5d574a2759c494c801fe22adc","afterSHA256":"66fcbfd55e8ee49e9b36e857c1385fb66cc262f5d574a2759c494c801fe22adc","reason":"Same source body in authored semantic page"},{"oldId":"b-d306eaaa9508f392ff60cc18","targetId":"b-d306eaaa9508f392ff60cc18","page":"reading-opening","operation":"move","beforeSHA256":"af42780cc4fa2c83330b545170c1c81306b4846a0cda2afe32358af3cb392d2a","afterSHA256":"af42780cc4fa2c83330b545170c1c81306b4846a0cda2afe32358af3cb392d2a","reason":"Same source body in authored semantic page"},{"oldId":"b-94381e4529d822df72a49499","targetId":"b-94381e4529d822df72a49499","page":"reading-opening","operation":"move","beforeSHA256":"42cba31deccba2a350b9b23bd0ca1dcaa4c4c5cb9d35c773e1fcb89124788ccd","afterSHA256":"42cba31deccba2a350b9b23bd0ca1dcaa4c4c5cb9d35c773e1fcb89124788ccd","reason":"Same source body in authored semantic page"},{"oldId":"b-a976240efa3c92c49ae39cb4","targetId":"b-a976240efa3c92c49ae39cb4","page":"reading-opening","operation":"move","beforeSHA256":"7d0c53df1bc36d8ae47159a38d1da25d7b95cb99a23f0973fb743325017d6c63","afterSHA256":"7d0c53df1bc36d8ae47159a38d1da25d7b95cb99a23f0973fb743325017d6c63","reason":"Same source body in authored semantic page"},{"oldId":"b-43928df357678b2022b7bb72","targetId":"b-43928df357678b2022b7bb72","page":"reading-opening","operation":"move","beforeSHA256":"6ea25181c4cd2771dbacf9087e6571862f83df120276e77a8990bcee99691352","afterSHA256":"6ea25181c4cd2771dbacf9087e6571862f83df120276e77a8990bcee99691352","reason":"Same source body in authored semantic page"},{"oldId":"b-9d9676d9503f166e92d8b390","targetId":"b-9d9676d9503f166e92d8b390","page":"reading-opening","operation":"move","beforeSHA256":"b8ab2b679b421e5da542d6a900feb7547e977af8af2724e8fc780b382d8f275a","afterSHA256":"b8ab2b679b421e5da542d6a900feb7547e977af8af2724e8fc780b382d8f275a","reason":"Same source body in authored semantic page"},{"oldId":"b-d40e0790d81b58653f11283f","targetId":"b-d40e0790d81b58653f11283f","page":"reading-opening","operation":"move","beforeSHA256":"b2abf6cc88365d2b0cc4cd4c5d14b2ceb57b0dfb28c65854de1981e7f0367ecd","afterSHA256":"b2abf6cc88365d2b0cc4cd4c5d14b2ceb57b0dfb28c65854de1981e7f0367ecd","reason":"Same source body in authored semantic page"},{"oldId":"b-934314c42cc0526ceb857a59","targetId":"b-934314c42cc0526ceb857a59","page":"reading-opening","operation":"move","beforeSHA256":"7bbb190fa39955ab7ff06ac3f04f951bb297c5a55131c20ccc797b5d9f75e832","afterSHA256":"7bbb190fa39955ab7ff06ac3f04f951bb297c5a55131c20ccc797b5d9f75e832","reason":"Same source body in authored semantic page"},{"oldId":"b-e4de13c99ae2d2f3758f7970","targetId":"b-e4de13c99ae2d2f3758f7970","page":"reading-opening","operation":"move","beforeSHA256":"d8fdcd31c90e6cd2e4cfc8d2b9336ecebbe3d2b3c8e454eb9a94468b60203d29","afterSHA256":"d8fdcd31c90e6cd2e4cfc8d2b9336ecebbe3d2b3c8e454eb9a94468b60203d29","reason":"Same source body in authored semantic page"},{"oldId":"block-31c73a940ff348a4ae5a80a773d9e114--h-与-z目标作用在哪一层","targetId":"b-43928df357678b2022b7bb72","operation":"retain-source-identity"}],"blocks":[{"id":"b-91ef4fce78cf512e91bd6df3","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-91ef4fce78cf512e91bd6df3","content":"[LAB 06 · 颜色干预：视图、投影与读出](/course/notebooks/7c4f531113d7473abc174e2e014e1340.html)","sha256":"66fcbfd55e8ee49e9b36e857c1385fb66cc262f5d574a2759c494c801fe22adc","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-d306eaaa9508f392ff60cc18","prerequisites":[],"relatedBlocks":[]},{"id":"b-d306eaaa9508f392ff60cc18","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-d306eaaa9508f392ff60cc18","content":"# h 与 z：目标作用在哪一层？","sha256":"af42780cc4fa2c83330b545170c1c81306b4846a0cda2afe32358af3cb392d2a","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-91ef4fce78cf512e91bd6df3","nextBlock":"b-94381e4529d822df72a49499","prerequisites":[{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-94381e4529d822df72a49499","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-94381e4529d822df72a49499","content":"主线阅读与优先实验","sha256":"42cba31deccba2a350b9b23bd0ca1dcaa4c4c5cb9d35c773e1fcb89124788ccd","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-d306eaaa9508f392ff60cc18","nextBlock":"b-a976240efa3c92c49ae39cb4","prerequisites":[{"id":"b-d306eaaa9508f392ff60cc18","url":"#b-d306eaaa9508f392ff60cc18","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-a976240efa3c92c49ae39cb4","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-a976240efa3c92c49ae39cb4","content":"真实RGB对比训练、唯一指定增强变化、h/z形状与颜色读出","sha256":"7d0c53df1bc36d8ae47159a38d1da25d7b95cb99a23f0973fb743325017d6c63","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-94381e4529d822df72a49499","nextBlock":"b-43928df357678b2022b7bb72","prerequisites":[{"id":"b-d306eaaa9508f392ff60cc18","url":"#b-d306eaaa9508f392ff60cc18","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-43928df357678b2022b7bb72","type":"h2","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-43928df357678b2022b7bb72","content":"## h 与 z：目标作用在哪一层？","sha256":"6ea25181c4cd2771dbacf9087e6571862f83df120276e77a8990bcee99691352","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-a976240efa3c92c49ae39cb4","nextBlock":"b-9d9676d9503f166e92d8b390","prerequisites":[{"id":"b-d306eaaa9508f392ff60cc18","url":"#b-d306eaaa9508f392ff60cc18","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-9d9676d9503f166e92d8b390","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-9d9676d9503f166e92d8b390","content":"编码器 f 的三层卷积将 B×3×16×16 变成 B×24×4×4，再线性读出 h∈R⁴⁸。投影头 g 是 48→48→24 的两层 MLP，中间有 ReLU。损失作用于归一化的 z=g(h)，冻结评价分别读取 h 和 z。","sha256":"b8ab2b679b421e5da542d6a900feb7547e977af8af2724e8fc780b382d8f275a","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-43928df357678b2022b7bb72","nextBlock":"b-d40e0790d81b58653f11283f","prerequisites":[{"id":"b-43928df357678b2022b7bb72","url":"#b-43928df357678b2022b7bb72","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-d40e0790d81b58653f11283f","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-d40e0790d81b58653f11283f","content":"每批 N=60 个源图产生 2N 个向量。对第 i 个视图，另一个同源视图 j 是唯一正例：","sha256":"b2abf6cc88365d2b0cc4cd4c5d14b2ceb57b0dfb28c65854de1981e7f0367ecd","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-9d9676d9503f166e92d8b390","nextBlock":"b-934314c42cc0526ceb857a59","prerequisites":[{"id":"b-43928df357678b2022b7bb72","url":"#b-43928df357678b2022b7bb72","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-934314c42cc0526ceb857a59","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-934314c42cc0526ceb857a59","content":"$\\ell_i=-\\log\\frac{\\exp(\\mathrm{sim}(z_i,z_j)/\\tau)}{\\sum_{k\\ne i}\\exp(\\mathrm{sim}(z_i,z_k)/\\tau)},\\qquad \\tau=0.2.$","sha256":"7bbb190fa39955ab7ff06ac3f04f951bb297c5a55131c20ccc797b5d9f75e832","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[{"latex":"\\ell_i=-\\log\\frac{\\exp(\\mathrm{sim}(z_i,z_j)/\\tau)}{\\sum_{k\\ne i}\\exp(\\mathrm{sim}(z_i,z_k)/\\tau)},\\qquad \\tau=0.2.","definitionContext":"h 与 z：目标作用在哪一层？"}],"previousBlock":"b-d40e0790d81b58653f11283f","nextBlock":"b-e4de13c99ae2d2f3758f7970","prerequisites":[{"id":"b-43928df357678b2022b7bb72","url":"#b-43928df357678b2022b7bb72","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-e4de13c99ae2d2f3758f7970","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/31c73a940ff348a4ae5a80a773d9e114.html#b-e4de13c99ae2d2f3758f7970","content":"分母去掉自己，包含正例和其他源图的两视图；对 120 个锚点平均。其他源图可能恰好也是红圆，仍被当作负例：这是按源图身份定义的实例目标，未必完全符合形状类别。梯度从 z 经过投影头返回卷积编码器，所以投影头不构成阻止 h 丢信息的隔离墙。","sha256":"d8fdcd31c90e6cd2e4cfc8d2b9336ecebbe3d2b3c8e454eb9a94468b60203d29","chapter":{"id":"course","title":"h 与 z：目标作用在哪一层？"},"unit":{"id":"notebook-blocks/31c73a940ff348a4ae5a80a773d9e114","title":"h 与 z：目标作用在哪一层？"},"page":{"id":"reading-opening","title":"h 与 z：目标作用在哪一层？","number":1},"sectionTitle":"h 与 z：目标作用在哪一层？","currentQuestion":"h 与 z：目标作用在哪一层？","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-934314c42cc0526ceb857a59","nextBlock":null,"prerequisites":[{"id":"b-43928df357678b2022b7bb72","url":"#b-43928df357678b2022b7bb72","role":"section-title"},{"id":"b-91ef4fce78cf512e91bd6df3","url":"#b-91ef4fce78cf512e91bd6df3","role":"problem-context"}],"relatedBlocks":[]}]}
