{"id":563,"date":"2024-01-25T08:00:06","date_gmt":"2024-01-25T00:00:06","guid":{"rendered":"https:\/\/www.zhoubin.asia\/?p=563"},"modified":"2024-01-26T10:41:20","modified_gmt":"2024-01-26T02:41:20","slug":"blendmask","status":"publish","type":"post","link":"https:\/\/www.zhoubin.asia\/index.php\/2024\/01\/25\/blendmask\/","title":{"rendered":"[\u5206\u5272\u6a21\u578b]BlendMask"},"content":{"rendered":"<h1>BlendMask \u6a21\u578b\u67b6\u6784\u4e0e\u7279\u70b9<\/h1>\n<h2>BlendMask \u6a21\u578b\u67b6\u6784\uff1a\u00a0 \u00a0\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-567\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/BlandMask1.jpg\" alt=\"\" width=\"1006\" height=\"457\" \/><\/h2>\n<ol>\n<li>\n<h3>\u4e3b\u5e72\u7f51\u7edc\uff08Backbone\uff09\uff1a<\/h3>\n<p>BlendMask \u4f7f\u7528\u4e00\u79cd\u5f3a\u5927\u7684\u4e3b\u5e72\u7f51\u7edc\uff0c\u901a\u5e38\u91c7\u7528\u73b0\u4ee3\u7684\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08CNN\uff09\u7ed3\u6784\uff0c\u5982 ResNet \u6216\u8005 ResNeXt\u3002\u4e3b\u5e72\u7f51\u7edc\u8d1f\u8d23\u4ece\u8f93\u5165\u56fe\u50cf\u4e2d\u63d0\u53d6\u9ad8\u7ea7\u522b\u7684\u7279\u5f81\u3002<\/li>\n<li>\n<h3>FPN\uff08Feature Pyramid Network\uff09\uff1a<\/h3>\n<p>\u5f15\u5165\u7279\u5f81\u91d1\u5b57\u5854\u7f51\u7edc\uff08FPN\uff09\uff0c\u7528\u4e8e\u5904\u7406\u4e0d\u540c\u5c3a\u5ea6\u4e0a\u7684\u76ee\u6807\u3002FPN \u63d0\u9ad8\u4e86\u6a21\u578b\u5bf9\u4e8e\u4e0d\u540c\u5927\u5c0f\u76ee\u6807\u7684\u611f\u77e5\u80fd\u529b\uff0c\u5e76\u4fc3\u8fdb\u4e86\u51c6\u786e\u7684\u5b9e\u4f8b\u5206\u5272\u3002<\/li>\n<li>\n<h3>Context Module\uff1a<\/h3>\n<p>BlendMask \u5f15\u5165\u4e0a\u4e0b\u6587\u6a21\u5757\uff0c\u7528\u4e8e\u6355\u6349\u76ee\u6807\u5b9e\u4f8b\u5468\u56f4\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u5b9e\u4f8b\u5206\u5272\u7684\u8bed\u5883\u611f\u77e5\u80fd\u529b\uff0c\u4f7f\u6a21\u578b\u66f4\u597d\u5730\u7406\u89e3\u76ee\u6807\u7684\u73af\u5883\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-566\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/BlandMask2.jpg\" alt=\"\" width=\"655\" height=\"384\" \/><\/p>\n<ul>\n<li><em>\u7528\u4e8e\u9884\u6d4b prototype mask\uff0c\u8bba\u6587\u4e2d\u79f0\u8fd9\u4e2a\u4e3aBase(B)\u3002\u8f93\u5165\u7684\u7ef4\u5ea6\u4e3a (N, K, H\/s, W\/s)\u3002<\/em><\/li>\n<li><em>N\u4e3abatch size, K\u4e3aBase\u7684\u6570\u91cf(4)\uff0cH\u548cW\u662f\u8f93\u5165\u56fe\u50cf\u7684\u5927\u5c0f\uff0cs\u5219\u662fBase\u7684\u8f93\u51fa\u6b65\u957f\u3002<\/em><\/li>\n<\/ul>\n<\/li>\n<li>\n<h3>Attention Module\uff1a<\/h3>\n<p>\u6a21\u578b\u5305\u542b\u6ce8\u610f\u529b\u6a21\u5757\uff0c\u7528\u4e8e\u5bf9\u7279\u5b9a\u533a\u57df\u8fdb\u884c\u52a0\u6743\uff0c\u4f7f\u7f51\u7edc\u80fd\u591f\u96c6\u4e2d\u5173\u6ce8\u5bf9\u5b9e\u4f8b\u5206\u5272\u7279\u522b\u91cd\u8981\u7684\u533a\u57df\u3002\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u6a21\u578b\u5728\u590d\u6742\u573a\u666f\u4e2d\u7684\u6027\u80fd\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-565\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/BlandMask3.jpg\" alt=\"\" width=\"683\" height=\"214\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-568\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/BlandMask5.jpg\" alt=\"\" width=\"979\" height=\"263\" \/><\/li>\n<li>\n<h3>Instance Head\uff1a<\/h3>\n<p>BlendMask \u4f7f\u7528\u5b9e\u4f8b\u5934\uff08Instance Head\uff09\u6765\u9884\u6d4b\u6bcf\u4e2a\u76ee\u6807\u5b9e\u4f8b\u7684\u7c7b\u522b\u3001\u8fb9\u754c\u6846\u548c\u5b9e\u4f8b\u5206\u5272\u63a9\u819c\u3002\u8fd9\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u540c\u65f6\u6267\u884c\u76ee\u6807\u68c0\u6d4b\u548c\u5b9e\u4f8b\u5206\u5272\u4efb\u52a1\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-564\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/BlandMask4.jpg\" alt=\"\" width=\"512\" height=\"388\" \/><\/p>\n<ul>\n<li><em>detector tower \u751f\u6210\u7684<b>bbox<\/b><b> proposal(P)<\/b>\uff0c\u7ef4\u5ea6\u4e3a\uff08K\u00d7H&#8217;\u00d7W&#8217;\uff09\uff1b\u6b64\u5916\uff0c\u5728\u8bad\u7ec3\u7684\u65f6\u5019\uff0c\u76f4\u63a5\u4f7f\u7528GT bbox\u4f5c\u4e3aP\uff0c\u800c\u5728\u63a8\u7406\u65f6\uff0c\u5219\u4f7f\u7528\u68c0\u6d4b\u5668\u7684\u68c0\u6d4b\u7ed3\u679c\u3002<\/em><\/li>\n<li><em>top layer \u751f\u6210\u7684<b>top-level attention(A)<\/b>\uff0c\u7ef4\u5ea6\u4e3a\uff08K\u00d7M\u00d7M\uff09<\/em><\/li>\n<li><em>bottom module \u751f\u6210\u7684<b>base(B)<\/b>\uff0c\u662f\u6574\u56fe\u5927\u5c0f\u7684k\u4e2amask\uff0c\u7ef4\u5ea6\u4e3a\uff08K\u00d7H\u00d7W\uff09<br \/>\n<strong>\u5177\u4f53\u5f97\u5230Instance Head\u7684\u8fc7\u7a0b\uff1a<\/strong><\/em><\/li>\n<li><em>\u5bf9B\uff1a\u4f7f\u7528Mask R-CNN\u4e2d\u7684RoIPooler\uff08\u5373sampling ratio \u4e3a1 \u7684 RoIAlign\uff0cMask R-CNN\u4e2d\u4e3a4\uff09\uff0c\u5728 B \u4e0acrop\u51fa P \u5bf9\u5e94\u7684\u533a\u57df\u7684mask\uff0c\u5e76resize\u5230\u56fa\u5b9aR\u00d7R\u5927\u5c0f\u7684\u7279\u5f81\u56fe \uff0c\u6700\u540e\u5f97\u5230\u7684\u00a0rd\u7684\u7ef4\u5ea6\u4e3a(K\u00d7R\u00d7R)\uff1b\uff08K, R \u5206\u5225\u5728\u8bba\u6587\u8bbe\u7f6e\u4e3a 4 \u548c 56\uff09<\/em><\/li>\n<li><em>\u5bf9A\uff1a\u8fd9\u4e00\u6b65\u5176\u5b9e\u662ftop layer\u4e2d\u7684\u540e\u5904\u7406\u64cd\u4f5c\u3002\u4f5c\u8005\u6839\u636eFCOS\u4e2d\u7684\u540e\u5904\u7406\u65b9\u6cd5\uff0c\u9009\u51fa\u524dD\u4e2a\u68c0\u6d4b\u6846\u548c\u5bf9\u5e94\u7684A\uff0c\u5e76\u901a\u8fc7RoIAlign (sampling ratio=1) \u548c reshape\uff0c\u5c06A\u7684\u7ef4\u5ea6\u7531\uff08K*M*M, H\u2018, W&#8217;\uff09\u8c03\u6574\u4e3a\uff08K\u00d7M\u00d7M)\uff0c\u8bb0\u4e3aa\uff1b<\/em><\/li>\n<li><em>\u5bf9a\uff1a\u7531\u4e8eM\u4e00\u822c\u5c0f\u4e8eR\uff0c\u505a\u4e00\u4e2a\u63d2\u503c\uff0c\u5c06 A \u4ece M\u00d7M \u63d2\u6210 R\u00d7R \u5927\u5c0f\uff0c\u5f97\u5230\u7684\u00a0ad\u00a0\u7ef4\u5ea6\u4e3a(K\u00d7R\u00d7R)\uff0c\u518d\u5728K\u7ef4\u5ea6\u4e0a\u505asoftmax\uff0c\u5f97\u5230\u4e00\u7cfb\u5217\u7684scores map\uff0csd\u7684\u7ef4\u5ea6\u540c\u6837\u4e3a(K\u00d7R\u00d7R)<\/em><\/li>\n<li><em>\u8fd9\u65f6\u7684\u00a0rd\u548c\u00a0sd\u90fd\u662f\u00a0(K\u00d7R\u00d7R)\u00a0\u7684\u5927\u5c0f\uff0c\u53ef\u4ee5\u76f4\u63a5\u505aelement-wise product\uff1a\u628ak\u4e2abbox\u5927\u5c0f\u7684mask\u548c\u5bf9\u5e94\u7684attention\u4e58\u8d77\u6765\uff0c\u518d\u6309\u901a\u9053\u53e0\u52a0\u8d77\u6765\uff0c\u5f97\u5230\u6700\u7ec8\u7684mask<\/em><\/li>\n<\/ul>\n<\/li>\n<li>\n<h3>Loss Function\uff1a<\/h3>\n<p>\u6a21\u578b\u4f7f\u7528\u591a\u4efb\u52a1\u635f\u5931\u51fd\u6570\uff0c\u5305\u62ec\u76ee\u6807\u7c7b\u522b\u635f\u5931\u3001\u76ee\u6807\u8fb9\u754c\u6846\u635f\u5931\u548c\u5b9e\u4f8b\u5206\u5272\u63a9\u819c\u635f\u5931\u3002\u8fd9\u4e9b\u635f\u5931\u51fd\u6570\u5171\u540c\u8bad\u7ec3\u6a21\u578b\uff0c\u4f7f\u5176\u80fd\u591f\u5728\u591a\u65b9\u9762\u53d6\u5f97\u4f18\u5f02\u7684\u6027\u80fd\u3002<\/li>\n<\/ol>\n<h2>BlendMask \u7684\u7279\u70b9\uff1a<\/h2>\n<ol>\n<li>\n<h3>\u9ad8\u7ea7\u522b\u7279\u5f81\u878d\u5408\uff1a<\/h3>\n<p>BlendMask \u5145\u5206\u5229\u7528\u4e3b\u5e72\u7f51\u7edc\u548c\u7279\u5f81\u91d1\u5b57\u5854\u7f51\u7edc\uff0c\u5b9e\u73b0\u9ad8\u7ea7\u522b\u7279\u5f81\u7684\u6709\u6548\u878d\u5408\uff0c\u63d0\u9ad8\u5bf9\u76ee\u6807\u7684\u62bd\u8c61\u548c\u8868\u5f81\u80fd\u529b\u3002<\/li>\n<li>\n<h3>\u4e0a\u4e0b\u6587\u611f\u77e5\u548c\u6ce8\u610f\u529b\u673a\u5236\uff1a<\/h3>\n<p>\u5f15\u5165\u4e0a\u4e0b\u6587\u6a21\u5757\u548c\u6ce8\u610f\u529b\u6a21\u5757\uff0c\u4f7f\u6a21\u578b\u5177\u6709\u66f4\u5f3a\u7684\u4e0a\u4e0b\u6587\u611f\u77e5\u80fd\u529b\u548c\u5bf9\u91cd\u8981\u533a\u57df\u7684\u5173\u6ce8\u80fd\u529b\uff0c\u6709\u52a9\u4e8e\u63d0\u9ad8\u5b9e\u4f8b\u5206\u5272\u7684\u7cbe\u5ea6\u3002<\/li>\n<li>\n<h3>\u591a\u4efb\u52a1\u5b66\u4e60\uff1a<\/h3>\n<p>BlendMask \u901a\u8fc7\u591a\u4efb\u52a1\u5b66\u4e60\uff0c\u540c\u65f6\u8fdb\u884c\u76ee\u6807\u68c0\u6d4b\u548c\u5b9e\u4f8b\u5206\u5272\uff0c\u4f7f\u5f97\u6a21\u578b\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u66f4\u5168\u9762\u5730\u7406\u89e3\u56fe\u50cf\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BlendMask \u6a21\u578b\u67b6\u6784\u4e0e\u7279\u70b9 BlendMask \u6a21\u578b\u67b6\u6784\uff1a\u00a0 \u00a0\u00a0\u00a0 \u4e3b\u5e72\u7f51\u7edc\uff08Backbone\uff09\uff1a  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[15,1],"tags":[],"class_list":["post-563","post","type-post","status-publish","format-standard","hentry","category-ai","category-tech"],"_links":{"self":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":2,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/563\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/media?parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/categories?post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/tags?post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}