{"version":2,"relationshipURLBase":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.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/54cfa2249229431fa7e651cfd5d0244a.html","markdown":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.md","pages":[{"id":"reading-opening","title":"运行：模型输出必须和输入、真值一起看 · 实现代码","unit":"运行：模型输出必须和输入、真值一起看 · 实现代码","unitId":"notebook-blocks/54cfa2249229431fa7e651cfd5d0244a","chapter":"course","number":1}],"aliases":[{"oldId":"b-30935b09504986a8f23bf989","targetId":"b-30935b09504986a8f23bf989","page":"reading-opening","operation":"move","beforeSHA256":"f6dfd09a50caab375f02e0abcc3ff7a454ea579ed8eef0c35b95c95b0619c304","afterSHA256":"f6dfd09a50caab375f02e0abcc3ff7a454ea579ed8eef0c35b95c95b0619c304","reason":"Same source body in authored semantic page"},{"oldId":"b-9a67e515f9c5077d8bb7f4c0","targetId":"b-9a67e515f9c5077d8bb7f4c0","page":"reading-opening","operation":"move","beforeSHA256":"f9e5c3642891dbbd88e4c533d9237a61341b83b89807ab4540bdb4a339b65251","afterSHA256":"f9e5c3642891dbbd88e4c533d9237a61341b83b89807ab4540bdb4a339b65251","reason":"Same source body in authored semantic page"},{"oldId":"b-eb083622a97044838d7b4f2b","targetId":"b-eb083622a97044838d7b4f2b","page":"reading-opening","operation":"move","beforeSHA256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","afterSHA256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","reason":"Same source body in authored semantic page"},{"oldId":"b-99963892555eb6c461ac3a18","targetId":"b-99963892555eb6c461ac3a18","page":"reading-opening","operation":"move","beforeSHA256":"6f0b115c3c32032428a4c0d5ec4791e16d6b63aa3d643457bed758bf6af2b765","afterSHA256":"6f0b115c3c32032428a4c0d5ec4791e16d6b63aa3d643457bed758bf6af2b765","reason":"Same source body in authored semantic page"},{"oldId":"b-8792a86274088a695ae217d6","targetId":"b-8792a86274088a695ae217d6","page":"reading-opening","operation":"move","beforeSHA256":"511f953428fc36f69fb5ac6a0e012f4337791cd5195b05446ab91ccb7a45db98","afterSHA256":"511f953428fc36f69fb5ac6a0e012f4337791cd5195b05446ab91ccb7a45db98","reason":"Same source body in authored semantic page"}],"blocks":[{"id":"b-30935b09504986a8f23bf989","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.html#b-30935b09504986a8f23bf989","content":"[LAB 11 · 从 RGB 到像素：读出、FCN 与边界](/course/notebooks/9e268706471944e3a59e6f568f9ce9a3.html)","sha256":"f6dfd09a50caab375f02e0abcc3ff7a454ea579ed8eef0c35b95c95b0619c304","chapter":{"id":"course","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"unit":{"id":"notebook-blocks/54cfa2249229431fa7e651cfd5d0244a","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"page":{"id":"reading-opening","title":"运行：模型输出必须和输入、真值一起看 · 实现代码","number":1},"sectionTitle":"运行：模型输出必须和输入、真值一起看 · 实现代码","currentQuestion":"运行：模型输出必须和输入、真值一起看 · 实现代码","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":null,"nextBlock":"b-9a67e515f9c5077d8bb7f4c0","prerequisites":[],"relatedBlocks":[]},{"id":"b-9a67e515f9c5077d8bb7f4c0","type":"h1","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.html#b-9a67e515f9c5077d8bb7f4c0","content":"# 运行：模型输出必须和输入、真值一起看 · 实现代码","sha256":"f9e5c3642891dbbd88e4c533d9237a61341b83b89807ab4540bdb4a339b65251","chapter":{"id":"course","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"unit":{"id":"notebook-blocks/54cfa2249229431fa7e651cfd5d0244a","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"page":{"id":"reading-opening","title":"运行：模型输出必须和输入、真值一起看 · 实现代码","number":1},"sectionTitle":"运行：模型输出必须和输入、真值一起看 · 实现代码","currentQuestion":"运行：模型输出必须和输入、真值一起看 · 实现代码","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-30935b09504986a8f23bf989","nextBlock":"b-eb083622a97044838d7b4f2b","prerequisites":[{"id":"b-30935b09504986a8f23bf989","url":"#b-30935b09504986a8f23bf989","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-eb083622a97044838d7b4f2b","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.html#b-eb083622a97044838d7b4f2b","content":"按问题继续","sha256":"e91f24e4e4ca40e2099a0d81d30db6568f4bf2074b499eeee6e3959617bd97ac","chapter":{"id":"course","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"unit":{"id":"notebook-blocks/54cfa2249229431fa7e651cfd5d0244a","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"page":{"id":"reading-opening","title":"运行：模型输出必须和输入、真值一起看 · 实现代码","number":1},"sectionTitle":"运行：模型输出必须和输入、真值一起看 · 实现代码","currentQuestion":"运行：模型输出必须和输入、真值一起看 · 实现代码","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-9a67e515f9c5077d8bb7f4c0","nextBlock":"b-99963892555eb6c461ac3a18","prerequisites":[{"id":"b-9a67e515f9c5077d8bb7f4c0","url":"#b-9a67e515f9c5077d8bb7f4c0","role":"section-title"},{"id":"b-30935b09504986a8f23bf989","url":"#b-30935b09504986a8f23bf989","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-99963892555eb6c461ac3a18","type":"p","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.html#b-99963892555eb6c461ac3a18","content":"前景/背景/mIoU口径、RGB到mask训练、FCN与1×1读出及边界","sha256":"6f0b115c3c32032428a4c0d5ec4791e16d6b63aa3d643457bed758bf6af2b765","chapter":{"id":"course","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"unit":{"id":"notebook-blocks/54cfa2249229431fa7e651cfd5d0244a","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"page":{"id":"reading-opening","title":"运行：模型输出必须和输入、真值一起看 · 实现代码","number":1},"sectionTitle":"运行：模型输出必须和输入、真值一起看 · 实现代码","currentQuestion":"运行：模型输出必须和输入、真值一起看 · 实现代码","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-eb083622a97044838d7b4f2b","nextBlock":"b-8792a86274088a695ae217d6","prerequisites":[{"id":"b-9a67e515f9c5077d8bb7f4c0","url":"#b-9a67e515f9c5077d8bb7f4c0","role":"section-title"},{"id":"b-30935b09504986a8f23bf989","url":"#b-30935b09504986a8f23bf989","role":"problem-context"}],"relatedBlocks":[]},{"id":"b-8792a86274088a695ae217d6","type":"pre","scope":"document","url":"https://codingai-lec03.pages.dev/course/notebook-blocks/54cfa2249229431fa7e651cfd5d0244a.html#b-8792a86274088a695ae217d6","content":"```\nimport subprocess,sys,json\nsubprocess.run([sys.executable,'lab11_segmentation.py','--out','lab11-results-rerun','--epochs','20'],check=True)\nR=json.loads(Path('lab11-results-rerun/run.json').read_text())\nprint('sampling:',R['sampling_warmup'])\nfor key in ['random_FCN','learned_pixel_readout','trained_FCN','condition_nearest_logits','condition_scale_045','condition_RGB_blur5','readout_RGB_blur5']:\n    r=R[key];print(key,{k:round(v,5) for k,v in r.items() if 'IoU' in k or k=='pixel_accuracy'})\nprint(R['provenance'])\nfrom IPython.display import Image,display\nfor filename in ['sampling-warmup.png','heldout-segmentation.png','failure-segmentation.png','small-object-segmentation.png','blur-segmentation.png']:\n    display(Image(filename='lab11-results-rerun/'+filename))\n```","sha256":"511f953428fc36f69fb5ac6a0e012f4337791cd5195b05446ab91ccb7a45db98","chapter":{"id":"course","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"unit":{"id":"notebook-blocks/54cfa2249229431fa7e651cfd5d0244a","title":"运行：模型输出必须和输入、真值一起看 · 实现代码"},"page":{"id":"reading-opening","title":"运行：模型输出必须和输入、真值一起看 · 实现代码","number":1},"sectionTitle":"运行：模型输出必须和输入、真值一起看 · 实现代码","currentQuestion":"运行：模型输出必须和输入、真值一起看 · 实现代码","sourceSlides":[],"knowledgeBlock":null,"formulas":[],"previousBlock":"b-99963892555eb6c461ac3a18","nextBlock":null,"prerequisites":[{"id":"b-9a67e515f9c5077d8bb7f4c0","url":"#b-9a67e515f9c5077d8bb7f4c0","role":"section-title"},{"id":"b-30935b09504986a8f23bf989","url":"#b-30935b09504986a8f23bf989","role":"problem-context"}],"relatedBlocks":[]}]}
