{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html","relationshipResolution":"Resolve relative relationship URLs against relationshipURLBase; complete records and absolute URLs are in blocks.","title":"LAB 08 · 图像重建：遮挡损失与表示评价","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html","markdown":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.md","pages":[{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":1},{"id":"reading-block-44a741e9a3334aa4b16f140a98179497","title":"索引热身仍然有用，但不能叫学到了语义","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":2},{"id":"reading-block-8430582e1f5e4998a68580017714e408","title":"运行准备与结果身份","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":3},{"id":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","title":"数据、破坏与瓶颈","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":4},{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":5},{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":6},{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":7},{"id":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","title":"表示评价给出另一份证据","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":8},{"id":"reading-block-18ba37010b894b2893332630cf8b3070","title":"与原MAE逐项对齐","unit":"LAB 08 · 图像重建：遮挡损失与表示评价","unitId":"lab08-遮挡重建与表示评价","chapter":"course","number":9}],"aliases":[{"oldId":"b-c671849c2036710178aad2e9","targetId":"b-c671849c2036710178aad2e9","page":"reading-opening","operation":"move","beforeSHA256":"7f3d345bf346d5db57eaa7e3b18e6d736d3095b010cff50685606e1d3a8fa42c","afterSHA256":"7f3d345bf346d5db57eaa7e3b18e6d736d3095b010cff50685606e1d3a8fa42c","reason":"Same source body in authored semantic page"},{"oldId":"b-c4d5916400ea43a393ce92ea","targetId":"b-c4d5916400ea43a393ce92ea","page":"reading-opening","operation":"move","beforeSHA256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","afterSHA256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","reason":"Same source body in authored semantic page"},{"oldId":"b-295b85ff3e0f49267437002d","targetId":"b-295b85ff3e0f49267437002d","page":"reading-opening","operation":"move","beforeSHA256":"0f845ef31b98ed8c96f689fea3088b0a7482be32b2d5510c83f9fcbb05da4c9d","afterSHA256":"0f845ef31b98ed8c96f689fea3088b0a7482be32b2d5510c83f9fcbb05da4c9d","reason":"Same source body in authored semantic page"},{"oldId":"b-98e433aab18f70d70d940f2c","targetId":"b-98e433aab18f70d70d940f2c","page":"reading-opening","operation":"move","beforeSHA256":"f22152fd55dcdb0090b5653d37145694fd19388d31e10226549464fe8b483578","afterSHA256":"f22152fd55dcdb0090b5653d37145694fd19388d31e10226549464fe8b483578","reason":"Same source body in authored semantic page"},{"oldId":"b-f147277ad426786a26f03f46","targetId":"b-f147277ad426786a26f03f46","page":"reading-opening","operation":"move","beforeSHA256":"8556351a0a818e5fa2ef8199862458dc0e7165abe7355c0f371bb6d655e593e9","afterSHA256":"8556351a0a818e5fa2ef8199862458dc0e7165abe7355c0f371bb6d655e593e9","reason":"Same source body in authored semantic page"},{"oldId":"b-499aa0517d967824b16b77d6","targetId":"b-499aa0517d967824b16b77d6","page":"reading-opening","operation":"move","beforeSHA256":"318354340f6400ba4b75531df2ac69ab8253c32abf1ae13da28809001b9464d2","afterSHA256":"318354340f6400ba4b75531df2ac69ab8253c32abf1ae13da28809001b9464d2","reason":"Same source body in authored semantic page"},{"oldId":"b-8ecae967cb9f59ac67e52265","targetId":"b-8ecae967cb9f59ac67e52265","page":"reading-opening","operation":"move","beforeSHA256":"4bb869394d672fd0c84f0dc089d0074c9d6881ff299a11b0f38eda4e4000e7a8","afterSHA256":"4bb869394d672fd0c84f0dc089d0074c9d6881ff299a11b0f38eda4e4000e7a8","reason":"Same source body in authored semantic page"},{"oldId":"b-4dda0a63f7862e8d3c42d9d1","targetId":"b-4dda0a63f7862e8d3c42d9d1","page":"reading-opening","operation":"move","beforeSHA256":"3fec50da48729f40c76110d67065cadb4077083a87140606ebab768bd8b10360","afterSHA256":"3fec50da48729f40c76110d67065cadb4077083a87140606ebab768bd8b10360","reason":"Same source body in authored semantic page"},{"oldId":"b-47e1f51b6ad4f3194d5385ff","targetId":"b-47e1f51b6ad4f3194d5385ff","page":"reading-opening","operation":"move","beforeSHA256":"53664b678211e118eca6cdb1b5f1ccda4bd021cefe38a6db4910fa6295ffd20d","afterSHA256":"53664b678211e118eca6cdb1b5f1ccda4bd021cefe38a6db4910fa6295ffd20d","reason":"Same source body in authored semantic page"},{"oldId":"b-e66d75a574761b29b421e724","targetId":"b-e66d75a574761b29b421e724","page":"reading-block-44a741e9a3334aa4b16f140a98179497","operation":"move","beforeSHA256":"c7ddd926153f66a12ff50445e4f0c91d5b1b3bdd966cdc956f2f98dfc816e780","afterSHA256":"c7ddd926153f66a12ff50445e4f0c91d5b1b3bdd966cdc956f2f98dfc816e780","reason":"Same source body in authored semantic page"},{"oldId":"b-d9a0fde8dfb440bfc14b2310","targetId":"b-d9a0fde8dfb440bfc14b2310","page":"reading-block-44a741e9a3334aa4b16f140a98179497","operation":"move","beforeSHA256":"87299f7751b6bc58e001a1cac6a5323dd0001ad6d4f42408db1fc6f2d370de31","afterSHA256":"87299f7751b6bc58e001a1cac6a5323dd0001ad6d4f42408db1fc6f2d370de31","reason":"Same source body in authored semantic page"},{"oldId":"b-78151608f7bf6695b6a8f3a3","targetId":"b-78151608f7bf6695b6a8f3a3","page":"reading-block-44a741e9a3334aa4b16f140a98179497","operation":"move","beforeSHA256":"9d9abf237d90a9561e1846c380f3fcdce763427c83b474ae06bfeb3ad755dcfb","afterSHA256":"9d9abf237d90a9561e1846c380f3fcdce763427c83b474ae06bfeb3ad755dcfb","reason":"Same source body in authored semantic page"},{"oldId":"b-f4faf739c9e4c64400990bca","targetId":"b-f4faf739c9e4c64400990bca","page":"reading-block-44a741e9a3334aa4b16f140a98179497","operation":"move","beforeSHA256":"a5e8ed9d3fedff981b54ed3173e41c010f861683fde366e467627a295d351e8f","afterSHA256":"a5e8ed9d3fedff981b54ed3173e41c010f861683fde366e467627a295d351e8f","reason":"Same source body in authored semantic page"},{"oldId":"b-bfe1d0da286011c91c075e92","targetId":"b-bfe1d0da286011c91c075e92","page":"reading-block-8430582e1f5e4998a68580017714e408","operation":"move","beforeSHA256":"9bbc7527a59bb35d5da5d51d5f5bc342082de91f94066bfa434ed27e431f230a","afterSHA256":"9bbc7527a59bb35d5da5d51d5f5bc342082de91f94066bfa434ed27e431f230a","reason":"Same source body in authored semantic page"},{"oldId":"b-4875577c5a31d91e08e78988","targetId":"b-4875577c5a31d91e08e78988","page":"reading-block-8430582e1f5e4998a68580017714e408","operation":"move","beforeSHA256":"7c7112f4f7442896ffc602e4bca9c95cb6afe323f539ecace8877e95dc68b391","afterSHA256":"7c7112f4f7442896ffc602e4bca9c95cb6afe323f539ecace8877e95dc68b391","reason":"Same source body in authored semantic page"},{"oldId":"b-3dfae8b72d944a782d35e739","targetId":"b-3dfae8b72d944a782d35e739","page":"reading-block-8430582e1f5e4998a68580017714e408","operation":"move","beforeSHA256":"45cb652f6dde94cb2e85f0a141910fa3060c64947b747c6458e059c5d93f374c","afterSHA256":"45cb652f6dde94cb2e85f0a141910fa3060c64947b747c6458e059c5d93f374c","reason":"Same source body in authored semantic page"},{"oldId":"b-b528045d700f84acd323c3c6","targetId":"b-b528045d700f84acd323c3c6","page":"reading-block-8430582e1f5e4998a68580017714e408","operation":"move","beforeSHA256":"d054471d9556f974200f75070e378e4dfc31a7a89323ebc8ceddb672b594ed38","afterSHA256":"d054471d9556f974200f75070e378e4dfc31a7a89323ebc8ceddb672b594ed38","reason":"Same source body in authored semantic page"},{"oldId":"b-f85456d929c019366c234b5f","targetId":"b-f85456d929c019366c234b5f","page":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","operation":"move","beforeSHA256":"ffd82c5a863f2930d5cea61e508a508c1126c1a93e8bd026430f0daa4e1aa161","afterSHA256":"ffd82c5a863f2930d5cea61e508a508c1126c1a93e8bd026430f0daa4e1aa161","reason":"Same source body in authored semantic page"},{"oldId":"b-c7054669f67b0e97885b920a","targetId":"b-c7054669f67b0e97885b920a","page":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","operation":"move","beforeSHA256":"b5b552b03d3348b7ffa5e79b679ae61d1637f36cb0126bd432501592ccf384e4","afterSHA256":"b5b552b03d3348b7ffa5e79b679ae61d1637f36cb0126bd432501592ccf384e4","reason":"Same source body in authored semantic page"},{"oldId":"b-8ab2a6947e18100af24327cf","targetId":"b-8ab2a6947e18100af24327cf","page":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","operation":"move","beforeSHA256":"dddc3aa4792ce564399c5a9042008ef6961c269f1be67e70b99cb08f9ee8143d","afterSHA256":"dddc3aa4792ce564399c5a9042008ef6961c269f1be67e70b99cb08f9ee8143d","reason":"Same source body in authored semantic page"},{"oldId":"b-53c1ab8dbd1e8c6ccd7d166d","targetId":"b-53c1ab8dbd1e8c6ccd7d166d","page":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","operation":"move","beforeSHA256":"e66f545513713358d5ac1cd3ddcc275038454a49c79c2353a84651c3442edbdd","afterSHA256":"e66f545513713358d5ac1cd3ddcc275038454a49c79c2353a84651c3442edbdd","reason":"Same source body in authored semantic page"},{"oldId":"b-9347daadb585e9fcf6cbba28","targetId":"b-9347daadb585e9fcf6cbba28","page":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","operation":"move","beforeSHA256":"e69117b96838ca54dc91ac1267742da52d685277ae4d6dc3dbbec80d69fece9c","afterSHA256":"e69117b96838ca54dc91ac1267742da52d685277ae4d6dc3dbbec80d69fece9c","reason":"Same source body in authored semantic page"},{"oldId":"b-73765ded8b32e00a8ae89687","targetId":"b-73765ded8b32e00a8ae89687","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"1e535ce05cfe5eb3201aafe7ef126832c60a9410ac57616575ebfde505c66446","afterSHA256":"1e535ce05cfe5eb3201aafe7ef126832c60a9410ac57616575ebfde505c66446","reason":"Same source body in authored semantic page"},{"oldId":"b-678cafac523d6b5d7472c78b","targetId":"b-678cafac523d6b5d7472c78b","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"9060158f67fb888087b1cfe7c5d2615563c150a54cca1810d4c56bc38e373a25","afterSHA256":"9060158f67fb888087b1cfe7c5d2615563c150a54cca1810d4c56bc38e373a25","reason":"Same source body in authored semantic page"},{"oldId":"b-24b25f814c2dfd781930bb5a","targetId":"b-24b25f814c2dfd781930bb5a","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"753942ac9ea72b31d30c84cbe74029829e59d1719a4da85742d6b2c70eb963b4","afterSHA256":"753942ac9ea72b31d30c84cbe74029829e59d1719a4da85742d6b2c70eb963b4","reason":"Same source body in authored semantic page"},{"oldId":"b-0630d8fa2381c2716fc011ad","targetId":"b-0630d8fa2381c2716fc011ad","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"42cabe6994680b53287da6245e3f0848e31c397c51a1e603a17a7b92beb42962","afterSHA256":"42cabe6994680b53287da6245e3f0848e31c397c51a1e603a17a7b92beb42962","reason":"Same source body in authored semantic page"},{"oldId":"b-f776b232ca0a05977020776d","targetId":"b-f776b232ca0a05977020776d","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"79d395dacb4b5aa9e61ba1cfd4f2346b143578b0615df7f34834b5296f871c91","afterSHA256":"79d395dacb4b5aa9e61ba1cfd4f2346b143578b0615df7f34834b5296f871c91","reason":"Same source body in authored semantic page"},{"oldId":"b-4ece7bba9ef3b7611a767236","targetId":"b-4ece7bba9ef3b7611a767236","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"1cbb6c7f4f25501bf57adf425d88f283db4606e507ed82c508475aa5bdc67df6","afterSHA256":"1cbb6c7f4f25501bf57adf425d88f283db4606e507ed82c508475aa5bdc67df6","reason":"Same source body in authored semantic page"},{"oldId":"b-5639cb6a9ef7280755ffba73","targetId":"b-5639cb6a9ef7280755ffba73","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"cef23c50f292bcb2bca2815e5a828b3c6bc7aa17d2f02cb7bf45614e2ce86454","afterSHA256":"cef23c50f292bcb2bca2815e5a828b3c6bc7aa17d2f02cb7bf45614e2ce86454","reason":"Same source body in authored semantic page"},{"oldId":"b-3ca88b26b68510363a5a1b0b","targetId":"b-3ca88b26b68510363a5a1b0b","page":"reading-block-f7555aca3cff49f492d243beb43d1bf6","operation":"move","beforeSHA256":"fd7dacba87183ce44a34a20bde3f9f02f7f919850e060c6febd9cfde7935a1ef","afterSHA256":"fd7dacba87183ce44a34a20bde3f9f02f7f919850e060c6febd9cfde7935a1ef","reason":"Same source body in authored semantic page"},{"oldId":"b-dc27e60c80a0e2bbb78258da","targetId":"b-dc27e60c80a0e2bbb78258da","page":"reading-block-5dca5700ee4c417787a944e984502529","operation":"move","beforeSHA256":"66b2dace11fe3e1e1ac14aa4baad3bd70f35d66db29be4adb83a0909a35dad07","afterSHA256":"66b2dace11fe3e1e1ac14aa4baad3bd70f35d66db29be4adb83a0909a35dad07","reason":"Same source body in authored semantic page"},{"oldId":"b-de90debfe64f584de1b250f9","targetId":"b-de90debfe64f584de1b250f9","page":"reading-block-5dca5700ee4c417787a944e984502529","operation":"move","beforeSHA256":"91f9e054a47e5dff5f5eff0c1755d5af1d8d8a7561e448bf00f969d4963853e4","afterSHA256":"91f9e054a47e5dff5f5eff0c1755d5af1d8d8a7561e448bf00f969d4963853e4","reason":"Same source body in authored semantic page"},{"oldId":"b-8e95f434ebf6b69ea2b8a680","targetId":"b-8e95f434ebf6b69ea2b8a680","page":"reading-block-5dca5700ee4c417787a944e984502529","operation":"move","beforeSHA256":"a1d2c567d541da19ed6e84487f8acfe7004876cf28049f9f3f85db6ce856e984","afterSHA256":"a1d2c567d541da19ed6e84487f8acfe7004876cf28049f9f3f85db6ce856e984","reason":"Same source body in authored semantic page"},{"oldId":"b-9cb552c2366195d58cf6a0cc","targetId":"b-9cb552c2366195d58cf6a0cc","page":"reading-block-5dca5700ee4c417787a944e984502529","operation":"move","beforeSHA256":"1ed9fc03f7594779444088061d207504839c02ffaa69fda6d84d515f0192db5e","afterSHA256":"1ed9fc03f7594779444088061d207504839c02ffaa69fda6d84d515f0192db5e","reason":"Same source body in authored semantic page"},{"oldId":"b-cde09f72c290cf4824e642d1","targetId":"b-cde09f72c290cf4824e642d1","page":"reading-block-5dca5700ee4c417787a944e984502529","operation":"move","beforeSHA256":"346501991ef9efbc297a06f21a942a08d19a2941f1cd91dc0ee0f9ad87b2aec4","afterSHA256":"346501991ef9efbc297a06f21a942a08d19a2941f1cd91dc0ee0f9ad87b2aec4","reason":"Same source body in authored semantic page"},{"oldId":"b-a2b92c9a529903e540837e0a","targetId":"b-a2b92c9a529903e540837e0a","page":"reading-block-5dca5700ee4c417787a944e984502529","operation":"move","beforeSHA256":"494314c1f26aeeda8950fd4f9fa42aac5d81da1b3288f0e066ba185a85e42cfa","afterSHA256":"494314c1f26aeeda8950fd4f9fa42aac5d81da1b3288f0e066ba185a85e42cfa","reason":"Same source body in authored semantic page"},{"oldId":"b-31d13bd8c70f83976157b9fe","targetId":"b-31d13bd8c70f83976157b9fe","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"move","beforeSHA256":"1fcf124d95292a66d0028aa8136225908b256c15dbd114cbfd1c90d2580c2076","afterSHA256":"1fcf124d95292a66d0028aa8136225908b256c15dbd114cbfd1c90d2580c2076","reason":"Same source body in authored semantic page"},{"oldId":"b-4905e84d5bb457b52f822dd2","targetId":"b-4905e84d5bb457b52f822dd2","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"rewrite","beforeSHA256":"e665bdc8aa4b0203a7733b2bd0ea79a87b7389e50193d757313c0a22bb1169ad","afterSHA256":"8c1ead9c29c2954f6f3b19afcb9b79b9e0c0f6d06c2c0e0d2373f654ba32b840","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-07e13fb06527aeb13f7dba52","targetId":"b-07e13fb06527aeb13f7dba52","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"rewrite","beforeSHA256":"ec00088ad5db52899dd7efa5cd812ef2d1332e82a81ad4fd2c281044b6ed1373","afterSHA256":"f1cef90e363d220c1f87c8beae336e8029c68d18c99137d392955eb3b65a79a3","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-eeefa4cb5b4317785c661585","targetId":"b-eeefa4cb5b4317785c661585","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"move","beforeSHA256":"a482ae56cdefd9f6d63fc1937e9b4c285b7d967c3f106b66cf16b4ed29cf668b","afterSHA256":"52aa942b7ce525a5978e0c28331b8fc71484207ba7932fb99596d25a42856208","reason":"Same source body in authored semantic page"},{"oldId":"b-bcef0a2639255df55577ba38","targetId":"b-bcef0a2639255df55577ba38","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"move","beforeSHA256":"7196ec2e22255de2ea2810bf0076b2674950a8dd555b482d725aa52e622d66b3","afterSHA256":"7196ec2e22255de2ea2810bf0076b2674950a8dd555b482d725aa52e622d66b3","reason":"Same source body in authored semantic page"},{"oldId":"b-2c8b7f681b0083fd03c751f1","targetId":"b-2c8b7f681b0083fd03c751f1","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"move","beforeSHA256":"c97f0d46d36e308aba7b18cd164404b8e059883f98f6d783e6c47b5b5cedb4cb","afterSHA256":"c97f0d46d36e308aba7b18cd164404b8e059883f98f6d783e6c47b5b5cedb4cb","reason":"Same source body in authored semantic page"},{"oldId":"b-dbc8b64f4698aabd61ac24cc","targetId":"b-dbc8b64f4698aabd61ac24cc","page":"reading-block-7653447b25ea4f148d99cc7e004b290b","operation":"move","beforeSHA256":"ccb6e02221f8561e02487f398fd818eac4c361373e8e48f15997e9682f6703f7","afterSHA256":"ccb6e02221f8561e02487f398fd818eac4c361373e8e48f15997e9682f6703f7","reason":"Same source body in authored semantic page"},{"oldId":"b-9bb686ff232978412d4bfd55","targetId":"b-9bb686ff232978412d4bfd55","page":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","operation":"move","beforeSHA256":"95b64a7746dd296de28264813d4bf844b2fff9981d84c96dcbbee728ccebec6d","afterSHA256":"95b64a7746dd296de28264813d4bf844b2fff9981d84c96dcbbee728ccebec6d","reason":"Same source body in authored semantic page"},{"oldId":"b-ea97750328651729347db681","targetId":"b-ea97750328651729347db681","page":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","operation":"rewrite","beforeSHA256":"7f9d5a9bc5ec8dbb10ba027c4792c1b32a1f90a4607259888ab554031feb261c","afterSHA256":"e5d599a2e3509388b5adc4f129088d4d88668d0fb72b828f20b1ae406e6e4568","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-037d58ebafb30209189d3d20","targetId":"b-037d58ebafb30209189d3d20","page":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","operation":"move","beforeSHA256":"79f5af748a83293e7d32f9f4afd04df074a845056daa40eaab4551dce6889acb","afterSHA256":"7da6015ea00f50fa7bba3d614cdca8cd45be5cea73c7e77de5fb38665fb1b2bd","reason":"Same source body in authored semantic page"},{"oldId":"b-8a497a33051393e865fda5b4","targetId":"b-8a497a33051393e865fda5b4","page":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","operation":"move","beforeSHA256":"8e5e27d2baec8db4675cb051f5f5410238fc2fb323d1d36c807a2b7848257a1e","afterSHA256":"8e5e27d2baec8db4675cb051f5f5410238fc2fb323d1d36c807a2b7848257a1e","reason":"Same source body in authored semantic page"},{"oldId":"b-883f34df0e14d8ea239d4e52","targetId":"b-883f34df0e14d8ea239d4e52","page":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","operation":"move","beforeSHA256":"e942a598011225bc51c07a07d85d7bdaa62821929f8f4b330da3954661982adf","afterSHA256":"e942a598011225bc51c07a07d85d7bdaa62821929f8f4b330da3954661982adf","reason":"Same source body in authored semantic page"},{"oldId":"b-addde0716dce15509ec14b02","targetId":"b-addde0716dce15509ec14b02","page":"reading-block-18ba37010b894b2893332630cf8b3070","operation":"move","beforeSHA256":"4f73b68ffb171baaf3e8ee901f1f998d5f303e020953190ae14e5ebf9490b28d","afterSHA256":"4f73b68ffb171baaf3e8ee901f1f998d5f303e020953190ae14e5ebf9490b28d","reason":"Same source body in authored semantic page"},{"oldId":"b-88aeb2042b63037595355ec9","targetId":"b-88aeb2042b63037595355ec9","page":"reading-block-18ba37010b894b2893332630cf8b3070","operation":"rewrite","beforeSHA256":"b698b3c0b2c289e3361a9f965f15fd604390a5b0c63e820d3597c8e79d8db761","afterSHA256":"17d2aced04bdd810d8e50a9eecd85a7ba53c403c24a82f75f269a691b99b9509","reason":"Same source identity with figure semantics or reading context enriched"},{"oldId":"b-92c86db050043ca568a89b99","targetId":"b-92c86db050043ca568a89b99","page":"reading-block-18ba37010b894b2893332630cf8b3070","operation":"move","beforeSHA256":"f36623b4a66bc23f3e6de0948398eac4da9de12f2b1cb7dee15f169d61a3c0af","afterSHA256":"f36623b4a66bc23f3e6de0948398eac4da9de12f2b1cb7dee15f169d61a3c0af","reason":"Same source body in authored semantic page"},{"oldId":"b-2cbcc3a24f380aac4480eaaf","targetId":"b-2cbcc3a24f380aac4480eaaf","page":"reading-block-18ba37010b894b2893332630cf8b3070","operation":"move","beforeSHA256":"a0876f8de075bc82b9ef180984eea28985c8ea153021910f079bdd919e4c0538","afterSHA256":"a0876f8de075bc82b9ef180984eea28985c8ea153021910f079bdd919e4c0538","reason":"Same source body in authored semantic page"},{"oldId":"b-ee1a875be2d298dfa649f2ad","targetId":"b-ee1a875be2d298dfa649f2ad","page":"reading-block-18ba37010b894b2893332630cf8b3070","operation":"move","beforeSHA256":"1d07670d7c0674d4a921d9458ac6aca1e7f8c2c46deb6309e83d78c9c8146c58","afterSHA256":"1d07670d7c0674d4a921d9458ac6aca1e7f8c2c46deb6309e83d78c9c8146c58","reason":"Same source body in authored semantic page"},{"oldId":"block-44a741e9a3334aa4b16f140a98179497--索引热身仍然有用但不能叫学到了语义","targetId":"b-e66d75a574761b29b421e724","operation":"retain-source-identity"},{"oldId":"block-8430582e1f5e4998a68580017714e408--运行准备与结果身份","targetId":"b-bfe1d0da286011c91c075e92","operation":"retain-source-identity"},{"oldId":"block-32b1e5f410384ab9a6ae63440ff4f425--数据破坏与瓶颈","targetId":"b-f85456d929c019366c234b5f","operation":"retain-source-identity"},{"oldId":"block-f7555aca3cff49f492d243beb43d1bf6--两个目标两个分母","targetId":"b-73765ded8b32e00a8ae89687","operation":"retain-source-identity"},{"oldId":"block-5dca5700ee4c417787a944e984502529--pca均值基线与冻结评价","targetId":"b-dc27e60c80a0e2bbb78258da","operation":"retain-source-identity"},{"oldId":"block-7653447b25ea4f148d99cc7e004b290b--已运行结果能恢复笔画也会模糊或补错","targetId":"b-31d13bd8c70f83976157b9fe","operation":"retain-source-identity"},{"oldId":"block-9d3c3c729ad94cdb91c0b82cb281f340--表示评价给出另一份证据","targetId":"b-9bb686ff232978412d4bfd55","operation":"retain-source-identity"},{"oldId":"block-18ba37010b894b2893332630cf8b3070--与原mae逐项对齐","targetId":"b-addde0716dce15509ec14b02","operation":"retain-source-identity"}],"blocks":[{"id":"b-c671849c2036710178aad2e9","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-c671849c2036710178aad2e9","content":"# LAB 08 · 图像重建：遮挡损失与表示评价","sha256":"7f3d345bf346d5db57eaa7e3b18e6d736d3095b010cff50685606e1d3a8fa42c","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-c4d5916400ea43a393ce92ea","prerequisites":[{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-c4d5916400ea43a393ce92ea","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-c4d5916400ea43a393ce92ea","content":"按问题继续","sha256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c671849c2036710178aad2e9","nextBlock":"b-295b85ff3e0f49267437002d","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"}],"relatedBlocks":[]},{"id":"b-295b85ff3e0f49267437002d","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-295b85ff3e0f49267437002d","content":"索引恢复、去噪/遮挡ConvAE训练、PCA基线、独立冻结评价","sha256":"0f845ef31b98ed8c96f689fea3088b0a7482be32b2d5510c83f9fcbb05da4c9d","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c4d5916400ea43a393ce92ea","nextBlock":"b-98e433aab18f70d70d940f2c","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-98e433aab18f70d70d940f2c","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-98e433aab18f70d70d940f2c","content":"可先阅读已有结果，再决定是否运行。重算时请核对各节记录的数据、参数、环境与日期。","sha256":"f22152fd55dcdb0090b5653d37145694fd19388d31e10226549464fe8b483578","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-295b85ff3e0f49267437002d","nextBlock":"b-f147277ad426786a26f03f46","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f147277ad426786a26f03f46","type":"p","scope":"block-213eada7e52e4e9eb4ecb19dda19ee5c","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-f147277ad426786a26f03f46","content":"**学习路径：** [从遮挡重建到表示评价](/course/study/masked-reconstruction.html)","sha256":"8556351a0a818e5fa2ef8199862458dc0e7165abe7355c0f371bb6d655e593e9","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-98e433aab18f70d70d940f2c","nextBlock":"b-499aa0517d967824b16b77d6","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-499aa0517d967824b16b77d6","type":"p","scope":"block-213eada7e52e4e9eb4ecb19dda19ee5c","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-499aa0517d967824b16b77d6","content":"**图像恢复得更好，与学到更好用的表示，是同一个结果吗？**","sha256":"318354340f6400ba4b75531df2ac69ab8253c32abf1ae13da28809001b9464d2","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f147277ad426786a26f03f46","nextBlock":"b-8ecae967cb9f59ac67e52265","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-8ecae967cb9f59ac67e52265","type":"p","scope":"block-213eada7e52e4e9eb4ecb19dda19ee5c","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-8ecae967cb9f59ac67e52265","content":"先看固定前8张保留图的输入、预测与误差，再读两份评价：隐藏像素MSE与冻结编码器5NN。第五列拼回已知像素和预测隐藏部分，数值只评价隐藏区域；不要把可见真值当模型预测。","sha256":"4bb869394d672fd0c84f0dc089d0074c9d6881ff299a11b0f38eda4e4000e7a8","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-499aa0517d967824b16b77d6","nextBlock":"b-4dda0a63f7862e8d3c42d9d1","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-4dda0a63f7862e8d3c42d9d1","type":"p","scope":"block-213eada7e52e4e9eb4ecb19dda19ee5c","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-4dda0a63f7862e8d3c42d9d1","content":"产出一份双指标解释：哪项说明恢复改善，哪项说明本次数字读出改善。需要追踪实现时，先核对索引恢复，再读`patch_mask`、隐藏loss分母和冻结probe。这里训练的是密集卷积自编码器；原MAE只编码可见token的计算节省由[P20](/course/pages/l3-r2-p20.html)另行解释。","sha256":"3fec50da48729f40c76110d67065cadb4077083a87140606ebab768bd8b10360","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-8ecae967cb9f59ac67e52265","nextBlock":"b-47e1f51b6ad4f3194d5385ff","prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-47e1f51b6ad4f3194d5385ff","type":"p","scope":"block-213eada7e52e4e9eb4ecb19dda19ee5c","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-47e1f51b6ad4f3194d5385ff","content":"[P22](/course/pages/l3-r2-p22.html)与[重建和读出两份结果](/course/blocks/reconstruction-and-readout-two-results.html)承接课堂。已有本地结果和旧云端复核分别保留。对离散词典感兴趣再选[LAB 05](https://deepnote.com/project/38755e4e-23f6-4f5f-8c68-8a2e4114b1c1/notebook/de39b998077f44cca4b8407085547766)，不作为本册前置。","sha256":"53664b678211e118eca6cdb1b5f1ccda4bd021cefe38a6db4910fa6295ffd20d","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-opening","title":"LAB 08 · 图像重建：遮挡损失与表示评价","number":1},"sectionTitle":"LAB 08 · 图像重建：遮挡损失与表示评价","currentQuestion":"LAB 08 · 图像重建：遮挡损失与表示评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4dda0a63f7862e8d3c42d9d1","nextBlock":null,"prerequisites":[{"id":"b-c671849c2036710178aad2e9","url":"#b-c671849c2036710178aad2e9","role":"section-title"},{"id":"b-c4d5916400ea43a393ce92ea","url":"#b-c4d5916400ea43a393ce92ea","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-e66d75a574761b29b421e724","type":"h2","scope":"block-44a741e9a3334aa4b16f140a98179497","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-e66d75a574761b29b421e724","content":"## 索引热身仍然有用，但不能叫学到了语义","sha256":"c7ddd926153f66a12ff50445e4f0c91d5b1b3bdd966cdc956f2f98dfc816e780","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-44a741e9a3334aa4b16f140a98179497","title":"索引热身仍然有用，但不能叫学到了语义","number":2},"sectionTitle":"索引热身仍然有用，但不能叫学到了语义","currentQuestion":"索引热身仍然有用，但不能叫学到了语义","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-d9a0fde8dfb440bfc14b2310","prerequisites":[{"id":"b-d9a0fde8dfb440bfc14b2310","url":"#b-d9a0fde8dfb440bfc14b2310","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-d9a0fde8dfb440bfc14b2310","type":"p","scope":"block-44a741e9a3334aa4b16f140a98179497","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-d9a0fde8dfb440bfc14b2310","content":"先保留旧版0到15序列的可见均值填充。4个可见值时隐藏MSE为19.9167，8个可见值时为21.25；可见数更多却不一定降低这个均值代理，因为选中的位置和值都改变了，没有模型学习。","sha256":"87299f7751b6bc58e001a1cac6a5323dd0001ad6d4f42408db1fc6f2d370de31","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-44a741e9a3334aa4b16f140a98179497","title":"索引热身仍然有用，但不能叫学到了语义","number":2},"sectionTitle":"索引热身仍然有用，但不能叫学到了语义","currentQuestion":"索引热身仍然有用，但不能叫学到了语义","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-e66d75a574761b29b421e724","nextBlock":"b-78151608f7bf6695b6a8f3a3","prerequisites":[{"id":"b-e66d75a574761b29b421e724","url":"#b-e66d75a574761b29b421e724","role":"section-title"}],"relatedBlocks":[]},{"id":"b-78151608f7bf6695b6a8f3a3","type":"p","scope":"block-44a741e9a3334aa4b16f140a98179497","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-78151608f7bf6695b6a8f3a3","content":"接着随机打乱16个索引，保留4个，其余放mask标记−1；用逆排列恢复原位置。验证恢复后可见值位于正确坐标。这个断言证明的是位置对应，不是重建质量。","sha256":"9d9abf237d90a9561e1846c380f3fcdce763427c83b474ae06bfeb3ad755dcfb","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-44a741e9a3334aa4b16f140a98179497","title":"索引热身仍然有用，但不能叫学到了语义","number":2},"sectionTitle":"索引热身仍然有用，但不能叫学到了语义","currentQuestion":"索引热身仍然有用，但不能叫学到了语义","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-d9a0fde8dfb440bfc14b2310","nextBlock":"b-f4faf739c9e4c64400990bca","prerequisites":[{"id":"b-e66d75a574761b29b421e724","url":"#b-e66d75a574761b29b421e724","role":"section-title"},{"id":"b-d9a0fde8dfb440bfc14b2310","url":"#b-d9a0fde8dfb440bfc14b2310","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f4faf739c9e4c64400990bca","type":"pre","scope":"block-70b5b57303494570a973d1cf27053299","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-f4faf739c9e4c64400990bca","content":"```\nimport os, tempfile\nLAB_WORKDIR = tempfile.mkdtemp(prefix='lecture03-')\nos.chdir(LAB_WORKDIR)\nprint('Ephemeral experiment workspace ready')\nimport numpy as np\nx=np.arange(16,dtype=float).reshape(4,4)\nfor visible in ([0,3,9,14],[0,5,10,15,3,6,9,12]):\n mask=np.ones(16,bool); mask[list(visible)]=False\n pred=np.full(16,x.ravel()[list(visible)].mean())\n mse=((pred[mask]-x.ravel()[mask])**2).mean()\n print('visible',len(visible),'masked',mask.sum(),'masked MSE',round(float(mse),3))\nrng=np.random.default_rng(7);ids_shuffle=rng.permutation(16)\nids_restore=np.argsort(ids_shuffle);visible=ids_shuffle[:4]\nshuffled=np.concatenate([x.ravel()[visible],np.full(12,-1.)])\nrestored=shuffled[ids_restore]\nassert np.array_equal(restored[visible],x.ravel()[visible])\nprint('shuffle',ids_shuffle,'restore',ids_restore,'restored',restored)\n```","sha256":"a5e8ed9d3fedff981b54ed3173e41c010f861683fde366e467627a295d351e8f","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-44a741e9a3334aa4b16f140a98179497","title":"索引热身仍然有用，但不能叫学到了语义","number":2},"sectionTitle":"索引热身仍然有用，但不能叫学到了语义","currentQuestion":"索引热身仍然有用，但不能叫学到了语义","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-78151608f7bf6695b6a8f3a3","nextBlock":null,"prerequisites":[{"id":"b-e66d75a574761b29b421e724","url":"#b-e66d75a574761b29b421e724","role":"section-title"},{"id":"b-d9a0fde8dfb440bfc14b2310","url":"#b-d9a0fde8dfb440bfc14b2310","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-bfe1d0da286011c91c075e92","type":"h2","scope":"block-8430582e1f5e4998a68580017714e408","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-bfe1d0da286011c91c075e92","content":"## 运行准备与结果身份","sha256":"9bbc7527a59bb35d5da5d51d5f5bc342082de91f94066bfa434ed27e431f230a","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-8430582e1f5e4998a68580017714e408","title":"运行准备与结果身份","number":3},"sectionTitle":"运行准备与结果身份","currentQuestion":"运行准备与结果身份","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-4875577c5a31d91e08e78988","prerequisites":[{"id":"b-4875577c5a31d91e08e78988","url":"#b-4875577c5a31d91e08e78988","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-4875577c5a31d91e08e78988","type":"p","scope":"block-8430582e1f5e4998a68580017714e408","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-4875577c5a31d91e08e78988","content":"本册包含全部生成数据、模型、损失、优化与评价代码。按顺序在**新内核**运行；不读另一册的变量，不需要下载图像或预训练权重。依赖 Python 3.12、NumPy、matplotlib、scikit-learn 和 CPU PyTorch。本次实际版本见输出 JSON；若环境缺少 PyTorch，先运行 `python -m pip install torch==2.14.0 --index-url https://download.pytorch.org/whl/cpu`，再启动内核。NumPy、matplotlib、scikit-learn 可用 `python -m pip install numpy matplotlib scikit-learn` 安装。","sha256":"7c7112f4f7442896ffc602e4bca9c95cb6afe323f539ecace8877e95dc68b391","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-8430582e1f5e4998a68580017714e408","title":"运行准备与结果身份","number":3},"sectionTitle":"运行准备与结果身份","currentQuestion":"运行准备与结果身份","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bfe1d0da286011c91c075e92","nextBlock":"b-3dfae8b72d944a782d35e739","prerequisites":[{"id":"b-bfe1d0da286011c91c075e92","url":"#b-bfe1d0da286011c91c075e92","role":"section-title"}],"relatedBlocks":[]},{"id":"b-3dfae8b72d944a782d35e739","type":"p","scope":"block-8430582e1f5e4998a68580017714e408","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-3dfae8b72d944a782d35e739","content":"下方表格和静态图来自 **2026-09-22 本地 CPU 完整训练**；它们不是原来的数值热身输出，也不代表 Deepnote 云端已重跑。运行本册会另建 `lab08-notebook-output`，保存 inputs.npz、config.json、权重、图与 results.json。CPU 时间受机器负载影响；本次每册约 10–25 秒，不能当作跨设备速度基准。单种子、小任务的结果用来检验路径和对照，不作方法排名。","sha256":"45cb652f6dde94cb2e85f0a141910fa3060c64947b747c6458e059c5d93f374c","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-8430582e1f5e4998a68580017714e408","title":"运行准备与结果身份","number":3},"sectionTitle":"运行准备与结果身份","currentQuestion":"运行准备与结果身份","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4875577c5a31d91e08e78988","nextBlock":"b-b528045d700f84acd323c3c6","prerequisites":[{"id":"b-bfe1d0da286011c91c075e92","url":"#b-bfe1d0da286011c91c075e92","role":"section-title"},{"id":"b-4875577c5a31d91e08e78988","url":"#b-4875577c5a31d91e08e78988","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-b528045d700f84acd323c3c6","type":"pre","scope":"block-4bb149c8de264021b5927384daedb5f7","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-b528045d700f84acd323c3c6","content":"```\n\"\"\"Actual denoising and masked convolutional AE on held-out digit images; not original ViT MAE.\"\"\"\nfrom pathlib import Path\nimport copy, hashlib, json, platform, time\nimport numpy as np\nimport torch\nfrom torch import nn\nfrom torch.nn import functional as F\nfrom sklearn.datasets import load_digits\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.neighbors import KNeighborsClassifier\nimport matplotlib\nmatplotlib.use('Agg')\nimport matplotlib.pyplot as plt\n\ntorch.set_num_threads(2)\nSEED=20260922\n\nSOURCE_SHA256='9f7f2ed888f5ea118ad1fc622ff64e1aa1e53d5ae162698fcbfb005f45201825'\nprint(\"source\",SOURCE_SHA256,\"torch\",torch.__version__)\n```","sha256":"d054471d9556f974200f75070e378e4dfc31a7a89323ebc8ceddb672b594ed38","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-8430582e1f5e4998a68580017714e408","title":"运行准备与结果身份","number":3},"sectionTitle":"运行准备与结果身份","currentQuestion":"运行准备与结果身份","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-3dfae8b72d944a782d35e739","nextBlock":null,"prerequisites":[{"id":"b-bfe1d0da286011c91c075e92","url":"#b-bfe1d0da286011c91c075e92","role":"section-title"},{"id":"b-4875577c5a31d91e08e78988","url":"#b-4875577c5a31d91e08e78988","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f85456d929c019366c234b5f","type":"h2","scope":"block-32b1e5f410384ab9a6ae63440ff4f425","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-f85456d929c019366c234b5f","content":"## 数据、破坏与瓶颈","sha256":"ffd82c5a863f2930d5cea61e508a508c1126c1a93e8bd026430f0daa4e1aa161","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","title":"数据、破坏与瓶颈","number":4},"sectionTitle":"数据、破坏与瓶颈","currentQuestion":"数据、破坏与瓶颈","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-c7054669f67b0e97885b920a","prerequisites":[{"id":"b-c7054669f67b0e97885b920a","url":"#b-c7054669f67b0e97885b920a","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-c7054669f67b0e97885b920a","type":"p","scope":"block-32b1e5f410384ab9a6ae63440ff4f425","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-c7054669f67b0e97885b920a","content":"按数字标签分层分出1257张训练图和540张保留图，之后才产生破坏。标签只用于分层和最终近邻评价，AE优化只读取像素。像素原值0–16除以16，统一到[0,1]；这里不是MNIST的28×28输入。","sha256":"b5b552b03d3348b7ffa5e79b679ae61d1637f36cb0126bd432501592ccf384e4","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","title":"数据、破坏与瓶颈","number":4},"sectionTitle":"数据、破坏与瓶颈","currentQuestion":"数据、破坏与瓶颈","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f85456d929c019366c234b5f","nextBlock":"b-8ab2a6947e18100af24327cf","prerequisites":[{"id":"b-f85456d929c019366c234b5f","url":"#b-f85456d929c019366c234b5f","role":"section-title"}],"relatedBlocks":[]},{"id":"b-8ab2a6947e18100af24327cf","type":"p","scope":"block-32b1e5f410384ab9a6ae63440ff4f425","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-8ab2a6947e18100af24327cf","content":"去噪输入按25%概率把像素置0，再叠加标准差0.15高斯噪声并裁剪到[0,1]。目标仍是原始清洁图像。两层stride2卷积将8×8压到16×2×2，线性层得到16维瓶颈；解码器从瓶颈扩展，再用转置卷积回到1×8×8，经sigmoid输出。","sha256":"dddc3aa4792ce564399c5a9042008ef6961c269f1be67e70b99cb08f9ee8143d","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","title":"数据、破坏与瓶颈","number":4},"sectionTitle":"数据、破坏与瓶颈","currentQuestion":"数据、破坏与瓶颈","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-c7054669f67b0e97885b920a","nextBlock":"b-53c1ab8dbd1e8c6ccd7d166d","prerequisites":[{"id":"b-f85456d929c019366c234b5f","url":"#b-f85456d929c019366c234b5f","role":"section-title"},{"id":"b-c7054669f67b0e97885b920a","url":"#b-c7054669f67b0e97885b920a","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-53c1ab8dbd1e8c6ccd7d166d","type":"p","scope":"block-32b1e5f410384ab9a6ae63440ff4f425","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-53c1ab8dbd1e8c6ccd7d166d","content":"遮挡实验把8×8图像切为16个2×2patch。训练每图恰好隐藏8个patch，输入为两个通道：可见像素和二值mask。mask=1代表隐藏，能够区分“真黑像素”与“未知像素”。隐藏目标只出现在损失端，不能被送入编码器。","sha256":"e66f545513713358d5ac1cd3ddcc275038454a49c79c2353a84651c3442edbdd","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","title":"数据、破坏与瓶颈","number":4},"sectionTitle":"数据、破坏与瓶颈","currentQuestion":"数据、破坏与瓶颈","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-8ab2a6947e18100af24327cf","nextBlock":"b-9347daadb585e9fcf6cbba28","prerequisites":[{"id":"b-f85456d929c019366c234b5f","url":"#b-f85456d929c019366c234b5f","role":"section-title"},{"id":"b-c7054669f67b0e97885b920a","url":"#b-c7054669f67b0e97885b920a","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-9347daadb585e9fcf6cbba28","type":"pre","scope":"block-18c1d267b0f04e81bb9b3759cd9fafa6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-9347daadb585e9fcf6cbba28","content":"```\ndef digit_data():\n    data=load_digits(); x=torch.tensor(data.images/16,dtype=torch.float32)[:,None]\n    train,test=train_test_split(np.arange(len(x)),test_size=.3,random_state=SEED,stratify=data.target)\n    assert set(train).isdisjoint(test)\n    return x,data.target,train,test\n\ndef noise_corrupt(x):\n    return (x*(torch.rand_like(x)>.25)+torch.randn_like(x)*.15).clamp(0,1)\n\ndef patch_mask(n,ratio=.5):\n    # Grid is 4x4 patches, each 2x2 pixels. 1 means HIDDEN.\n    order=torch.rand(n,16).argsort(dim=1)\n    keep=int(16*(1-ratio))\n    patch=torch.ones(n,16);patch.scatter_(1,order[:,:keep],0)\n    return patch.reshape(n,1,4,4).repeat_interleave(2,2).repeat_interleave(2,3)\n\nclass ConvAE(nn.Module):\n    def __init__(self,channels=1):\n        super().__init__()\n        self.encoder=nn.Sequential(nn.Conv2d(channels,8,3,stride=2,padding=1),nn.ReLU(),\n          nn.Conv2d(8,16,3,stride=2,padding=1),nn.ReLU(),nn.Flatten(),nn.Linear(64,16))\n        self.expand=nn.Linear(16,64)\n        self.decoder=nn.Sequential(nn.ConvTranspose2d(16,8,4,stride=2,padding=1),nn.ReLU(),\n          nn.ConvTranspose2d(8,1,4,stride=2,padding=1),nn.Sigmoid())\n    def forward(self,x):\n        h=self.encoder(x);return self.decoder(self.expand(h).reshape(-1,16,2,2)),h\n```","sha256":"e69117b96838ca54dc91ac1267742da52d685277ae4d6dc3dbbec80d69fece9c","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-32b1e5f410384ab9a6ae63440ff4f425","title":"数据、破坏与瓶颈","number":4},"sectionTitle":"数据、破坏与瓶颈","currentQuestion":"数据、破坏与瓶颈","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-53c1ab8dbd1e8c6ccd7d166d","nextBlock":null,"prerequisites":[{"id":"b-f85456d929c019366c234b5f","url":"#b-f85456d929c019366c234b5f","role":"section-title"},{"id":"b-c7054669f67b0e97885b920a","url":"#b-c7054669f67b0e97885b920a","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-73765ded8b32e00a8ae89687","type":"h2","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-73765ded8b32e00a8ae89687","content":"## 两个目标，两个分母","sha256":"1e535ce05cfe5eb3201aafe7ef126832c60a9410ac57616575ebfde505c66446","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-678cafac523d6b5d7472c78b","prerequisites":[{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-678cafac523d6b5d7472c78b","type":"p","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-678cafac523d6b5d7472c78b","content":"去噪的损失对所有像素平均：","sha256":"9060158f67fb888087b1cfe7c5d2615563c150a54cca1810d4c56bc38e373a25","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-73765ded8b32e00a8ae89687","nextBlock":"b-24b25f814c2dfd781930bb5a","prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"}],"relatedBlocks":[]},{"id":"b-24b25f814c2dfd781930bb5a","type":"p","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-24b25f814c2dfd781930bb5a","content":"$L_{DAE}=\\frac1{BHW}\\sum_{b,p}(\\hat x_{bp}-x_{bp})^2.$","sha256":"753942ac9ea72b31d30c84cbe74029829e59d1719a4da85742d6b2c70eb963b4","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[{"latex":"L_{DAE}=\\frac1{BHW}\\sum_{b,p}(\\hat x_{bp}-x_{bp})^2.","definitionContext":"两个目标，两个分母"}],"previousBlock":"b-678cafac523d6b5d7472c78b","nextBlock":"b-0630d8fa2381c2716fc011ad","prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"},{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-0630d8fa2381c2716fc011ad","type":"p","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-0630d8fa2381c2716fc011ad","content":"遮挡模型只在隐藏集合M上平均：","sha256":"42cabe6994680b53287da6245e3f0848e31c397c51a1e603a17a7b92beb42962","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-24b25f814c2dfd781930bb5a","nextBlock":"b-f776b232ca0a05977020776d","prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"},{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-f776b232ca0a05977020776d","type":"p","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-f776b232ca0a05977020776d","content":"$L_{mask}=\\frac{\\sum_{b,p}M_{bp}(\\hat x_{bp}-x_{bp})^2}{\\sum_{b,p}M_{bp}}.$","sha256":"79d395dacb4b5aa9e61ba1cfd4f2346b143578b0615df7f34834b5296f871c91","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[{"latex":"L_{mask}=\\frac{\\sum_{b,p}M_{bp}(\\hat x_{bp}-x_{bp})^2}{\\sum_{b,p}M_{bp}}.","definitionContext":"两个目标，两个分母"}],"previousBlock":"b-0630d8fa2381c2716fc011ad","nextBlock":"b-4ece7bba9ef3b7611a767236","prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"},{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-4ece7bba9ef3b7611a767236","type":"p","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-4ece7bba9ef3b7611a767236","content":"如果对整图算MSE，再把大量可见真值复制到输出，会人为改善分母。这也是重建面板与指标要分开说明的原因：图上为方便阅读将已知像素原样保留，数值只评价隐藏部分。","sha256":"1cbb6c7f4f25501bf57adf425d88f283db4606e507ed82c508475aa5bdc67df6","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-f776b232ca0a05977020776d","nextBlock":"b-5639cb6a9ef7280755ffba73","prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"},{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-5639cb6a9ef7280755ffba73","type":"p","scope":"block-f7555aca3cff49f492d243beb43d1bf6","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-5639cb6a9ef7280755ffba73","content":"两模型各自独立初始化并保存对应随机权重，Adam学习率0.003；去噪40轮，遮挡50轮。训练循环中每轮重新生成破坏，只有训练源图参与参数更新。","sha256":"cef23c50f292bcb2bca2815e5a828b3c6bc7aa17d2f02cb7bf45614e2ce86454","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-4ece7bba9ef3b7611a767236","nextBlock":"b-3ca88b26b68510363a5a1b0b","prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"},{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-3ca88b26b68510363a5a1b0b","type":"pre","scope":"block-e8bd60f8abd5443a9b5b04756ca65676","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-3ca88b26b68510363a5a1b0b","content":"```\ndef train_ae(x,train,kind,epochs=40):\n    torch.manual_seed(SEED+(kind=='masked'))\n    model=ConvAE(2 if kind=='masked' else 1);initial=copy.deepcopy(model)\n    opt=torch.optim.Adam(model.parameters(),lr=.003);history=[]\n    before=next(model.encoder.parameters()).detach().clone()\n    for epoch in range(epochs):\n        model.train();losses=[]\n        for ids in torch.as_tensor(train)[torch.randperm(len(train))].split(64):\n            clean=x[ids]\n            if kind=='denoise':\n                pred,_=model(noise_corrupt(clean));loss=F.mse_loss(pred,clean)\n            else:\n                mask=patch_mask(len(ids),.5)\n                inp=torch.cat([clean*(1-mask),mask],dim=1)\n                pred,_=model(inp);loss=(((pred-clean)**2)*mask).sum()/mask.sum()\n            opt.zero_grad();loss.backward();opt.step();losses.append(float(loss.detach()))\n        history.append(float(np.mean(losses)))\n    delta=float((next(model.encoder.parameters()).detach()-before).norm());assert delta>0\n    return model,initial,history,delta\n\ndef frozen_probe(model,x,y,train,test,masked=False):\n    model.eval()\n    with torch.no_grad():\n        # Clean image readout; mask channel zero. No reconstruction targets at inference.\n        inp=torch.cat([x,torch.zeros_like(x)],1) if masked else x\n        h=model(inp)[1]\n        a=F.normalize(h,dim=1).numpy()\n    probe=KNeighborsClassifier(n_neighbors=5,metric='cosine').fit(a[train],y[train])\n    return float(probe.score(a[test],y[test]))\n\ndef mask_index_warmup():\n    rng=np.random.default_rng(7);tokens=np.arange(16);shuffle=rng.permutation(16)\n    restore=np.argsort(shuffle);keep=shuffle[:4]\n    shuffled=np.concatenate([tokens[keep],np.full(12,-1)])\n    restored=shuffled[restore]\n    assert np.array_equal(restored[keep],tokens[keep]);assert (restored==-1).sum()==12\n    proxy=[]\n    for visible in ([0,3,9,14],[0,5,10,15,3,6,9,12]):\n        mask=np.ones(16,bool);mask[visible]=False\n        pred=np.full(16,tokens[visible].mean())\n        proxy.append({'visible':len(visible),'masked':int(mask.sum()),'constant_predictor_masked_mse':float(((pred[mask]-tokens[mask])**2).mean())})\n    return {'shuffle':shuffle.tolist(),'ids_restore':restore.tolist(),'restored':restored.tolist(),'constant_proxy':proxy}\n```","sha256":"fd7dacba87183ce44a34a20bde3f9f02f7f919850e060c6febd9cfde7935a1ef","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-f7555aca3cff49f492d243beb43d1bf6","title":"两个目标，两个分母","number":5},"sectionTitle":"两个目标，两个分母","currentQuestion":"两个目标，两个分母","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-5639cb6a9ef7280755ffba73","nextBlock":null,"prerequisites":[{"id":"b-73765ded8b32e00a8ae89687","url":"#b-73765ded8b32e00a8ae89687","role":"section-title"},{"id":"b-678cafac523d6b5d7472c78b","url":"#b-678cafac523d6b5d7472c78b","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-dc27e60c80a0e2bbb78258da","type":"h2","scope":"block-5dca5700ee4c417787a944e984502529","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-dc27e60c80a0e2bbb78258da","content":"## PCA、均值基线与冻结评价","sha256":"66b2dace11fe3e1e1ac14aa4baad3bd70f35d66db29be4adb83a0909a35dad07","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","number":6},"sectionTitle":"PCA、均值基线与冻结评价","currentQuestion":"PCA、均值基线与冻结评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-de90debfe64f584de1b250f9","prerequisites":[{"id":"b-de90debfe64f584de1b250f9","url":"#b-de90debfe64f584de1b250f9","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-de90debfe64f584de1b250f9","type":"p","scope":"block-5dca5700ee4c417787a944e984502529","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-de90debfe64f584de1b250f9","content":"PCA只在清洁训练图上拟合均值与16个主轴，再把保留集的噪声图投影回低秩空间。受约束的线性自编码器与PCA子空间有联系，所以它是有意义的透明比较；SVD没有替代这里的非线性神经网络训练。二者瓶颈同为16维，但参数量、目标和优化不同，不能把这一结果解释成严格的架构消融。","sha256":"91f9e054a47e5dff5f5eff0c1755d5af1d8d8a7561e448bf00f969d4963853e4","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","number":6},"sectionTitle":"PCA、均值基线与冻结评价","currentQuestion":"PCA、均值基线与冻结评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-dc27e60c80a0e2bbb78258da","nextBlock":"b-8e95f434ebf6b69ea2b8a680","prerequisites":[{"id":"b-dc27e60c80a0e2bbb78258da","url":"#b-dc27e60c80a0e2bbb78258da","role":"section-title"}],"relatedBlocks":[]},{"id":"b-8e95f434ebf6b69ea2b8a680","type":"p","scope":"block-5dca5700ee4c417787a944e984502529","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-8e95f434ebf6b69ea2b8a680","content":"遮挡评估固定模型权重，在25%、50%、75%三个比例上使用同一批保留图和每图同一随机排列；隐藏集合随比例嵌套增加。对照是训练集均值图和填零，不是用保留图计算的均值。卷积模型在三个比例下仍处理完整8×8网格，不能把可见patch数当作本模型的加速比。","sha256":"a1d2c567d541da19ed6e84487f8acfe7004876cf28049f9f3f85db6ce856e984","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","number":6},"sectionTitle":"PCA、均值基线与冻结评价","currentQuestion":"PCA、均值基线与冻结评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-de90debfe64f584de1b250f9","nextBlock":"b-9cb552c2366195d58cf6a0cc","prerequisites":[{"id":"b-dc27e60c80a0e2bbb78258da","url":"#b-dc27e60c80a0e2bbb78258da","role":"section-title"},{"id":"b-de90debfe64f584de1b250f9","url":"#b-de90debfe64f584de1b250f9","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-9cb552c2366195d58cf6a0cc","type":"p","scope":"block-5dca5700ee4c417787a944e984502529","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-9cb552c2366195d58cf6a0cc","content":"表示评价输入清洁图像，遮挡模型的mask通道全零；分别提取已训练/随机初始化的16维h，L2归一化后做余弦5-NN。参考库只有训练图及其标签。重建评价和数字识别有不同分母、单位和目标，不互相替代。","sha256":"1ed9fc03f7594779444088061d207504839c02ffaa69fda6d84d515f0192db5e","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","number":6},"sectionTitle":"PCA、均值基线与冻结评价","currentQuestion":"PCA、均值基线与冻结评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-8e95f434ebf6b69ea2b8a680","nextBlock":"b-cde09f72c290cf4824e642d1","prerequisites":[{"id":"b-dc27e60c80a0e2bbb78258da","url":"#b-dc27e60c80a0e2bbb78258da","role":"section-title"},{"id":"b-de90debfe64f584de1b250f9","url":"#b-de90debfe64f584de1b250f9","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-cde09f72c290cf4824e642d1","type":"pre","scope":"block-41ffe8f7d5284c27aec5c2474b234a1f","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-cde09f72c290cf4824e642d1","content":"```\ndef run_reconstruction(out_dir='lab08-output'):\n    started=time.time();out=Path(out_dir);out.mkdir(parents=True,exist_ok=True)\n    x,y,train,test=digit_data()\n    np.savez_compressed(out/'inputs.npz',images=x.numpy(),labels=y,train_ids=train,test_ids=test)\n    denoise,random_d,hist_d,delta_d=train_ae(x,train,'denoise',40)\n    masked,random_m,hist_m,delta_m=train_ae(x,train,'masked',50)\n    torch.save(denoise.state_dict(),out/'denoise.pt');torch.save(masked.state_dict(),out/'masked-conv-ae.pt')\n    torch.save({'denoise':random_d.state_dict(),'masked':random_m.state_dict()},out/'random-init.pt')\n    denoise.eval();masked.eval();torch.manual_seed(SEED+19)\n    clean=x[test];corrupted=noise_corrupt(clean)\n    with torch.no_grad():recon=denoise(corrupted)[0]\n    mean_image=x[train].mean(0,keepdim=True)\n    # PCA fits clean training images only. It is a rank-16 linear projection baseline.\n    a=x[train].flatten(1).numpy();mu=a.mean(0);_,_,vt=np.linalg.svd(a-mu,full_matrices=False)\n    v=vt[:16];noisy=corrupted.flatten(1).numpy();pca=np.clip((noisy-mu)@v.T@v+mu,0,1)\n    metrics={'denoise':{'corrupted_input_mse':float(F.mse_loss(corrupted,clean)),\n      'train_mean_mse':float(((clean-mean_image)**2).mean()),\n      'rank16_pca_noisy_mse':float(np.mean((pca-clean.flatten(1).numpy())**2)),\n      'learned_conv_ae_mse':float(F.mse_loss(recon,clean))}}\n    masked_outputs={}\n    for ratio in [.25,.5,.75]:\n        torch.manual_seed(SEED+25)  # Same permutation at all ratios: nested hidden sets.\n        mask=patch_mask(len(clean),ratio)\n        inp=torch.cat([clean*(1-mask),mask],1)\n        with torch.no_grad():pred=masked(inp)[0]\n        loss=(((pred-clean)**2)*mask).sum()/mask.sum()\n        mean_loss=(((mean_image-clean)**2)*mask).sum()/mask.sum()\n        zero_loss=((clean**2)*mask).sum()/mask.sum()\n        metrics[f'mask_{ratio}']={'hidden_pixels_mse':float(loss),'train_mean_hidden_mse':float(mean_loss),\n          'zero_fill_hidden_mse':float(zero_loss),'visible_patches':int(16*(1-ratio)),\n          'conv_encoder_grid_pixels':64}\n        masked_outputs[ratio]=(mask,pred)\n    probes={}\n    for name,model,is_masked in [('random-denoise',random_d,False),('trained-denoise',denoise,False),('random-masked',random_m,True),('trained-masked',masked,True)]:\n        probes[name]=frozen_probe(model,x,y,train,test,is_masked)\n    # Save complete inference evidence, including corruption and masks.\n    output_arrays={'clean':clean.numpy(),'corrupted':corrupted.numpy(),'denoised':recon.numpy(),'pca':pca.reshape(-1,1,8,8)}\n    for ratio,(mask,pred) in masked_outputs.items():output_arrays[f'mask_{ratio}']=mask.numpy();output_arrays[f'pred_{ratio}']=pred.numpy()\n    np.savez_compressed(out/'predictions.npz',**output_arrays)\n    # Examples selected BEFORE seeing predictions: first eight test IDs, never cherry-picked.\n    mask,pred=masked_outputs[.5]\n    fig,axes=plt.subplots(8,6,figsize=(9,12))\n    titles=['clean','corrupted','denoised','50% masked','predicted hidden','absolute error']\n    for i in range(8):\n        completed=clean[i]*(1-mask[i])+pred[i]*mask[i]\n        ims=[clean[i],corrupted[i],recon[i],clean[i]*(1-mask[i]),completed,abs(completed-clean[i])]\n        for j,im in enumerate(ims):\n            axes[i,j].imshow(im[0],cmap='magma' if j==5 else 'gray',vmin=0,vmax=1,interpolation='nearest')\n            axes[i,j].set_xticks([]);axes[i,j].set_yticks([])\n            if i==0:axes[i,j].set_title(titles[j],fontsize=9)\n        axes[i,0].set_ylabel(f'id {test[i]}\\ny={y[test[i]]}',fontsize=8)\n    fig.tight_layout();fig.savefig(out/'reconstruction-grid.png',dpi=150);plt.close(fig)\n    fig,axes=plt.subplots(1,3,figsize=(14,4))\n    axes[0].plot(hist_d,label='denoise: all pixels');axes[0].plot(hist_m,label='masked: hidden only');axes[0].legend(fontsize=8)\n    axes[0].set(xlabel='epoch (0-based)',ylabel='train MSE',title='Objectives have different pixel sets')\n    ratios=[.25,.5,.75]\n    axes[1].plot(ratios,[metrics[f'mask_{r}']['hidden_pixels_mse'] for r in ratios],'o-',label='trained at 50%')\n    axes[1].plot(ratios,[metrics[f'mask_{r}']['train_mean_hidden_mse'] for r in ratios],'o--',label='train mean')\n    axes[1].set(xlabel='evaluation mask ratio',ylabel='held-out hidden MSE');axes[1].legend()\n    axes[2].bar(list(probes),list(probes.values()));axes[2].tick_params(axis='x',rotation=25)\n    axes[2].set(ylim=(0,1),ylabel='held-out accuracy',title='Frozen clean h: cosine 5-NN')\n    fig.tight_layout();fig.savefig(out/'loss-mask-probe.png',dpi=140);plt.close(fig)\n    config={'seed':SEED,'dataset':'sklearn load_digits, 1797 grayscale 8x8, pixels divided by16','train_n':len(train),'test_n':len(test),'split':'stratified random source-image split before corruption','denoise_epochs':40,'masked_epochs':50,'batch_size':64,'adam_lr':.003,'latent_dim':16,'denoise_corruption':{'pixel_drop':.25,'gaussian_sigma':.15,'clip':[0,1]},'mask_training_ratio':.5,'mask_patch_pixels':[2,2],'labels_used':'stratify/probe only; never AE loss','mask_encoder':'dense two-channel convolutional autoencoder; NOT ViT MAE','test_tuning':'none; predetermined epochs/mask ratios'}\n    (out/'config.json').write_text(json.dumps(config,indent=2))\n    payload={'code_sha256':globals().get('SOURCE_SHA256') or hashlib.sha256(Path(__file__).read_bytes()).hexdigest(),'kind':'local CPU full training and held-out evaluation','utc':time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()),'seconds':time.time()-started,'torch':torch.__version__,'numpy':np.__version__,'python':platform.python_version(),'metrics':metrics,'frozen_clean_5nn':probes,'loss_history':{'denoise':hist_d,'masked':hist_m},'encoder_weight_l2_change':{'denoise':delta_d,'masked':delta_m},'index_warmup':mask_index_warmup(),'inputs_sha256':hashlib.sha256((out/'inputs.npz').read_bytes()).hexdigest()}\n    (out/'results.json').write_text(json.dumps(payload,indent=2))\n    print(json.dumps({'metrics':metrics,'frozen_clean_5nn':probes,'seconds':payload['seconds']},indent=2))\n    return payload\n```","sha256":"346501991ef9efbc297a06f21a942a08d19a2941f1cd91dc0ee0f9ad87b2aec4","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","number":6},"sectionTitle":"PCA、均值基线与冻结评价","currentQuestion":"PCA、均值基线与冻结评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-9cb552c2366195d58cf6a0cc","nextBlock":"b-a2b92c9a529903e540837e0a","prerequisites":[{"id":"b-dc27e60c80a0e2bbb78258da","url":"#b-dc27e60c80a0e2bbb78258da","role":"section-title"},{"id":"b-de90debfe64f584de1b250f9","url":"#b-de90debfe64f584de1b250f9","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-a2b92c9a529903e540837e0a","type":"pre","scope":"block-8c988cd2947b4474b4d633c2620028a7","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-a2b92c9a529903e540837e0a","content":"```\nresult=run_reconstruction('lab08-notebook-output')\nfrom IPython.display import Image,display\ndisplay(Image(filename='lab08-notebook-output/reconstruction-grid.png'))\ndisplay(Image(filename='lab08-notebook-output/loss-mask-probe.png'))\n```","sha256":"494314c1f26aeeda8950fd4f9fa42aac5d81da1b3288f0e066ba185a85e42cfa","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-5dca5700ee4c417787a944e984502529","title":"PCA、均值基线与冻结评价","number":6},"sectionTitle":"PCA、均值基线与冻结评价","currentQuestion":"PCA、均值基线与冻结评价","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-cde09f72c290cf4824e642d1","nextBlock":null,"prerequisites":[{"id":"b-dc27e60c80a0e2bbb78258da","url":"#b-dc27e60c80a0e2bbb78258da","role":"section-title"},{"id":"b-de90debfe64f584de1b250f9","url":"#b-de90debfe64f584de1b250f9","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-31d13bd8c70f83976157b9fe","type":"h2","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-31d13bd8c70f83976157b9fe","content":"## 已运行结果：能恢复笔画，也会模糊或补错","sha256":"1fcf124d95292a66d0028aa8136225908b256c15dbd114cbfd1c90d2580c2076","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-4905e84d5bb457b52f822dd2","prerequisites":[{"id":"b-eeefa4cb5b4317785c661585","url":"#b-eeefa4cb5b4317785c661585","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-4905e84d5bb457b52f822dd2","type":"table","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-4905e84d5bb457b52f822dd2","content":"| 去噪保留集指标 | 全像素MSE（越低越好） |\n| --- | --- |\n| 直接使用破坏图像 | 0.06244 |\n| 训练集均值图 | 0.07351 |\n| 16维PCA投影噪声图 | 0.04160 |\n| 16维卷积去噪AE | 0.03217 |","sha256":"8c1ead9c29c2954f6f3b19afcb9b79b9e0c0f6d06c2c0e0d2373f654ba32b840","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"table":{"headers":["去噪保留集指标","全像素MSE（越低越好）"],"rows":[["去噪保留集指标","全像素MSE（越低越好）"],["直接使用破坏图像","0.06244"],["训练集均值图","0.07351"],["16维PCA投影噪声图","0.04160"],["16维卷积去噪AE","0.03217"]]},"previousBlock":"b-31d13bd8c70f83976157b9fe","nextBlock":"b-07e13fb06527aeb13f7dba52","prerequisites":[{"id":"b-31d13bd8c70f83976157b9fe","url":"#b-31d13bd8c70f83976157b9fe","role":"section-title"},{"id":"b-eeefa4cb5b4317785c661585","url":"#b-eeefa4cb5b4317785c661585","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-07e13fb06527aeb13f7dba52","type":"table","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-07e13fb06527aeb13f7dba52","content":"| 评估遮挡率（均训练于50%） | 模型隐藏MSE | 训练均值隐藏MSE | 可见patch数 |\n| --- | --- | --- | --- |\n| 25% | 0.03933 | 0.07420 | 12 |\n| 50% | 0.04341 | 0.07402 | 8 |\n| 75% | 0.05563 | 0.07390 | 4 |","sha256":"f1cef90e363d220c1f87c8beae336e8029c68d18c99137d392955eb3b65a79a3","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"table":{"headers":["评估遮挡率（均训练于50%）","模型隐藏MSE","训练均值隐藏MSE","可见patch数"],"rows":[["评估遮挡率（均训练于50%）","模型隐藏MSE","训练均值隐藏MSE","可见patch数"],["25%","0.03933","0.07420","12"],["50%","0.04341","0.07402","8"],["75%","0.05563","0.07390","4"]]},"previousBlock":"b-4905e84d5bb457b52f822dd2","nextBlock":"b-eeefa4cb5b4317785c661585","prerequisites":[{"id":"b-31d13bd8c70f83976157b9fe","url":"#b-31d13bd8c70f83976157b9fe","role":"section-title"},{"id":"b-eeefa4cb5b4317785c661585","url":"#b-eeefa4cb5b4317785c661585","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-eeefa4cb5b4317785c661585","type":"p","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-eeefa4cb5b4317785c661585","content":"![同一保留输入的清洁、破坏、去噪、遮挡、填补与误差](/assets/display/cdcfe2b4d2103d5484256b71.webp)","sha256":"52aa942b7ce525a5978e0c28331b8fc71484207ba7932fb99596d25a42856208","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-07e13fb06527aeb13f7dba52","nextBlock":"b-bcef0a2639255df55577ba38","prerequisites":[{"id":"b-31d13bd8c70f83976157b9fe","url":"#b-31d13bd8c70f83976157b9fe","role":"section-title"}],"relatedBlocks":[]},{"id":"b-bcef0a2639255df55577ba38","type":"p","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-bcef0a2639255df55577ba38","content":"显示的是切分后前8个保留ID，选择规则不看预测好坏。第五列把可见真值和模型预测的隐藏部分拼回一张图；不是整图每个像素都由模型预测。第六列对应这个拼回图的绝对误差，因此可见区域为零。第三列去噪结果则整幅来自模型。","sha256":"7196ec2e22255de2ea2810bf0076b2674950a8dd555b482d725aa52e622d66b3","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-eeefa4cb5b4317785c661585","nextBlock":"b-2c8b7f681b0083fd03c751f1","prerequisites":[{"id":"b-31d13bd8c70f83976157b9fe","url":"#b-31d13bd8c70f83976157b9fe","role":"section-title"},{"id":"b-eeefa4cb5b4317785c661585","url":"#b-eeefa4cb5b4317785c661585","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-2c8b7f681b0083fd03c751f1","type":"p","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-2c8b7f681b0083fd03c751f1","content":"笔画大体恢复，但某些0被补得过厚、3的弯曲部分变模糊，5也会出现错误笔画。平方损失在缺少证据时倾向平均可能的像素，这种模糊并不等于模型正确理解了数字。75%遮挡的模型仍低于均值基线，但隐藏误差上升；这只是本数据、固定权重与这组嵌套mask的结果，不能作为75%是通用最佳比例的证明。","sha256":"c97f0d46d36e308aba7b18cd164404b8e059883f98f6d783e6c47b5b5cedb4cb","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-bcef0a2639255df55577ba38","nextBlock":"b-dbc8b64f4698aabd61ac24cc","prerequisites":[{"id":"b-31d13bd8c70f83976157b9fe","url":"#b-31d13bd8c70f83976157b9fe","role":"section-title"},{"id":"b-eeefa4cb5b4317785c661585","url":"#b-eeefa4cb5b4317785c661585","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-dbc8b64f4698aabd61ac24cc","type":"p","scope":"block-7653447b25ea4f148d99cc7e004b290b","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-dbc8b64f4698aabd61ac24cc","content":"**云端复核（2026-09-22）：同一代码在 Deepnote 的 Python 3.13 / PyTorch 2.12.0+cu130 环境以 CPU 张量完整执行。去噪MSE仍为0.03217，50%遮挡隐藏MSE为0.04341，冻结读出仍为95.00%/92.04%；与本地基准一致到所报告精度。保存的静态图和权重仍明确标作本地基准。运行 ID：22b87ac6-c0ca-4586-b562-4d72103337ef。**","sha256":"ccb6e02221f8561e02487f398fd818eac4c361373e8e48f15997e9682f6703f7","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-7653447b25ea4f148d99cc7e004b290b","title":"已运行结果：能恢复笔画，也会模糊或补错","number":7},"sectionTitle":"已运行结果：能恢复笔画，也会模糊或补错","currentQuestion":"已运行结果：能恢复笔画，也会模糊或补错","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-2c8b7f681b0083fd03c751f1","nextBlock":null,"prerequisites":[{"id":"b-31d13bd8c70f83976157b9fe","url":"#b-31d13bd8c70f83976157b9fe","role":"section-title"},{"id":"b-eeefa4cb5b4317785c661585","url":"#b-eeefa4cb5b4317785c661585","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-9bb686ff232978412d4bfd55","type":"h2","scope":"block-9d3c3c729ad94cdb91c0b82cb281f340","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-9bb686ff232978412d4bfd55","content":"## 表示评价给出另一份证据","sha256":"95b64a7746dd296de28264813d4bf844b2fff9981d84c96dcbbee728ccebec6d","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","title":"表示评价给出另一份证据","number":8},"sectionTitle":"表示评价给出另一份证据","currentQuestion":"表示评价给出另一份证据","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-ea97750328651729347db681","prerequisites":[{"id":"b-037d58ebafb30209189d3d20","url":"#b-037d58ebafb30209189d3d20","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-ea97750328651729347db681","type":"table","scope":"block-9d3c3c729ad94cdb91c0b82cb281f340","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-ea97750328651729347db681","content":"| 清洁h的冻结5-NN | 保留集数字准确率 |\n| --- | --- |\n| 去噪架构：随机初始化 | 84.26% |\n| 去噪架构：训练后 | 95.00% |\n| 遮挡架构：随机初始化 | 88.52% |\n| 遮挡架构：训练后 | 92.04% |","sha256":"e5d599a2e3509388b5adc4f129088d4d88668d0fb72b828f20b1ae406e6e4568","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","title":"表示评价给出另一份证据","number":8},"sectionTitle":"表示评价给出另一份证据","currentQuestion":"表示评价给出另一份证据","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"table":{"headers":["清洁h的冻结5-NN","保留集数字准确率"],"rows":[["清洁h的冻结5-NN","保留集数字准确率"],["去噪架构：随机初始化","84.26%"],["去噪架构：训练后","95.00%"],["遮挡架构：随机初始化","88.52%"],["遮挡架构：训练后","92.04%"]]},"previousBlock":"b-9bb686ff232978412d4bfd55","nextBlock":"b-037d58ebafb30209189d3d20","prerequisites":[{"id":"b-9bb686ff232978412d4bfd55","url":"#b-9bb686ff232978412d4bfd55","role":"section-title"},{"id":"b-037d58ebafb30209189d3d20","url":"#b-037d58ebafb30209189d3d20","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-037d58ebafb30209189d3d20","type":"p","scope":"block-9d3c3c729ad94cdb91c0b82cb281f340","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-037d58ebafb30209189d3d20","content":"![训练目标、遮挡率与冻结表示评价](/assets/display/465d25279b3f0056d4e19f7e.webp)","sha256":"7da6015ea00f50fa7bba3d614cdca8cd45be5cea73c7e77de5fb38665fb1b2bd","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","title":"表示评价给出另一份证据","number":8},"sectionTitle":"表示评价给出另一份证据","currentQuestion":"表示评价给出另一份证据","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-ea97750328651729347db681","nextBlock":"b-8a497a33051393e865fda5b4","prerequisites":[{"id":"b-9bb686ff232978412d4bfd55","url":"#b-9bb686ff232978412d4bfd55","role":"section-title"}],"relatedBlocks":[]},{"id":"b-8a497a33051393e865fda5b4","type":"p","scope":"block-9d3c3c729ad94cdb91c0b82cb281f340","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-8a497a33051393e865fda5b4","content":"训练后的瓶颈在这次固定切分上比各自随机基线更适合数字近邻识别。两种随机基线不同，因为遮挡模型多一个输入通道，种子也独立；不能只比较95%和92.04%就宣称去噪在所有任务上更好。该切分以源图为单位，没有写作者分组，因此它也不证明跨写作者泛化。","sha256":"8e5e27d2baec8db4675cb051f5f5410238fc2fb323d1d36c807a2b7848257a1e","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","title":"表示评价给出另一份证据","number":8},"sectionTitle":"表示评价给出另一份证据","currentQuestion":"表示评价给出另一份证据","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-037d58ebafb30209189d3d20","nextBlock":"b-883f34df0e14d8ea239d4e52","prerequisites":[{"id":"b-9bb686ff232978412d4bfd55","url":"#b-9bb686ff232978412d4bfd55","role":"section-title"},{"id":"b-037d58ebafb30209189d3d20","url":"#b-037d58ebafb30209189d3d20","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-883f34df0e14d8ea239d4e52","type":"p","scope":"block-9d3c3c729ad94cdb91c0b82cb281f340","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-883f34df0e14d8ea239d4e52","content":"对照 [LAB 06](https://deepnote.com/project/38755e4e-23f6-4f5f-8c68-8a2e4114b1c1/notebook/7c4f531113d7473abc174e2e014e1340)：那里训练损失下降可以同时损害某项下游能力。这里重建和读出都改善，是实际测到的共同变化，不是从“无监督”这个名称推导出来的保证。","sha256":"e942a598011225bc51c07a07d85d7bdaa62821929f8f4b330da3954661982adf","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-9d3c3c729ad94cdb91c0b82cb281f340","title":"表示评价给出另一份证据","number":8},"sectionTitle":"表示评价给出另一份证据","currentQuestion":"表示评价给出另一份证据","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-8a497a33051393e865fda5b4","nextBlock":null,"prerequisites":[{"id":"b-9bb686ff232978412d4bfd55","url":"#b-9bb686ff232978412d4bfd55","role":"section-title"},{"id":"b-037d58ebafb30209189d3d20","url":"#b-037d58ebafb30209189d3d20","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-addde0716dce15509ec14b02","type":"h2","scope":"block-18ba37010b894b2893332630cf8b3070","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-addde0716dce15509ec14b02","content":"## 与原MAE逐项对齐","sha256":"4f73b68ffb171baaf3e8ee901f1f998d5f303e020953190ae14e5ebf9490b28d","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-18ba37010b894b2893332630cf8b3070","title":"与原MAE逐项对齐","number":9},"sectionTitle":"与原MAE逐项对齐","currentQuestion":"与原MAE逐项对齐","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-88aeb2042b63037595355ec9","prerequisites":[{"id":"b-92c86db050043ca568a89b99","url":"#b-92c86db050043ca568a89b99","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-88aeb2042b63037595355ec9","type":"table","scope":"block-18ba37010b894b2893332630cf8b3070","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-88aeb2042b63037595355ec9","content":"| 环节 | 本册masked ConvAE | 原MAE关键设计 |\n| --- | --- | --- |\n| 编码器输入 | 可见像素+mask通道，完整8×8网格 | 只输入可见patch的token |\n| 编码器 | 小卷积网络、16维瓶颈 | ViT编码器 |\n| 位置恢复 | 索引热身精确演示；主模型保持网格位置 | 解码端恢复token顺序并加入mask token |\n| 重建损失 | 隐藏像素MSE | masked patch的像素重建目标 |\n| 计算量随mask变化 | 本实现基本不减少 | 可见token更少会减少编码器计算 |\n| 表示评价 | 小数字集冻结5-NN | 论文有大规模分类与迁移评价 |","sha256":"17d2aced04bdd810d8e50a9eecd85a7ba53c403c24a82f75f269a691b99b9509","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-18ba37010b894b2893332630cf8b3070","title":"与原MAE逐项对齐","number":9},"sectionTitle":"与原MAE逐项对齐","currentQuestion":"与原MAE逐项对齐","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"table":{"headers":["环节","本册masked ConvAE","原MAE关键设计"],"rows":[["环节","本册masked ConvAE","原MAE关键设计"],["编码器输入","可见像素+mask通道，完整8×8网格","只输入可见patch的token"],["编码器","小卷积网络、16维瓶颈","ViT编码器"],["位置恢复","索引热身精确演示；主模型保持网格位置","解码端恢复token顺序并加入mask token"],["重建损失","隐藏像素MSE","masked patch的像素重建目标"],["计算量随mask变化","本实现基本不减少","可见token更少会减少编码器计算"],["表示评价","小数字集冻结5-NN","论文有大规模分类与迁移评价"]]},"previousBlock":"b-addde0716dce15509ec14b02","nextBlock":"b-92c86db050043ca568a89b99","prerequisites":[{"id":"b-addde0716dce15509ec14b02","url":"#b-addde0716dce15509ec14b02","role":"section-title"},{"id":"b-92c86db050043ca568a89b99","url":"#b-92c86db050043ca568a89b99","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-92c86db050043ca568a89b99","type":"p","scope":"block-18ba37010b894b2893332630cf8b3070","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-92c86db050043ca568a89b99","content":"因此本册完成了真实图像遮挡重建与单独的表示评价，但没有把卷积模型重命名为原MAE复现。索引热身、masked ConvAE和MAE论文提供三种不同粒度的证据。","sha256":"f36623b4a66bc23f3e6de0948398eac4da9de12f2b1cb7dee15f169d61a3c0af","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-18ba37010b894b2893332630cf8b3070","title":"与原MAE逐项对齐","number":9},"sectionTitle":"与原MAE逐项对齐","currentQuestion":"与原MAE逐项对齐","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-88aeb2042b63037595355ec9","nextBlock":"b-2cbcc3a24f380aac4480eaaf","prerequisites":[{"id":"b-addde0716dce15509ec14b02","url":"#b-addde0716dce15509ec14b02","role":"section-title"}],"relatedBlocks":[]},{"id":"b-2cbcc3a24f380aac4480eaaf","type":"p","scope":"block-18ba37010b894b2893332630cf8b3070","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-2cbcc3a24f380aac4480eaaf","content":"可做的条件修改：保持训练权重，先改变 `patch_mask` 的评估遮挡比例，维持相同随机排列；再选择一个新实验，把训练遮挡率改为75%，另存新目录。先预测低可见证据会怎样改变细笔画和读出，不要只寻找一张好看的重建图。","sha256":"a0876f8de075bc82b9ef180984eea28985c8ea153021910f079bdd919e4c0538","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-18ba37010b894b2893332630cf8b3070","title":"与原MAE逐项对齐","number":9},"sectionTitle":"与原MAE逐项对齐","currentQuestion":"与原MAE逐项对齐","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-92c86db050043ca568a89b99","nextBlock":"b-ee1a875be2d298dfa649f2ad","prerequisites":[{"id":"b-addde0716dce15509ec14b02","url":"#b-addde0716dce15509ec14b02","role":"section-title"},{"id":"b-92c86db050043ca568a89b99","url":"#b-92c86db050043ca568a89b99","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-ee1a875be2d298dfa649f2ad","type":"p","scope":"block-18ba37010b894b2893332630cf8b3070","url":"https://codingai-lec03.pages.dev/course/lab08-遮挡重建与表示评价.html#b-ee1a875be2d298dfa649f2ad","content":"来源：[去噪自编码器原论文](https://www.cs.toronto.edu/~larocheh/publications/icml-2008-denoising-autoencoders.pdf)、[MAE原论文](https://openaccess.thecvf.com/content/CVPR2022/html/He_Masked_Autoencoders_Are_Scalable_Vision_Learners_CVPR_2022_paper.html)、[MAE作者实现的mask/restore/loss](https://github.com/facebookresearch/mae/blob/main/models_mae.py)、[scikit-learn digits数据说明](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_digits.html)。本册模型结构、训练权重、图和测量来自本轮CPU运行。","sha256":"1d07670d7c0674d4a921d9458ac6aca1e7f8c2c46deb6309e83d78c9c8146c58","chapter":{"id":"course","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"unit":{"id":"lab08-遮挡重建与表示评价","title":"LAB 08 · 图像重建：遮挡损失与表示评价"},"page":{"id":"reading-block-18ba37010b894b2893332630cf8b3070","title":"与原MAE逐项对齐","number":9},"sectionTitle":"与原MAE逐项对齐","currentQuestion":"与原MAE逐项对齐","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-2cbcc3a24f380aac4480eaaf","nextBlock":null,"prerequisites":[{"id":"b-addde0716dce15509ec14b02","url":"#b-addde0716dce15509ec14b02","role":"section-title"},{"id":"b-92c86db050043ca568a89b99","url":"#b-92c86db050043ca568a89b99","role":"problem-context"}],"relatedBlocks":[]}]}
