{"id":571,"date":"2024-01-27T08:00:50","date_gmt":"2024-01-27T00:00:50","guid":{"rendered":"https:\/\/www.zhoubin.asia\/?p=571"},"modified":"2024-01-26T10:41:36","modified_gmt":"2024-01-26T02:41:36","slug":"yolov7-mask","status":"publish","type":"post","link":"https:\/\/www.zhoubin.asia\/index.php\/2024\/01\/27\/yolov7-mask\/","title":{"rendered":"[\u5206\u5272\u6a21\u578b]yolov7-Mask"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h1>YOLOv7-Mask \u7b80\u8981\u4ecb\u7ecd<\/h1>\n<p>YOLOv7-Mask \u662f\u4e00\u79cd\u57fa\u4e8e BlendMask \u65b9\u5f0f\u83b7\u53d6\u5b9e\u4f8b\u5206\u5272\u63a9\u819c\u7684\u76ee\u6807\u68c0\u6d4b\u6a21\u578b\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-573\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/yolov7-mask1.jpg\" alt=\"\" width=\"529\" height=\"397\" \/><br \/>\n\u4ee5\u4e0b\u662f YOLOv7-Mask \u7684\u4e3b\u8981\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\n<h3>\u5408\u5e76 Base\uff1a<\/h3>\n<p>\u5c06\u57fa\u7840\u7684 4 \u4e2a base \u5408\u5e76\u4e3a\u4e00\u4e2a Kx160x160 \u7684 base\u3002\u6b64\u5916\uff0cYOLOv7-Mask \u8fd8\u989d\u5916\u589e\u52a0\u4e86\u4e00\u4e2a semantic \u7684 base(\u51715\u4e2abase)\u3002<\/li>\n<li>\n<h3>Anchor Bbox \u9009\u62e9\uff1a<\/h3>\n<p>\u9009\u62e9 N \u4e2a\u76ee\u6807\u68c0\u6d4b\u7684 anchor bbox \u5728 base \u4e0a\u8fdb\u884c ROIAlign\uff0c\u5f97\u5230 pooled_bases\uff08N\uff0cKx56x56\uff09\u3002<\/li>\n<li>\n<h3>Merge \u64cd\u4f5c\uff1a<\/h3>\n<p>\u5c06 attns \u4e0e pooled_bases \u8fdb\u884c merge \u64cd\u4f5c\uff0c\u5f97\u5230 merge_bases\u3002<\/li>\n<li>\n<h3>Attns \u5dee\u503c\uff1a<\/h3>\n<p>\u6bcf\u4e2a anchor bbox \u5bf9\u5e94\u7684 attns \u8fdb\u884c\u5dee\u503c\uff0c\u5f97\u5230 attns&#8217;\uff08Kx56x56\uff09\u3002<\/li>\n<li>\n<h3>Mask \u751f\u6210\uff1a<\/h3>\n<p>\u5c06 attns&#8217; \u4e0e pooled_bases \u76f8\u4e58\uff0c\u518d\u6309\u901a\u9053\u53e0\u52a0\u8d77\u6765\uff0c\u5f97\u5230\u6700\u7ec8\u7684 mask\uff08N \u4e2a 56&#215;56\uff09\u3002<\/li>\n<li>\n<h3>NMS \u9009\u53d6\uff1a<\/h3>\n<p>\u8fdb\u884c NMS\uff08\u975e\u6781\u5927\u503c\u6291\u5236\uff09\u9009\u53d6\u6700\u4f18\u7684 mask\uff0856&#215;56\uff09\u3002<\/li>\n<li>\n<h3>\u7f29\u653e\u4e0e\u8d34\u56fe\uff1a<\/h3>\n<p>\u5c06\u6700\u4f18\u7684 mask \u6309\u7167\u5bf9\u5e94\u7684\u6700\u4f18 bbox \u5c3a\u5bf8\u7f29\u653e\uff0c\u8d34\u5230\u539f\u56fe\u4e2d\uff0c\u5373\u53ef\u5f97\u5230\u539f\u56fe\u4e0b\u9762\u7684\u5b9e\u4f8b\u5206\u5272\u3002<\/li>\n<\/ol>\n<p>\u4e0e BlendMask \u7684\u533a\u522b\u5728\u4e8e YOLOv7-Mask \u5728 Base \u90e8\u5206\u989d\u5916\u589e\u52a0\u4e86\u4e00\u4e2a semantic \u7684 base\uff0c\u4ee5\u63d0\u9ad8\u6a21\u578b\u7684\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u3002<br \/>\n\u8fd9\u91cc\u662fyolov7-mask\u7684\u8f93\u51fa\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-572\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/yolov7-mask2.jpg\" alt=\"\" width=\"509\" height=\"586\" \/><\/p>\n<p><em><b>Attns<\/b><b>\uff1a <\/b>output, 779, 819\u00a0 [1,3,w\u2019, h\u2019, 980]<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 980 = 5x14x14 = <b>K\u00d7M\u00d7M<\/b><\/em><\/p>\n<p><em><b>Anchor<\/b><b>\uff1a<\/b>759,799,839 [1, 3, w\u2019, h\u2019, 85]<\/em><\/p>\n<p><em><b>Base:\u00a0 <\/b>651, 719 [4,160,160], [1, 160, 160]<\/em><\/p>\n<p><em>\u00a0\u00a0\u00a0 we need merge the base and the semantic,<\/em><\/p>\n<p><em>\u00a0\u00a0\u00a0 in total [5, 160, 160] = <b>K x W\/s x H\/s<\/b><\/em><\/p>\n<p><em>M \u4e3a 14, K\u4e3a 5<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; YOLOv7-Mask \u7b80\u8981\u4ecb\u7ecd YOLOv7-Mask \u662f\u4e00\u79cd\u57fa\u4e8e BlendMask \u65b9\u5f0f\u83b7 [&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-571","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\/571","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=571"}],"version-history":[{"count":1,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/571\/revisions"}],"predecessor-version":[{"id":574,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/571\/revisions\/574"}],"wp:attachment":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/media?parent=571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/categories?post=571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/tags?post=571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}