{"notes":[{"id":"feature-fusion/unet","category":"feature-fusion","legacyPath":"feature-fusion/1505-unet","legacySlug":"1505-unet","legacyPaths":[],"title":"U-Net","subtitle":"融合的序幕","author":"Z. Yuan","paperDate":"2015-05-18","publishedOn":"2024-08-15","paperTitle":"U-Net: Convolutional Networks for Biomedical Image Segmentation","paperUrl":"https://arxiv.org/abs/1505.04597","bibliography":{"title":"U-Net: Convolutional Networks for Biomedical Image Segmentation","authors":["Olaf Ronneberger","Philipp Fischer","Thomas Brox"],"url":"https://arxiv.org/abs/1505.04597","pdfUrl":"https://arxiv.org/pdf/1505.04597","codeUrl":null,"preprint":{"id":"1505.04597","submittedOn":"2015-05-18","url":"https://arxiv.org/abs/1505.04597"},"publication":{"venue":"MICCAI","year":2015,"kind":"conference","url":"https://doi.org/10.1007/978-3-319-24574-4_28"},"citation":"@misc{featurefusionunet2015,\n  title = {{U-Net: Convolutional Networks for Biomedical Image Segmentation}},\n  author = {Olaf Ronneberger and Philipp Fischer and Thomas Brox},\n  year = {2015},\n  eprint = {1505.04597},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1505.04597}\n}\n","citationPath":"/content/papers/citations/feature-fusion/unet.b015405a1c46.bib"},"thumbnail":{"src":"/content/papers/assets/0b302bf8ed079d85b3a07562463380875eb3d9dfc631684549000c38d16a5f38.jpg","width":1224,"height":824},"locale":"zh-hant","path":"/content/papers/zh-hant/feature-fusion/unet.89cc26307d56.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"討論","text":"討論","depth":2},{"id":"isbi-cell-tracking-challenge-2015","text":"ISBI Cell Tracking Challenge 2015","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"tags":["feature-fusion","segmentation","medical-imaging","freiburg"],"relatedReading":[{"id":"segmentation/fcn","relation":"background","topic":"密集預測與編解碼器的跳接"},{"id":"feature-fusion/unetpp","relation":"next","topic":"密集預測與編解碼器的跳接"},{"id":"feature-fusion/trans-unet","relation":"comparison","topic":"編解碼器如何跨尺度傳遞特徵"}]},{"id":"segmentation/fcn","category":"segmentation","legacyPath":"segmentation/1411-fcn","legacySlug":"1411-fcn","legacyPaths":[],"title":"FCN","subtitle":"全卷積網路","author":"Z. Yuan","paperDate":"2014-11-14","publishedOn":"2024-09-11","paperTitle":"Fully Convolutional Networks for Semantic Segmentation","paperUrl":"https://arxiv.org/abs/1411.4038","bibliography":{"title":"Fully Convolutional Networks for Semantic Segmentation","authors":["Jonathan Long","Evan Shelhamer","Trevor Darrell"],"url":"https://arxiv.org/abs/1411.4038","pdfUrl":"https://arxiv.org/pdf/1411.4038","codeUrl":null,"preprint":{"id":"1411.4038","submittedOn":"2014-11-14","url":"https://arxiv.org/abs/1411.4038"},"publication":{"venue":"CVPR","year":2015,"kind":"conference","url":"https://arxiv.org/abs/1411.4038"},"citation":"@misc{segmentationfcn2014,\n  title = {{Fully Convolutional Networks for Semantic Segmentation}},\n  author = {Jonathan Long and Evan Shelhamer and Trevor Darrell},\n  year = {2014},\n  eprint = {1411.4038},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1411.4038}\n}\n","citationPath":"/content/papers/citations/segmentation/fcn.1c65fe1c14c6.bib"},"thumbnail":{"src":"/content/papers/assets/1a8a4d2936086814cc5bd26819653959fe4cc29c64c5cba2009f8b8e43c87842.jpg","width":1224,"height":684},"locale":"zh-hant","path":"/content/papers/zh-hant/segmentation/fcn.4d6416e39859.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"模型架構","text":"模型架構","depth":3},{"id":"上採樣","text":"上採樣","depth":3},{"id":"多尺度融合","text":"多尺度融合","depth":3},{"id":"訓練資料集與策略","text":"訓練資料集與策略","depth":3},{"id":"評估指標","text":"評估指標","depth":3},{"id":"討論","text":"討論","depth":2},{"id":"pascal-voc-結果","text":"PASCAL VOC 結果","depth":3},{"id":"nyudv2-結果","text":"NYUDv2 結果","depth":3},{"id":"sift-flow-結果","text":"SIFT Flow 結果","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"tags":["segmentation","classic-cnns","feature-fusion","berkeley"],"relatedReading":[{"id":"feature-fusion/unet","relation":"next","topic":"密集預測與編解碼器的跳接"}]},{"id":"feature-fusion/unetpp","category":"feature-fusion","legacyPath":"feature-fusion/1912-unetpp","legacySlug":"1912-unetpp","legacyPaths":[],"title":"UNet++","subtitle":"微妙的織網者","author":"Z. Yuan","paperDate":"2019-12-11","publishedOn":"2024-06-04","paperTitle":"UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation","paperUrl":"https://arxiv.org/abs/1912.05074","bibliography":{"title":"UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation","authors":["Zongwei Zhou","Md Mahfuzur Rahman Siddiquee","Nima Tajbakhsh","Jianming Liang"],"url":"https://arxiv.org/abs/1912.05074","pdfUrl":"https://arxiv.org/pdf/1912.05074","codeUrl":null,"preprint":{"id":"1912.05074","submittedOn":"2019-12-11","url":"https://arxiv.org/abs/1912.05074"},"publication":{"venue":"IEEE Transactions on Medical Imaging","shortVenue":"IEEE TMI","year":2020,"kind":"journal","url":"https://doi.org/10.1109/tmi.2019.2959609"},"citation":"@misc{featurefusionunetpp2019,\n  title = {{UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation}},\n  author = {Zongwei Zhou and Md Mahfuzur Rahman Siddiquee and Nima Tajbakhsh and Jianming Liang},\n  year = {2019},\n  eprint = {1912.05074},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1912.05074}\n}\n","citationPath":"/content/papers/citations/feature-fusion/unetpp.705f49eb8c87.bib"},"thumbnail":{"src":"/content/papers/assets/18c574b0b0071aa4793fac92518b497a37830e9fd54c1abbc05ffb77b3365eae.jpg","width":1024,"height":244},"locale":"zh-hant","path":"/content/papers/zh-hant/feature-fusion/unetpp.b4292f557656.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"unet-模型設計","text":"UNet++ 模型設計","depth":3},{"id":"討論","text":"討論","depth":2},{"id":"就只是參數多","text":"就只是參數多？","depth":3},{"id":"深度監督和模型剪枝","text":"深度監督和模型剪枝","depth":3},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"tags":["feature-fusion","segmentation","medical-imaging"],"relatedReading":[{"id":"feature-fusion/unet","relation":"background","topic":"密集預測與編解碼器的跳接"},{"id":"feature-fusion/unetppp","relation":"next","topic":"密集預測與編解碼器的跳接"}]},{"id":"feature-fusion/trans-unet","category":"feature-fusion","legacyPath":"feature-fusion/2102-trans-unet","legacySlug":"2102-trans-unet","legacyPaths":[],"title":"TransUNet","subtitle":"不能只有卷積","author":"Z. Yuan","paperDate":"2021-02-08","publishedOn":"2025-02-06","paperTitle":"TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation","paperUrl":"https://arxiv.org/abs/2102.04306","bibliography":{"title":"TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation","authors":["Jieneng Chen","Yongyi Lu","Qihang Yu","Xiangde Luo","Ehsan Adeli","Yan Wang","Le Lu","Alan L. Yuille","Yuyin Zhou"],"url":"https://arxiv.org/abs/2102.04306","pdfUrl":"https://arxiv.org/pdf/2102.04306","codeUrl":null,"preprint":{"id":"2102.04306","submittedOn":"2021-02-08","url":"https://arxiv.org/abs/2102.04306"},"publication":null,"citation":"@misc{featurefusiontransunet2021,\n  title = {{TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation}},\n  author = {Jieneng Chen and Yongyi Lu and Qihang Yu and Xiangde Luo and Ehsan Adeli and Yan Wang and Le Lu and Alan L. Yuille and Yuyin Zhou},\n  year = {2021},\n  eprint = {2102.04306},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2102.04306}\n}\n","citationPath":"/content/papers/citations/feature-fusion/trans-unet.a4dac5dc037b.bib"},"thumbnail":{"src":"/content/papers/assets/14209e3562b4a87f468b64e95c4cdb775196c8c6b7bca43c935875959165e49e.jpg","width":1366,"height":678},"locale":"zh-hant","path":"/content/papers/zh-hant/feature-fusion/trans-unet.1628936c33d9.md","headings":[{"id":"定義問題","text":"定義問題","depth":2},{"id":"解決問題","text":"解決問題","depth":2},{"id":"討論","text":"討論","depth":2},{"id":"結論","text":"結論","depth":2}],"anchorAliases":{},"guide":null,"tags":["feature-fusion","segmentation","medical-imaging","vision-transformers","jhu","stanford"],"relatedReading":[{"id":"feature-fusion/unet","relation":"comparison","topic":"編解碼器如何跨尺度傳遞特徵"},{"id":"feature-fusion/hourglass","relation":"comparison","topic":"編解碼器如何跨尺度傳遞特徵"}]}],"text":"在這個 VGG 現世不久的時刻，還有更多的需求未能滿足。\n\n研究者發現傳統的 CNN 架構無法提供足夠的細粒度，不足以應對生物醫學影像分割的挑戰。\n\n於是就有了這個作品，這篇論文是影像分割的經典之作。\n\n## 定義問題\n\n對比於隔壁棚的圖像分類領域，大家一口一個 ImageNet，吃飽喝足，不亦樂乎。\n\n生物醫學影像分割的研究者就不是那麼愉快了。在該領域中，可以用來訓練的資料非常少，少到不足以支撐深度學習的訓練需求。\n\n解決問題的方向也沒有很明確，之前有種研究方法是將訓練資料切成多個小塊，藉此產生更多的訓練樣本。但這樣會導致另外一個問題是上下文信息的丟失，而降低了分割的準確度。\n\n恰好這時有另外一份研究提出了全卷積網路架構，給了作者一點啟發。\n\n- [**[14.11] Fully Convolutional Networks for Semantic Segmentation**](https://arxiv.org/abs/1411.4038)\n\n\n\n  ![fcn arch](/content/papers/assets/2701640b3cdc7bec7dde8fc6937fc65673f5af62cc12826879080963b8254904.jpg)\n\n\n\n或許我們可以將這個架構應用到生物醫學影像分割的問題上，解決時上下文信息丟失的問題。\n\n## 解決問題\n\n使用較大的輸入區域有助於保留上下文信息，但資料不足的問題依然存在。\n\n於是作者提出了 U-Net 架構，如下圖：\n\n\n\n![U-Net arch](/content/papers/assets/0b302bf8ed079d85b3a07562463380875eb3d9dfc631684549000c38d16a5f38.jpg)\n\n\n\n透過結合收縮路徑的高解析度特徵圖和擴張路徑的上下文資訊，提高分割的定位精度；在少量標註資料下，作者也大量使用彈性變形等資料增強來訓練模型。\n\n這裡你可以先暫時忽略數字的部分，因為作者在卷積層上沒有使用 padding，所以每經過一次卷積層，特徵圖的大小會減少。這讓第一次看到這個架構的人，會受到數字的干擾而不能好好欣賞這個架構。\n\n我們把這張圖切一半，先看左邊：\n\n\n\n![U-Net arch left](/content/papers/assets/5feacabd25963f079f463d83628e6b4b7e786c9962caead112f47b09ed5c44c3.jpg)\n\n\n\n這裡就是我們常在講的 Backbone 的部分；後續的 U-Net 變體可以替換成不同架構，例如 MobileNet 或 ResNet，但原論文使用圖中的卷積收縮路徑。\n\n原論文圖中有五個解析度層級，其中進行了四次 $2 \\times 2$ 最大池化降採樣。\n\n接著我們看右邊：\n\n\n\n![U-Net arch right](/content/papers/assets/1e06e3de0948c6da40dc8d087ada09a4c3c9caa2b213e5ab6f39c6b1e671b4cc.jpg)\n\n\n\n這邊就是我們常講的 Neck 的部分，這部分的特色就是從最底層開始上採樣，方法可以使用簡單的插值或是更複雜的反卷積，在這篇論文中作者使用了反卷積。\n\n上採樣之後我們會得到更高解析度的特徵圖，這時把收縮路徑中對應層級的特徵圖裁切到相同尺寸後進行融合；這裡作者使用了拼接。\n\n經過上述流程，最後用 $1 \\times 1$ 卷積將特徵映射到類別數；原論文圖中二類分割輸出 2 個通道。由於卷積未補邊，圖中的 $572 \\times 572$ 輸入只產生 $388 \\times 388$ 的分割結果；處理完整影像時，作者使用重疊區塊和邊界鏡射。\n\n\n> [!TIP]\n> \n> FPN 也在不同層級間傳遞特徵，但採用由上而下的路徑和側向連接相加；不只是把這裡的拼接改成相加。\n> \n> - [**[16.12] FPN: 金字塔架構**](/blog/papers/feature-fusion/fpn)\n\n\n\n> [!TIP]\n> \n> 另外一種流行的說法會把 Backbone 稱為 Encoder，把 Neck 稱為 Decoder。\n> \n> 因為這裡的任務也是做圖像到圖像間的轉換，概念上相同於 AutoEncoder 的設計理念，\n\n\n## 討論\n\n### ISBI Cell Tracking Challenge 2015\n\n![isbi](/content/papers/assets/2f1ebc354ca6cf0fe82ed9cddd392295b67c4614ea5fbddf8c8c4221240524db.jpg)\n\n作者將 U-Net 應用於 ISBI 2014 及 2015 年細胞追蹤挑戰賽：\n\n- 在 PhC-U373 資料集中，達到了 92%的 IOU，顯著超越了當時的第二名的 83%。\n- 在 DIC-HeLa 資料集中，我們取得了 77.5%的 IOU，同樣大幅超過了第二名的 46%。\n\n這些結果顯示，U-Net 在不同類型的顯微鏡影像分割任務中均展現了卓越的性能，並顯著優於其他現有的方法。\n\n## 結論\n\nU-Net 的設計方式保留了高解析度的特徵圖，透過上下文信息的融合，提高了分割的準確度，同時降低了對資料量的需求。這個架構簡單且容易擴展，使其適用於各類影像分割任務，包括細胞分割、器官分割和病變檢測等。\n\n和 FPN 比起來，拼接的結構會帶來更大的參數量和計算量，因此在對於參數量有所限制的情況下會造成一定的困擾。每種架構各有所長，我們可以多學幾種不同的設計方式，根據任務的需求來選擇最適合的架構。\n","imageSizes":{"/content/papers/assets/2701640b3cdc7bec7dde8fc6937fc65673f5af62cc12826879080963b8254904.jpg":{"width":1028,"height":516},"/content/papers/assets/0b302bf8ed079d85b3a07562463380875eb3d9dfc631684549000c38d16a5f38.jpg":{"width":1224,"height":824},"/content/papers/assets/5feacabd25963f079f463d83628e6b4b7e786c9962caead112f47b09ed5c44c3.jpg":{"width":2809,"height":1911},"/content/papers/assets/1e06e3de0948c6da40dc8d087ada09a4c3c9caa2b213e5ab6f39c6b1e671b4cc.jpg":{"width":2809,"height":1911},"/content/papers/assets/2f1ebc354ca6cf0fe82ed9cddd392295b67c4614ea5fbddf8c8c4221240524db.jpg":{"width":1224,"height":376}}}
