{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"迁移可以只训练新分类头、解冻后部，或整体微调","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html","markdown":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.md","pages":[{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","unit":"迁移可以只训练新分类头、解冻后部，或整体微调","unitId":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","chapter":"course","number":1}],"aliases":[{"oldId":"b-29eda5e7aefa72ae09b870f7","targetId":"b-29eda5e7aefa72ae09b870f7","page":"reading-opening","operation":"move","beforeSHA256":"f107bd31e942a5cf605f3183c89731efbb5349a4bf8c063087e5d29bebde50b5","afterSHA256":"f107bd31e942a5cf605f3183c89731efbb5349a4bf8c063087e5d29bebde50b5","reason":"Same source body in authored semantic page"},{"oldId":"b-fa17f6ffcb05fb6635f061bd","targetId":"b-fa17f6ffcb05fb6635f061bd","page":"reading-opening","operation":"move","beforeSHA256":"db4910cb23fd780f4a163a9b8f8bd590f1bd940407e60b4f70cae2c7cf973131","afterSHA256":"db4910cb23fd780f4a163a9b8f8bd590f1bd940407e60b4f70cae2c7cf973131","reason":"Same source body in authored semantic page"},{"oldId":"b-c972ec65d63ce6f487b0bf01","targetId":"b-c972ec65d63ce6f487b0bf01","page":"reading-opening","operation":"move","beforeSHA256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","afterSHA256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","reason":"Same source body in authored semantic page"},{"oldId":"b-bb022238729f760add816935","targetId":"b-bb022238729f760add816935","page":"reading-opening","operation":"move","beforeSHA256":"5f1e2e7a35a6afaca427b0b03cfec448b4aac4324b16108f14671986a2d98b38","afterSHA256":"5f1e2e7a35a6afaca427b0b03cfec448b4aac4324b16108f14671986a2d98b38","reason":"Same source body in authored semantic page"},{"oldId":"b-f8e2db71992bcb9a2f05b000","targetId":"b-f8e2db71992bcb9a2f05b000","page":"reading-opening","operation":"move","beforeSHA256":"743f7ff001688d3fd8f001607314747499c29a834f3a8b57ba4de33a50791ae0","afterSHA256":"743f7ff001688d3fd8f001607314747499c29a834f3a8b57ba4de33a50791ae0","reason":"Same source body in authored semantic page"},{"oldId":"b-2575069a1db567e3877f50c6","targetId":"b-2575069a1db567e3877f50c6","page":"reading-opening","operation":"move","beforeSHA256":"79eaaaffdd9882253c3916d1ebaac1d9ea507abf90c5b0ba17bb95322c3f0d2b","afterSHA256":"79eaaaffdd9882253c3916d1ebaac1d9ea507abf90c5b0ba17bb95322c3f0d2b","reason":"Same source body in authored semantic page"},{"oldId":"b-bbcbcd13e1ad5757d5399a8a","targetId":"b-bbcbcd13e1ad5757d5399a8a","page":"reading-opening","operation":"rewrite","beforeSHA256":"d46c953ffc583e62a10a6c9c36c7682bf1a38745d2cc99fecb3623c56b0c7a17","afterSHA256":"53726d629b4dafcabac379f9dd5cf5f4b89b047d69a58976455e58267facdd6e","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-6876cd2b906ac70c83507654","targetId":"b-6876cd2b906ac70c83507654","page":"reading-opening","operation":"move","beforeSHA256":"1fb03d6956b1cd8ef67bdc56700240174a115de5a8510417f236f504b2f0f94b","afterSHA256":"1fb03d6956b1cd8ef67bdc56700240174a115de5a8510417f236f504b2f0f94b","reason":"Same source body in authored semantic page"},{"oldId":"b-f99c90a63fa6a27818377e90","targetId":"b-f99c90a63fa6a27818377e90","page":"reading-opening","operation":"move","beforeSHA256":"3e99597f362c701010faa3a4aad3ea21d721a31a6326ee28c2a294cf5f79e0af","afterSHA256":"3e99597f362c701010faa3a4aad3ea21d721a31a6326ee28c2a294cf5f79e0af","reason":"Same source body in authored semantic page"},{"oldId":"b-49193337a9c707726c8231e5","targetId":"b-49193337a9c707726c8231e5","page":"reading-opening","operation":"move","beforeSHA256":"029cb931c3edb8821ff9b7edf711311a13733d22e8595f026b8fb2d357d57806","afterSHA256":"029cb931c3edb8821ff9b7edf711311a13733d22e8595f026b8fb2d357d57806","reason":"Same source body in authored semantic page"},{"oldId":"b-a7779d425038fd525b43d01c","targetId":"b-a7779d425038fd525b43d01c","page":"reading-opening","operation":"move","beforeSHA256":"dd03c7cb5256b2c557373e639baac15bbd9be86a0a2468ba58e264c937a0f071","afterSHA256":"dd03c7cb5256b2c557373e639baac15bbd9be86a0a2468ba58e264c937a0f071","reason":"Same source body in authored semantic page"},{"oldId":"b-19cce1ef8e06badfceaf1de9","targetId":"b-19cce1ef8e06badfceaf1de9","page":"reading-opening","operation":"move","beforeSHA256":"34bff16da9169f6f9707284e6832f14d88f007b3a1f1a7410c4c43d463d13ac3","afterSHA256":"34bff16da9169f6f9707284e6832f14d88f007b3a1f1a7410c4c43d463d13ac3","reason":"Same source body in authored semantic page"},{"oldId":"b-bce3a2f994f5121b3fdfd085","targetId":"b-bce3a2f994f5121b3fdfd085","page":"reading-opening","operation":"move","beforeSHA256":"e6a3867ce2abb1ebb362d6010a21de0a15396b7f6d5397d6e758f541f9783b5f","afterSHA256":"e6a3867ce2abb1ebb362d6010a21de0a15396b7f6d5397d6e758f541f9783b5f","reason":"Same source body in authored semantic page"},{"oldId":"b-63aba67f3a90b02de22b4bc4","targetId":"b-63aba67f3a90b02de22b4bc4","page":"reading-opening","operation":"move","beforeSHA256":"eb6100ae069e0f2e80cad437e18f1b80d5fd52c209b2ebc6776b351784ef84db","afterSHA256":"eb6100ae069e0f2e80cad437e18f1b80d5fd52c209b2ebc6776b351784ef84db","reason":"Same source body in authored semantic page"},{"oldId":"b-9237d6f1e07e3a79fae69aec","targetId":"b-9237d6f1e07e3a79fae69aec","page":"reading-opening","operation":"move","beforeSHA256":"cbe6b81393f1f3d96060c19c28c6a4d2b85c3b2cb3bf2802e095a77295f423c3","afterSHA256":"cbe6b81393f1f3d96060c19c28c6a4d2b85c3b2cb3bf2802e095a77295f423c3","reason":"Same source body in authored semantic page"},{"oldId":"b-6e35c8088330a935ee2399e0","targetId":"b-6e35c8088330a935ee2399e0","page":"reading-opening","operation":"move","beforeSHA256":"051a9ece573f3d246724abacb6eec739dc0d36eff118c8253281e204b5df3d18","afterSHA256":"051a9ece573f3d246724abacb6eec739dc0d36eff118c8253281e204b5df3d18","reason":"Same source body in authored semantic page"}],"blocks":[{"id":"b-29eda5e7aefa72ae09b870f7","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-29eda5e7aefa72ae09b870f7","content":"[LAB 02 · 参数迁移：冻结、局部与全量微调](/course/notebooks/4bd450d54870432db91c80a4df563b8e.html)","sha256":"f107bd31e942a5cf605f3183c89731efbb5349a4bf8c063087e5d29bebde50b5","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-fa17f6ffcb05fb6635f061bd","prerequisites":[],"relatedBlocks":[]},{"id":"b-fa17f6ffcb05fb6635f061bd","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-fa17f6ffcb05fb6635f061bd","content":"# 迁移可以只训练新分类头、解冻后部，或整体微调","sha256":"db4910cb23fd780f4a163a9b8f8bd590f1bd940407e60b4f70cae2c7cf973131","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-29eda5e7aefa72ae09b870f7","nextBlock":"b-c972ec65d63ce6f487b0bf01","prerequisites":[{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-c972ec65d63ce6f487b0bf01","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-c972ec65d63ce6f487b0bf01","content":"按问题继续","sha256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-fa17f6ffcb05fb6635f061bd","nextBlock":"b-bb022238729f760add816935","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-bb022238729f760add816935","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-bb022238729f760add816935","content":"同源参数的冻结/局部/全量/scratch与BN模式辨析","sha256":"5f1e2e7a35a6afaca427b0b03cfec448b4aac4324b16108f14671986a2d98b38","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c972ec65d63ce6f487b0bf01","nextBlock":"b-f8e2db71992bcb9a2f05b000","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f8e2db71992bcb9a2f05b000","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-f8e2db71992bcb9a2f05b000","content":"迁移可以只训练新分类头、解冻后部，或整体微调。应固定数据划分与评价指标，使用相同预算或明确记录预算差异；训练集很小时，也要把冻结表示的简单读出作为基线。","sha256":"743f7ff001688d3fd8f001607314747499c29a834f3a8b57ba4de33a50791ae0","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bb022238729f760add816935","nextBlock":"b-2575069a1db567e3877f50c6","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-2575069a1db567e3877f50c6","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-2575069a1db567e3877f50c6","content":"三个开关控制不同对象：","sha256":"79eaaaffdd9882253c3916d1ebaac1d9ea507abf90c5b0ba17bb95322c3f0d2b","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f8e2db71992bcb9a2f05b000","nextBlock":"b-bbcbcd13e1ad5757d5399a8a","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-bbcbcd13e1ad5757d5399a8a","type":"table","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-bbcbcd13e1ad5757d5399a8a","content":"| 开关 | 改变什么 | 不自动保证什么 |\n| --- | --- | --- |\n| model.eval() | BN、Dropout 等模块的模式 | 不关闭自动求导 |\n| torch.no_grad() | 作用域内的梯度图记录 | 不切换 BN/Dropout 模式 |\n| parameter.requiresgrad(False) | 指定参数是否需要梯度 | 不冻结 BN 的运行统计 |","sha256":"53726d629b4dafcabac379f9dd5cf5f4b89b047d69a58976455e58267facdd6e","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"table":{"headers":["开关","改变什么","不自动保证什么"],"rows":[["开关","改变什么","不自动保证什么"],["model.eval()","BN、Dropout 等模块的模式","不关闭自动求导"],["torch.no_grad()","作用域内的梯度图记录","不切换 BN/Dropout 模式"],["parameter.requiresgrad(False)","指定参数是否需要梯度","不冻结 BN 的运行统计"]]},"previousBlock":"b-2575069a1db567e3877f50c6","nextBlock":"b-6876cd2b906ac70c83507654","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-6876cd2b906ac70c83507654","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-6876cd2b906ac70c83507654","content":"例如冻结 backbone 权重后，若它仍处于 train 模式，BN buffers 可能继续变化，Dropout 也可能继续随机屏蔽。普通预测常同时使用 eval 与 no_grad；输入梯度可视化可能需要 eval，但必须保留输入的梯度记录。应按任务组合开关，而非背一个通用模板。","sha256":"1fb03d6956b1cd8ef67bdc56700240174a115de5a8510417f236f504b2f0f94b","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bbcbcd13e1ad5757d5399a8a","nextBlock":"b-f99c90a63fa6a27818377e90","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f99c90a63fa6a27818377e90","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-f99c90a63fa6a27818377e90","content":"本节扩展了课后 BN 状态知识，主讲结课不以掌握这些 API 差异作为所有学生的通过条件。","sha256":"3e99597f362c701010faa3a4aad3ea21d721a31a6326ee28c2a294cf5f79e0af","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-6876cd2b906ac70c83507654","nextBlock":"b-49193337a9c707726c8231e5","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-49193337a9c707726c8231e5","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-49193337a9c707726c8231e5","content":"**先判断**：为了画输入敏感性图，先调用 eval() 是否会导致无法求输入梯度？","sha256":"029cb931c3edb8821ff9b7edf711311a13733d22e8595f026b8fb2d357d57806","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f99c90a63fa6a27818377e90","nextBlock":"b-a7779d425038fd525b43d01c","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-a7779d425038fd525b43d01c","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-a7779d425038fd525b43d01c","content":"**核对提示**：不会。eval 只切换特定模块模式；只要记录计算图并让输入 requiresgrad=True，仍可求梯度。若放在 nograd 作用域内，才会丢失需要的记录。","sha256":"dd03c7cb5256b2c557373e639baac15bbd9be86a0a2468ba58e264c937a0f071","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-49193337a9c707726c8231e5","nextBlock":"b-19cce1ef8e06badfceaf1de9","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-19cce1ef8e06badfceaf1de9","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-19cce1ef8e06badfceaf1de9","content":"**来源与继续阅读**","sha256":"34bff16da9169f6f9707284e6832f14d88f007b3a1f1a7410c4c43d463d13ac3","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-a7779d425038fd525b43d01c","nextBlock":"b-bce3a2f994f5121b3fdfd085","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-bce3a2f994f5121b3fdfd085","type":"ul","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-bce3a2f994f5121b3fdfd085","content":"- [PyTorch · Autograd mechanics and evaluation mode](https://docs.pytorch.org/docs/stable/notes/autograd.html)\n\n- [PyTorch · BatchNorm2d API](https://docs.pytorch.org/docs/stable/generated/torch.nn.BatchNorm2d.html)\n\n- [D2L 5.6 · Dropout](https://d2l.ai/chapter_multilayer-perceptrons/dropout.html)","sha256":"e6a3867ce2abb1ebb362d6010a21de0a15396b7f6d5397d6e758f541f9783b5f","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-19cce1ef8e06badfceaf1de9","nextBlock":"b-63aba67f3a90b02de22b4bc4","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-63aba67f3a90b02de22b4bc4","type":"li","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-63aba67f3a90b02de22b4bc4","content":"- [PyTorch · Autograd mechanics and evaluation mode](https://docs.pytorch.org/docs/stable/notes/autograd.html)","sha256":"eb6100ae069e0f2e80cad437e18f1b80d5fd52c209b2ebc6776b351784ef84db","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bce3a2f994f5121b3fdfd085","nextBlock":"b-9237d6f1e07e3a79fae69aec","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-9237d6f1e07e3a79fae69aec","type":"li","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-9237d6f1e07e3a79fae69aec","content":"- [PyTorch · BatchNorm2d API](https://docs.pytorch.org/docs/stable/generated/torch.nn.BatchNorm2d.html)","sha256":"cbe6b81393f1f3d96060c19c28c6a4d2b85c3b2cb3bf2802e095a77295f423c3","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-63aba67f3a90b02de22b4bc4","nextBlock":"b-6e35c8088330a935ee2399e0","prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-6e35c8088330a935ee2399e0","type":"li","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/0ef258c369294c3790069c7ff756bc1f.html#b-6e35c8088330a935ee2399e0","content":"- [D2L 5.6 · Dropout](https://d2l.ai/chapter_multilayer-perceptrons/dropout.html)","sha256":"051a9ece573f3d246724abacb6eec739dc0d36eff118c8253281e204b5df3d18","chapter":{"id":"course","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"unit":{"id":"notebook-blocks/0ef258c369294c3790069c7ff756bc1f","title":"迁移可以只训练新分类头、解冻后部，或整体微调"},"page":{"id":"reading-opening","title":"迁移可以只训练新分类头、解冻后部，或整体微调","number":1},"sectionTitle":"迁移可以只训练新分类头、解冻后部，或整体微调","currentQuestion":"迁移可以只训练新分类头、解冻后部，或整体微调","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-9237d6f1e07e3a79fae69aec","nextBlock":null,"prerequisites":[{"id":"b-fa17f6ffcb05fb6635f061bd","url":"#b-fa17f6ffcb05fb6635f061bd","role":"section-title"},{"id":"b-29eda5e7aefa72ae09b870f7","url":"#b-29eda5e7aefa72ae09b870f7","role":"problem-context"}],"relatedBlocks":[]}]}
