{"id":1996,"date":"2026-05-10T23:21:46","date_gmt":"2026-05-10T23:21:46","guid":{"rendered":"https:\/\/www.lalife.net\/?p=1996"},"modified":"2026-05-10T23:21:46","modified_gmt":"2026-05-10T23:21:46","slug":"u-net","status":"publish","type":"post","link":"https:\/\/www.lalife.net\/?p=1996","title":{"rendered":"U-Net"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">U-Net is a type of Convolutional Neural network with a U-shape structure. It&#8217;s used in analyzing medical image to find the outlier of target area. For example, it can be used to map out brain tumors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why does it work? The first a few layers of convolutional network have more information of the edges, when the neural network going deeper, it finds more detailed information about the items in the image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Down1-&gt;Down2-&gt; Down3-&gt; Down4-&gt;Down5 -&gt; Up5-&gt; Up4-&gt; Up3-&gt; Up2-&gt; Up1 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Input : channel = 3<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Down1<\/strong>: 3&#215;3 Conv2d, in_ch=3, out_ch= 64<\/td><td><strong>Up1:<\/strong> concat down1 &amp; Up2<\/td><\/tr><tr><td>            3&#215;3 Conv2d, in_ch=64, out_ch= 64<\/td><td>3&#215;3 Conv2d in_ch=128 out_ch=64 + Relu<\/td><\/tr><tr><td>            Relu activation after each Conv<\/td><td>3&#215;3 Conv2d in_ch=64 out_ch=64 + Relu<\/td><\/tr><tr><td>            2&#215;2 Max Pooling -&gt;1\/2 h, w<\/td><td>1&#215;1 Conv2d in_ch=64 out_ch=64<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Down2<\/strong>: 3&#215;3 Conv2d, in_ch=64 out_ch=128<\/td><td><strong>Up2:<\/strong> concat down2 &amp; Up3<\/td><\/tr><tr><td>            3&#215;3 Conv2d in_ch=64 out_ch=128<\/td><td>3&#215;3 Conv2d in_ch=256 out_ch=128 + Relu<\/td><\/tr><tr><td>            Relu activation after each Conv<\/td><td>3&#215;3 Conv2d in_ch=128 out_ch=128 + Relu<\/td><\/tr><tr><td>            2&#215;2 Max Pooling<\/td><td>Upconv: filter kernel=2 stride=2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Down3<\/strong>: 3&#215;3 Conv2d in_ch=128 out_ch=256<\/td><td><strong>Up3:<\/strong> concat down3 &amp; Up4<\/td><\/tr><tr><td>            3&#215;3 Conv2d in_ch=256 out_ch=256<\/td><td>3&#215;3 Conv2d in_ch=512 out_ch=256 + Relu<\/td><\/tr><tr><td>            Relu activation after each Conv<\/td><td>3&#215;3 Conv2d in_ch=256 out_ch=256 + Relu<\/td><\/tr><tr><td>            2&#215;2 Max Pooling <\/td><td>Upconv: filter kernel=2 stride=2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Down4<\/strong>: 3&#215;3 Conv2d in_ch=256 out_ch=512<\/td><td><strong>Up4:<\/strong> concat down4 &amp; Up 5<\/td><\/tr><tr><td>           3&#215;3 Conv2d in_ch=512 out_ch=512<\/td><td>3&#215;3 Conv2d in_ch=1024 out_ch=512 + Relu<\/td><\/tr><tr><td>           Relu activation after each Conv<\/td><td>3&#215;3 Conv2d in_ch=512 out_ch=512+ Relu<\/td><\/tr><tr><td>           2&#215;2 Max Pooling <\/td><td>Upconv: filter kernel=2 stride=2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Down<\/strong>5: 3&#215;3 Conv2d in_ch=512 out_ch=1024<\/td><td><strong>Up<\/strong>5: Upconv: filter kernel=2 stride=2<\/td><\/tr><tr><td>           3&#215;3 Conv2d in_ch=1024 out_ch= 024<\/td><td><\/td><\/tr><tr><td>           Relu activation after each Conv<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">References:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1. <a href=\"https:\/\/arxiv.org\/pdf\/1505.04597\">Paper<\/a> <\/li>\n\n\n\n<li>2. <a href=\"https:\/\/towardsdatascience.com\/understanding-u-net-61276b10f360\">Understanding U-net<\/a><\/li>\n\n\n\n<li>3. <a href=\"https:\/\/medium.com\/@alejandro.itoaramendia\/decoding-the-u-net-a-complete-guide-810b1c6d56d8\">Decoding the U-net, a complete guide<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>U-Net is a type of Convolutional Neural network with a U-shape structure. It&#8217;s used in analyzing medical image to find the outlier of target area. For example, it can be used to map out brain tumors. Why does it work? &hellip; <a href=\"https:\/\/www.lalife.net\/?p=1996\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1996","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1996"}],"version-history":[{"count":12,"href":"https:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1996\/revisions"}],"predecessor-version":[{"id":2008,"href":"https:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1996\/revisions\/2008"}],"wp:attachment":[{"href":"https:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}