{"id":4785,"date":"2022-07-21T19:07:35","date_gmt":"2022-07-21T11:07:35","guid":{"rendered":"http:\/\/139.9.1.231\/?p=4785"},"modified":"2022-09-05T15:23:28","modified_gmt":"2022-09-05T07:23:28","slug":"yolov7","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2022\/07\/21\/yolov7\/","title":{"rendered":"YOLOv7\u6765\u4e34\uff1a\u8bba\u6587\u8be6\u8bfb\u548c\u89e3\u6790+\u8bad\u7ec3\u81ea\u5df1\u6570\u636e\u96c6"},"content":{"rendered":"\n<p>2022\u5e747\u6708\uff0cYOLOv7\u6765\u4e34\uff0c<\/p>\n\n\n\n<p> \u8bba\u6587\u94fe\u63a5\uff1ahttps:\/\/arxiv.org\/abs\/2207.02696 <\/p>\n\n\n\n<p>\u4ee3\u7801\u94fe\u63a5\uff1ahttps:\/\/github.com\/WongKinYiu\/yolov7 <\/p>\n\n\n\n<p>\u6587\u7ae0\u6458\u81eahttps:\/\/mp.weixin.qq.com\/s\/5qK1FIU7qp0Sv3IE49-t_w<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5728v7\u8bba\u6587\u6302\u51fa\u4e0d\u5230\u534a\u5929\u7684\u65f6\u95f4\uff0cYOLOv3\u548cYOLOv4\u7684\u5b98\u7f51\u4e0a\u5747\u6302\u4e0a\u4e86YOLOv7\u7684\u94fe\u63a5\u548c\u8bf4\u660e\uff0c\u7531\u6b64\u770b\u6765\u5927\u4f6c\u4eec\u90fd\u6bd4\u8f83\u8ba4\u53ef\u8fd9\u6b3e\u68c0\u6d4b\u5668\u3002<\/p>\n\n\n\n<p>\u5b98\u65b9\u7248\u7684YOLOv7\u76f8\u540c\u4f53\u91cf\u4e0b\u6bd4YOLOv5\u7cbe\u5ea6\u66f4\u9ad8\uff0c\u901f\u5ea6\u5feb120%\uff08FPS\uff09\uff0c\u6bd4 YOLOX \u5feb180%\uff08FPS\uff09\uff0c\u6bd4 Dual-Swin-T \u5feb1200%\uff08FPS\uff09\uff0c\u6bd4 ConvNext \u5feb550%\uff08FPS\uff09\uff0c\u6bd4 SWIN-L\u5feb500%\uff08FPS\uff09\u3002\u57285FPS\u5230160FPS\u7684\u8303\u56f4\u5185\uff0c\u65e0\u8bba\u662f\u901f\u5ea6\u6216\u662f\u7cbe\u5ea6\uff0cYOLOv7\u90fd\u8d85\u8fc7\u4e86\u76ee\u524d\u5df2\u77e5\u7684\u68c0\u6d4b\u5668\uff0c\u5e76\u4e14\u5728GPU V100\u4e0a\u8fdb\u884c\u6d4b\u8bd5\uff0c \u7cbe\u5ea6\u4e3a56.8% AP\u7684\u6a21\u578b\u53ef\u8fbe\u523030 FPS\uff08batch=1\uff09\u4ee5\u4e0a\u7684\u68c0\u6d4b\u901f\u7387\uff0c\u4e0e\u6b64\u540c\u65f6\uff0c\u8fd9\u662f\u76ee\u524d\u552f\u4e00\u4e00\u6b3e\u5728\u5982\u6b64\u9ad8\u7cbe\u5ea6\u4e0b\u4ecd\u80fd\u8d85\u8fc730FPS\u7684\u68c0\u6d4b\u5668\u3002\u53e6\u5916\uff0cYOLOv7\u6240\u83b7\u5f97\u7684\u6210\u679c\u4e0d\u6b62\u4e8e\u6b64\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n\n<ul><li>YOLOv7-e6 (55.9% AP, 56 FPS V100 b=1) by +500% FPS faster than SWIN-L Cascade R-CNN (53.9% AP, 9.2 FPS A100 b=1)<\/li><li>YOLOv7-e6 (55.9% AP, 56 FPS V100 b=1) by +550% FPS faster than ConvNeXt-RCNN (55.2% AP, 8.6 FPS A100 b=1)<\/li><li>YOLOv7-w6 (54.6% AP, 84 FPS V100 b=1) by +120% FPS faster than YOLOv5-X6-v6.1 (55.0% AP, 38 FPS V100 b=1)<\/li><li>YOLOv7-w6 (54.6% AP, 84 FPS V100 b=1) by +1200% FPS faster than Dual-Swin-RCNN (53.6% AP, 6.5 FPS V100 b=1)<\/li><li><strong>YOLOv7 (51.2% AP, 161 FPS V100 b=1) by +180% FPS faster than YOLOX-X (51.1% AP, 58 FPS V100 b=1)<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"971\" height=\"778\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-58.png\" alt=\"\" class=\"wp-image-4942\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-58.png 971w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-58-300x240.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-58-768x615.png 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/figure>\n\n\n\n<p>\u672c\u6587\u505a\u51fa\u7684\u8d21\u732e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol><li>\u8bbe\u8ba1\u4e86\u51e0\u79cd\u53ef\u8bad\u7ec3\u7684bag-of-freebies\uff0c\u4f7f\u5b9e\u65f6\u68c0\u6d4b\u5668\u53ef\u4ee5\u5728\u4e0d\u63d0\u9ad8\u63a8\u7406\u6210\u672c\u7684\u60c5\u51b5\u4e0b\u5927\u5927\u63d0\u9ad8\u68c0\u6d4b\u7cbe\u5ea6\uff1b<\/li><li>\u5bf9\u4e8e\u76ee\u6807\u68c0\u6d4b\u7684\u53d1\u5c55\uff0c\u4f5c\u8005\u53d1\u73b0\u4e86\u4e24\u4e2a\u65b0\u7684\u95ee\u9898\uff0c\u5373\u6a21\u5757\u91cd\u53c2\u5316\u5982\u4f55\u9ad8\u6548\u66ff\u4ee3\u539f\u59cb\u6a21\u5757\uff0c\u4ee5\u53ca\u52a8\u6001\u6807\u7b7e\u5206\u914d\u7b56\u7565\u5982\u4f55\u5904\u7406\u597d\u4e0d\u540c\u8f93\u51fa\u5c42\u7684\u5206\u914d\u3002\u56e0\u6b64\u5728\u672c\u6587\u4e2d\u63d0\u51fa\u4e86\u65b9\u6cd5\u8fdb\u884c\u89e3\u51b3\u3002<\/li><li>\u4f5c\u8005\u4e3a\u5b9e\u65f6\u63a2\u6d4b\u5668\u63d0\u51fa\u4e86\u201c\u6269\u5c55\u201d\u548c\u201c\u590d\u5408\u7f29\u653e\u201d\uff08extend\u201d and \u201ccompound scaling\u201d)\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u5229\u7528\u53c2\u6570\u548c\u8ba1\u7b97\u91cf\uff0c\u540c\u65f6\uff0c\u4f5c\u8005\u63d0\u51fa\u7684\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u5b9e\u65f6\u63a2\u6d4b\u566850%\u7684\u53c2\u6570\uff0c\u5e76\u4e14\u5177\u5907\u66f4\u5feb\u7684\u63a8\u7406\u901f\u5ea6\u548c\u66f4\u9ad8\u7684\u68c0\u6d4b\u7cbe\u5ea6\u3002\uff08\u8fd9\u4e2a\u5176\u5b9e\u548cYOLOv5\u6216\u8005Scale YOLOv4\u7684baseline\u4f7f\u7528\u4e0d\u540c\u89c4\u683c\u5206\u5316\u6210\u51e0\u79cd\u6a21\u578b\u7c7b\u4f3c\uff0c\u65e2\u53ef\u4ee5\u662fwidth\u548cdepth\u7684\u7f29\u653e\uff0c\u4e5f\u53ef\u4ee5\u662fmodule\u7684\u7f29\u653e\uff09<\/li><\/ol>\n\n\n\n<h4>2.1 \u5b9e\u65f6\u68c0\u6d4b\u5668<\/h4>\n\n\n\n<p>\u76ee\u524d\u6700\u5148\u8fdb\u7684\u5b9e\u65f6\u63a2\u6d4b\u5668\u4e3b\u8981\u57fa\u4e8eYOLO\u548cFCOS\uff0c\u5982\u679c\u9700\u8981\u7814\u53d1\u66f4\u5148\u8fdb\u7684\u5b9e\u65f6\u68c0\u6d4b\u5668\uff0c\u901a\u5e38\u9700\u8981\u5177\u5907\u4ee5\u4e0b\u7279\u5f81\uff1a<\/p>\n\n\n\n<ul><li>\uff081\uff09\u66f4\u5feb\u548c\u66f4\u9ad8\u6548\u7684\u7f51\u7edc\u67b6\u6784\uff1b<\/li><li>\uff082\uff09\u66f4\u6709\u6548\u7684\u7279\u5f81\u79ef\u5206\u65b9\u6cd5\uff1b<\/li><li>\uff083\uff09\u66f4\u51c6\u786e\u7684\u68c0\u6d4b\u65b9\u6cd5\uff1b<\/li><li>\uff084\uff09\u66f4\u9c81\u68d2\u7684\u635f\u5931\u51fd\u6570\uff1b<\/li><li>\uff085\uff09\u66f4\u6709\u6548\u7684\u6807\u7b7e\u5206\u914d\u65b9\u6cd5\uff1b<\/li><li>\uff086\uff09\u66f4\u6709\u6548\u7684\u8bad\u7ec3\u65b9\u5f0f\u3002<\/li><\/ul>\n\n\n\n<h4>2.2 \u6a21\u578b\u91cd\u53c2\u5316<\/h4>\n\n\n\n<p>\u6a21\u578b\u91cd\u53c2\u5316\u7b56\u7565\u5728\u63a8\u7406\u9636\u6bb5\u5c06\u591a\u4e2a\u6a21\u5757\u5408\u5e76\u4e3a\u4e00\u4e2a\u8ba1\u7b97\u6a21\u5757\uff0c\u53ef\u4ee5\u770b\u4f5c\u662f\u4e00\u79cd\u96c6\u6210\u6280\u672f\uff08<strong>model ensemble\uff0c\u5176\u5b9e\u7b14\u8005\u89c9\u5f97\u66f4\u50cf\u662f\u4e00\u79cd\u57fa\u4e8efeature\u7684distillation<\/strong>\uff09\uff0c\u53ef\u4ee5\u5c06\u5176\u5206\u4e3a\u6a21\u5757\u7ea7\u96c6\u6210\u548c\u6a21\u578b\u7ea7\u96c6\u6210\u4e24\u7c7b\u3002\u5bf9\u4e8e\u6a21\u578b\u7ea7\u91cd\u65b0\u53c2\u6570\u5316\u6709\u4e24\u79cd\u5e38\u89c1\u7684\u64cd\u4f5c:<\/p>\n\n\n\n<ul><li>\u4e00\u79cd\u662f\u7528\u4e0d\u540c\u7684\u8bad\u7ec3\u6570\u636e\u8bad\u7ec3\u591a\u4e2a\u76f8\u540c\u7684\u6a21\u578b\uff0c\u7136\u540e\u5bf9\u591a\u4e2a\u8bad\u7ec3\u6a21\u578b\u7684\u6743\u91cd\u8fdb\u884c\u5e73\u5747\u3002<\/li><li>\u4e00\u79cd\u662f\u5bf9\u4e0d\u540c\u8fed\u4ee3\u6b21\u6570\u4e0b\u6a21\u578b\u6743\u91cd\u8fdb\u884c\u52a0\u6743\u5e73\u5747\u3002<\/li><\/ul>\n\n\n\n<p>\u6a21\u5757\u91cd\u53c2\u5316\u662f\u8fd1\u5e74\u6765\u4e00\u4e2a\u6bd4\u8f83\u6d41\u884c\u7684\u7814\u7a76\u8bfe\u9898\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5c06\u4e00\u4e2a\u6574\u4f53\u6a21\u5757\u5206\u5272\u4e3a\u591a\u4e2a\u76f8\u540c\u6216\u4e0d\u540c\u7684\u6a21\u5757\u5206\u652f\uff0c\u4f46\u5728\u63a8\u7406\u8fc7\u7a0b\u4e2d\u5c06\u591a\u4e2a\u5206\u652f\u6a21\u5757\u96c6\u6210\u5230\u4e00\u4e2a\u5b8c\u5168\u7b49\u4ef7\u7684\u6a21\u5757\u4e2d\u3002\u7136\u800c\uff0c\u5e76\u4e0d\u662f\u6240\u6709\u63d0\u51fa\u7684\u91cd\u53c2\u5316\u6a21\u5757\u90fd\u53ef\u4ee5\u5b8c\u7f8e\u5730\u5e94\u7528\u4e8e\u4e0d\u540c\u7684\u67b6\u6784\u3002\u8003\u8651\u5230\u8fd9\u4e00\u70b9\uff0c\u4f5c\u8005\u5f00\u53d1\u4e86\u65b0\u7684\u91cd\u53c2\u6570\u5316\u6a21\u5757\uff0c\u5e76\u4e3a\u5404\u79cd\u67b6\u6784\u8bbe\u8ba1\u4e86\u76f8\u5173\u7684\u5e94\u7528\u7a0b\u5e8f\u7b56\u7565\u3002\u4e0b\u56fe\u662f\u4f5c\u8005\u4f7f\u7528\u91cd\u53c2\u5316\u5b9e\u73b0\u6784\u5efa\u7684\u591a\u4e2amodule\uff0c\u6309\u7167\u5206\u7ec4\u6570\u4e0d\u540c\u8fdb\u884c\u6392\u5217\uff0c\u4e3a\u4ec0\u4e48\u4f5c\u8005\u4f1a\u9009\u62e932\u7684\u5206\u7ec4\u6570\uff0c\u5e94\u8be5\u641e\u8fc7\u90e8\u7f72\u7684\u4f6c\u4eec\u4f1a\u6e05\u695a\u4e00\u4e9b\uff0c\u6a21\u5757\u53c2\u8003\uff1ahttps:\/\/github.com\/WongKinYiu\/yolov7\/blob\/main\/models\/common.py~<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/pic2.zhimg.com\/v2-659b99007d627d29b44fd5542c0a2b6d_r.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<h4>2.3 \u6a21\u578b\u7f29\u653e<\/h4>\n\n\n\n<p>\u6a21\u578b\u7f29\u653e\u901a\u8fc7\u6269\u5927\u6216\u7f29\u5c0fbaseline\uff0c\u4f7f\u5176\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u8ba1\u7b97\u8bbe\u5907\u3002\u6a21\u578b\u7f29\u653e\u65b9\u6cd5\u901a\u5e38\u5305\u62ec\u4e0d\u540c\u7684\u7f29\u653e\u56e0\u5b50\uff0c\u5982:<\/p>\n\n\n\n<ul><li>input size\uff08\u8f93\u5165\u56fe\u50cf\u5927\u5c0f\uff09<\/li><li>depth\uff08\u5c42\u6570\uff09<\/li><li>width\uff08\u901a\u9053\u6570\uff09<\/li><li>stage\uff08\u7279\u5f81\u91d1\u5b57\u5854\u6570\u91cf\uff09<\/li><\/ul>\n\n\n\n<p>\u4ece\u800c\u5728\u7f51\u7edc\u7684\u53c2\u6570\u91cf\u3001\u8ba1\u7b97\u91cf\u3001\u63a8\u7406\u901f\u5ea6\u548c\u7cbe\u5ea6\u65b9\u9762\u5b9e\u73b0\u5f88\u597d\u7684\u6743\u8861\u3002\u7f51\u7edc\u67b6\u6784\u641c\u7d22(NAS)\u4e5f\u662f\u76ee\u524d\u5e38\u7528\u7684\u6a21\u578b\u7f29\u653e\u65b9\u6cd5\u4e4b\u4e00<\/p>\n\n\n\n<h2><strong>\u4e09\u3001\u6a21\u578b\u8bbe\u8ba1\u67b6\u6784<\/strong><\/h2>\n\n\n\n<h3><strong>3.1 \u9ad8\u6548\u7684\u805a\u5408\u7f51\u7edc<\/strong><\/h3>\n\n\n\n<p>\u5728\u5927\u591a\u6570\u5173\u4e8e\u8bbe\u8ba1\u9ad8\u6548\u7f51\u7edc\u7684\u8bba\u6587\u4e2d\uff0c\u4e3b\u8981\u8003\u8651\u7684\u56e0\u7d20\u662f\u53c2\u6570\u91cf\u3001\u8ba1\u7b97\u91cf\u548c\u8ba1\u7b97\u5bc6\u5ea6\u3002\u4f46\u4ece\u5185\u5b58\u8bbf\u5b58\u7684\u89d2\u5ea6\u51fa\u53d1\u51fa\u53d1\uff0c\u8fd8\u53ef\u4ee5\u5206\u6790\u8f93\u5165\/\u8f93\u51fa\u4fe1\u9053\u6bd4\u3001\u67b6\u6784\u7684\u5206\u652f\u6570\u548c\u5143\u7d20\u7ea7\u64cd\u4f5c\u5bf9\u7f51\u7edc\u63a8\u7406\u901f\u5ea6\u7684\u5f71\u54cd\uff08shufflenet\u8bba\u6587\u63d0\u51fa)\u3002\u5728\u6267\u884c\u6a21\u578b\u7f29\u653e\u65f6\u8fd8\u9700\u8003\u8651\u6fc0\u6d3b\u51fd\u6570\uff0c\u5373\u66f4\u591a\u5730\u8003\u8651\u5377\u79ef\u5c42\u8f93\u51fa\u5f20\u91cf\u4e2d\u7684\u5143\u7d20\u6570\u91cf\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"476\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-61-1024x476.png\" alt=\"\" class=\"wp-image-4973\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-61-1024x476.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-61-300x140.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-61-768x357.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-61.png 1348w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u56fe2(b)\u4e2dCSPVoVNet\u662fVoVNet\u7684\u4e00\u4e2a\u53d8\u4f53\u3002\u9664\u4e86\u8003\u8651\u4e0a\u8ff0\u51e0\u4e2a\u8bbe\u8ba1\u95ee\u9898\u5916\uff0cCSPVoVNet\u7684\u4f53\u7cfb\u7ed3\u6784\u8fd8\u5206\u6790\u4e86\u68af\u5ea6\u8def\u5f84\uff0c\u4f7f\u4e0d\u540c\u5c42\u80fd\u591f\u5b66\u4e60\u66f4\u591a\u6837\u5316\u7684\u7279\u5f81\u3002\u4e0a\u9762\u63cf\u8ff0\u7684\u68af\u5ea6\u5206\u6790\u65b9\u6cd5\u8fd8\u80fd\u4f7f\u63a8\u7406\u901f\u5ea6\u66f4\u5feb\u3001\u6a21\u578b\u66f4\u51c6\u786e\uff08\u770b\u4e0b\u56fe\uff01\u5176\u5b9e\u548cResnext\u6709\u70b9\u50cf\uff0c\u4f46\u6bd4\u5b83\u590d\u6742\u4e00\u4e9b\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"582\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-62-1024x582.png\" alt=\"\" class=\"wp-image-4975\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-62-1024x582.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-62-300x170.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-62-768x436.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-62.png 1144w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li>\u56fe2\uff08c\uff09\u4e2d\u7684ELAN\u51fa\u4e8e\u4ee5\u4e0b\u8bbe\u8ba1\u8003\u8651\u2014\u2014\u201c\u5982\u4f55\u8bbe\u8ba1\u4e00\u4e2a\u9ad8\u6548\u7684\u7f51\u7edc\uff1f\u201d\u5f97\u51fa\u7ed3\u8bba\u662f\uff1a\u901a\u8fc7\u63a7\u5236\u6700\u77ed\u6700\u957f\u68af\u5ea6\u8def\u5f84\uff0c\u66f4\u6df1\u7684\u7f51\u7edc\u53ef\u4ee5\u6709\u6548\u5730\u8fdb\u884c\u5b66\u4e60\u5e76\u66f4\u597d\u5730\u6536\u655b\u3002<\/li><li>\u56e0\u6b64\uff0c\u5728\u672c\u6587\u4e2d\uff0c\u4f5c\u8005\u63d0\u51fa\u4e86<strong>\u57fa\u4e8eELAN\u7684\u6269\u5c55\u7248\u672cE-ELAN<\/strong>\uff0c\u5176\u4e3b\u8981\u67b6\u6784\u5982\u56fe2(d)\u6240\u793a\u3002\u5728\u5927\u89c4\u6a21ELAN\u4e2d\uff0c\u65e0\u8bba\u68af\u5ea6\u8def\u5f84\u957f\u5ea6\u548c\u8ba1\u7b97\u6a21\u5757\u6570\u91cf\u5982\u4f55\uff0c\u90fd\u8fbe\u5230\u4e86\u7a33\u5b9a\u7684\u72b6\u6001\u3002\u4f46\u5982\u679c\u66f4\u591a\u8ba1\u7b97\u6a21\u5757\u88ab\u65e0\u9650\u5730\u5806\u53e0\uff0c\u8fd9\u79cd\u7a33\u5b9a\u72b6\u6001\u53ef\u80fd\u4f1a\u88ab\u7834\u574f\uff0c\u53c2\u6570\u5229\u7528\u7387\u4e5f\u4f1a\u964d\u4f4e\u3002\u672c\u6587\u63d0\u51fa\u7684E-ELAN\u91c7\u7528expand\u3001shuffle\u3001merge cardinality\u7ed3\u6784\uff0c\u5b9e\u73b0\u5728\u4e0d\u7834\u574f\u539f\u59cb\u68af\u5ea6\u8def\u5f84\u7684\u60c5\u51b5\u4e0b\uff0c\u63d0\u9ad8\u7f51\u7edc\u7684\u5b66\u4e60\u80fd\u529b\u3002<\/li><\/ul>\n\n\n\n<p>\u5728\u4f53\u7cfb\u7ed3\u6784\u65b9\u9762\uff0cE-ELAN\u53ea\u6539\u53d8\u4e86\u8ba1\u7b97\u6a21\u5757\u4e2d\u7684\u7ed3\u6784\uff0c\u800c\u8fc7\u6e21\u5c42\u7684\u7ed3\u6784\u5219\u5b8c\u5168\u4e0d\u53d8\u3002\u4f5c\u8005\u7684\u7b56\u7565\u662f\u5229\u7528\u5206\u7ec4\u5377\u79ef\u6765\u6269\u5c55\u8ba1\u7b97\u6a21\u5757\u7684\u901a\u9053\u548c\u57fa\u6570\uff0c\u5c06\u76f8\u540c\u7684group parameter\u548cchannel multiplier\u7528\u4e8e\u8ba1\u7b97\u6bcf\u4e00\u5c42\u4e2d\u7684\u6240\u6709\u6a21\u5757\u3002\u7136\u540e\uff0c\u5c06\u6bcf\u4e2a\u6a21\u5757\u8ba1\u7b97\u51fa\u7684\u7279\u5f81\u56fe\u6839\u636e\u8bbe\u7f6e\u7684\u5206\u7ec4\u6570\u6253\u4e71\u6210G\u7ec4\uff0c\u6700\u540e\u5c06\u5b83\u4eec\u8fde\u63a5\u5728\u4e00\u8d77\u3002\u6b64\u65f6\uff0c\u6bcf\u4e00\u7ec4\u7279\u5f81\u56fe\u4e2d\u7684\u901a\u9053\u6570\u5c06\u4e0e\u539f\u59cb\u4f53\u7cfb\u7ed3\u6784\u4e2d\u7684\u901a\u9053\u6570\u76f8\u540c\u3002\u6700\u540e\uff0c\u4f5c\u8005\u6dfb\u52a0\u4e86G\u7ec4\u7279\u5f81\u6765merge cardinality\u3002\u9664\u4e86\u7ef4\u62a4\u539f\u59cb\u7684ELAN\u8bbe\u8ba1\u67b6\u6784\u5916\uff0cE-ELAN\u8fd8\u53ef\u4ee5\u6307\u5bfc\u4e0d\u540c\u7684\u5206\u7ec4\u6a21\u5757\u6765\u5b66\u4e60\u66f4\u591a\u6837\u5316\u7684\u7279\u6027\u3002\uff08\u96be\u4ee5\u7f6e\u4fe1\uff0c\u8981\u662f\u5728CPU\u4e0a\u8fd0\u884c\uff0c\u5206\u5206\u949f\u53ef\u80fd\u7206\uff09<\/p>\n\n\n\n<h4>3.2 \u57fa\u4e8e\u8fde\u63a5\u7684\u6a21\u578b\u7684\u6a21\u578b\u7f29\u653e<\/h4>\n\n\n\n<p>\u7f29\u653e\u8fd9\u4e2a\u5c31\u4e0d\u8bf4\u4e86\uff0c\u548cYOLOv5\u3001Scale YOLOv4\u3001YOLOX\u7c7b\u4f3c\u3002\u8981\u4e0d\u5c31depth and width\uff0c\u8981\u4e0d\u5c31module scale\uff0c\u53ef\u53c2\u8003scale yolov4\u7684P4\u3001P5\u3001P5\u7ed3\u6784\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"370\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-63-1024x370.png\" alt=\"\" class=\"wp-image-4978\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-63-1024x370.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-63-300x108.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-63-768x277.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-63.png 1380w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3>\u56db\u3001\u53ef\u8bad\u7ec3\u7684\u8d60\u54c1\u793c\u5305\uff08bag-of-freebies\uff09<\/h3>\n\n\n\n<h4>4.1 \u5377\u79ef\u91cd\u53c2\u5316<\/h4>\n\n\n\n<p>\u5c3d\u7ba1RepConv\u5728VGG\u4e0a\u53d6\u5f97\u4e86\u4f18\u5f02\u7684\u6027\u80fd\uff0c\u4f46\u5c06\u5b83\u76f4\u63a5\u5e94\u7528\u4e8eResNet\u548cDenseNet\u6216\u5176\u4ed6\u7f51\u7edc\u67b6\u6784\u65f6\uff0c\u5b83\u7684\u7cbe\u5ea6\u4f1a\u663e\u7740\u964d\u4f4e\u3002\u4f5c\u8005\u4f7f\u7528\u68af\u5ea6\u4f20\u64ad\u8def\u5f84\u6765\u5206\u6790\u4e0d\u540c\u7684\u91cd\u53c2\u5316\u6a21\u5757\u5e94\u8be5\u548c\u54ea\u4e9b\u7f51\u7edc\u642d\u914d\u4f7f\u7528\u3002\u901a\u8fc7\u5206\u6790RepConv\u4e0e\u4e0d\u540c\u67b6\u6784\u7684\u7ec4\u5408\u4ee5\u53ca\u4ea7\u751f\u7684\u6027\u80fd\uff0c\u4f5c\u8005\u53d1\u73b0RepConv\u4e2d\u7684identity\u7834\u574f\u4e86ResNet\u4e2d\u7684\u6b8b\u5dee\u7ed3\u6784\u548cDenseNet\u4e2d\u7684\u8de8\u5c42\u8fde\u63a5\uff0c\u8fd9\u4e3a\u4e0d\u540c\u7684\u7279\u5f81\u56fe\u63d0\u4f9b\u4e86\u68af\u5ea6\u7684\u591a\u6837\u6027\uff08\u9898\u5916\u8bdd\uff0c\u4e4b\u524d\u5728YOLOv5 Lite\u4e0a\u505a\u8fc7\u6b64\u7c7b\u5b9e\u9a8c\uff0c\u7ed3\u679c\u4e5f\u662f\u5982\u6b64\uff0c\u56e0\u6b64v5Lite-g\u7684\u6a21\u578b\u4e5f\u662f\u780d\u6389\u4e86identity\uff0c\u4f46\u5206\u6790\u4e0d\u51fa\u539f\u56e0\uff0c\u4f5c\u8005\u4e5f\u6ca1\u7ed9\u51fa\u5177\u4f53\u7684\u5206\u6790\u65b9\u6848\uff0c\u6b64\u5904\u8e72\u5751\uff09\u3002<\/p>\n\n\n\n<p>\u57fa\u4e8e\u4e0a\u8ff0\u539f\u56e0\uff0c\u4f5c\u8005\u4f7f\u7528\u6ca1\u6709identity\u8fde\u63a5\u7684RepConv\u7ed3\u6784\u3002\u56fe4\u663e\u793a\u4e86\u4f5c\u8005\u5728PlainNet\u548cResNet\u4e2d\u4f7f\u7528\u7684\u201c\u8ba1\u5212\u578b\u91cd\u53c2\u5316\u5377\u79ef\u201d\u7684\u4e00\u4e2a\u793a\u4f8b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"686\" height=\"470\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-64.png\" alt=\"\" class=\"wp-image-4979\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-64.png 686w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-64-300x206.png 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<h4>4.2 \u8f85\u52a9\u8bad\u7ec3\u6a21\u5757<\/h4>\n\n\n\n<p>\u6df1\u5ea6\u76d1\u7763\u662f\u4e00\u79cd\u5e38\u7528\u4e8e\u8bad\u7ec3\u6df1\u5ea6\u7f51\u7edc\u7684\u6280\u672f\uff0c\u5176\u4e3b\u8981\u6982\u5ff5\u662f\u5728\u7f51\u7edc\u7684\u4e2d\u95f4\u5c42\u589e\u52a0\u989d\u5916\u7684\u8f85\u52a9\u5934\uff0c\u4ee5\u53ca\u4ee5\u8f85\u52a9\u635f\u5931\u4e3a\u6307\u5bfc\u7684\u6d45\u5c42\u7f51\u7edc\u6743\u91cd\u3002\u5373\u4f7f\u5bf9\u4e8e\u50cfResNet\u548cDenseNet\u8fd9\u6837\u6536\u655b\u6548\u679c\u597d\u7684\u7f51\u7edc\u7ed3\u6784\uff0c\u6df1\u5ea6\u76d1\u7763\u4ecd\u7136\u53ef\u4ee5\u663e\u7740\u63d0\u9ad8\u6a21\u578b\u5728\u8bb8\u591a\u4efb\u52a1\u4e0a\u7684\u6027\u80fd\uff08\u8fd9\u4e2a\u548cNanodet Plus\u76f8\u4f3c\uff0c\u6309\u7b14\u8005\u7406\u89e3\u53ef\u4ee5\u5f53\u6210\u662f\u6df1\u5c42\u5c40\u90e8\u7f51\u7edc\u7684ensemble\uff0c\u6700\u540e\u5c06\u8f85\u52a9\u5934\u548c\u68c0\u6d4b\u5934\u7684\u6743\u91cd\u505a\u878d\u5408\uff09\u3002\u56fe5(a)\u548c(b)\u5206\u522b\u663e\u793a\u4e86\u201c\u6ca1\u6709\u201d\u548c\u201c\u6709\u201d\u6df1\u5ea6\u76d1\u7763\u7684\u76ee\u6807\u68c0\u6d4b\u5668\u67b6\u6784\uff0c\u5728\u672c\u6587\u4e2d\uff0c\u4f5c\u8005\u5c06\u8d1f\u8d23\u6700\u7ec8\u7684\u8f93\u51fa\u5934\u79f0\u4e3a\u5f15\u5bfc\u5934\uff0c\u5c06\u7528\u4e8e\u8f85\u52a9\u8bad\u7ec3\u7684\u5934\u79f0\u4e3a\u8f85\u52a9\u5934\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"334\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-65-1024x334.png\" alt=\"\" class=\"wp-image-4980\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-65-1024x334.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-65-300x98.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-65-768x250.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-65.png 1340w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u8ba8\u8bba\u6807\u7b7e\u5206\u914d\u7684\u95ee\u9898\u3002\u5728\u8fc7\u53bb\uff0c\u5728\u6df1\u5ea6\u7f51\u7edc\u7684\u8bad\u7ec3\u4e2d\uff0c\u6807\u7b7e\u5206\u914d\u901a\u5e38\u76f4\u63a5\u6307\u7684\u662fground truth\uff0c\u5e76\u6839\u636e\u7ed9\u5b9a\u7684\u89c4\u5219\u751f\u6210hard label\uff08\u672a\u7ecf\u8fc7softmax\uff09\u3002\u7136\u800c\u8fd1\u5e74\u6765\uff0c\u4ee5\u76ee\u6807\u68c0\u6d4b\u4e3a\u4f8b\uff0c\u7814\u7a76\u8005\u7ecf\u5e38\u5229\u7528\u7f51\u7edc\u9884\u6d4b\u7684\u8d28\u91cf\u5206\u5e03\u6765\u7ed3\u5408ground truth\uff0c\u4f7f\u7528\u4e00\u4e9b\u8ba1\u7b97\u548c\u4f18\u5316\u65b9\u6cd5\u6765\u751f\u6210\u53ef\u9760\u7684\u8f6f\u6807\u7b7e\uff08soft label\uff09\u3002\u4f8b\u5982\uff0cYOLO\u4f7f\u7528bounding box\u9884\u6d4b\u548cground truth\u7684IoU\u4f5c\u4e3a\u8f6f\u6807\u7b7e\u3002<\/p>\n\n\n\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u4f5c\u8005\u5c06\u7f51\u7edc\u9884\u6d4b\u7ed3\u679c\u4e0eground truth\u4e00\u8d77\u8003\u8651\u540e\u518d\u5206\u914d\u8f6f\u6807\u7b7e\u7684\u673a\u5236\u79f0\u4e3a\u201c\u6807\u7b7e\u5206\u914d\u5668\u201d\u3002\u65e0\u8bba\u8f85\u52a9\u5934\u6216\u5f15\u5bfc\u5934\uff0c\u90fd\u9700\u8981\u5bf9\u76ee\u6807\u8fdb\u884c\u6df1\u5ea6\u76d1\u7763\u3002\u90a3\u4e48\uff0c\u2018\u2019\u5982\u4f55\u4e3a\u8f85\u52a9\u5934\u548c\u5f15\u5bfc\u5934\u5408\u7406\u5206\u914d\u8f6f\u6807\u7b7e\uff1f\u201d\uff0c\u8fd9\u662f\u4f5c\u8005\u9700\u8981\u8003\u8651\u7684\u95ee\u9898\u3002\u76ee\u524d\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u5982\u56fe5\uff08c\uff09\u6240\u793a\uff0c\u5373\u5c06\u8f85\u52a9\u5934\u548c\u5f15\u5bfc\u5934\u5206\u79bb\uff0c\u7136\u540e\u5229\u7528\u5b83\u4eec\u5404\u81ea\u7684\u9884\u6d4b\u7ed3\u679c\u548cground truth\u6267\u884c\u6807\u7b7e\u5206\u914d\u3002<\/p>\n\n\n\n<p>\u672c\u6587\u63d0\u51fa\u7684\u65b9\u6cd5\u662f\u4e00\u79cd\u65b0\u7684\u6807\u7b7e\u5206\u914d\u65b9\u6cd5\uff0c\u901a\u8fc7\u5f15\u5bfc\u5934\u7684\u9884\u6d4b\u6765\u5f15\u5bfc\u8f85\u52a9\u5934\u4ee5\u53ca\u81ea\u8eab\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u9996\u5148\u4f7f\u7528\u5f15\u5bfc\u5934\u7684prediction\u4f5c\u4e3a\u6307\u5bfc\uff0c\u751f\u6210\u4ece\u7c97\u5230\u7ec6\u7684\u5c42\u6b21\u6807\u7b7e\uff0c\u5206\u522b\u7528\u4e8e\u8f85\u52a9\u5934\u548c\u5f15\u5bfc\u5934\u7684\u5b66\u4e60\uff0c\u5177\u4f53\u53ef\u770b\u56fe5(d)\u548c(e)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"583\" height=\"289\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-66.png\" alt=\"\" class=\"wp-image-4981\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-66.png 583w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/07\/image-66-300x149.png 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/figure>\n\n\n\n<p><strong>Lead head guided label assigner\uff1a<\/strong>&nbsp;\u5f15\u5bfc\u5934\u5f15\u5bfc\u201c\u6807\u7b7e\u5206\u914d\u5668\u201d\u9884\u6d4b\u7ed3\u679c\u548cground truth\u8fdb\u884c\u8ba1\u7b97\uff0c\u5e76\u901a\u8fc7\u4f18\u5316\uff08\u5728utils\/loss.py\u7684SigmoidBin(\uff09\u51fd\u6570\u4e2d\uff0c\u4f20\u9001\u95e8\uff1a<code>https:\/\/github.com\/WongKinYiu\/yolov7\/blob\/main\/utils\/loss.py<\/code>&nbsp;\u751f\u6210\u8f6f\u6807\u7b7e\u3002\u8fd9\u7ec4\u8f6f\u6807\u7b7e\u5c06\u4f5c\u4e3a\u8f85\u52a9\u5934\u548c\u5f15\u5bfc\u5934\u7684\u76ee\u6807\u6765\u8bad\u7ec3\u6a21\u578b\u3002\uff08\u4e4b\u524d\u5199\u8fc7\u4e00\u7bc7\u535a\u5ba2\uff0c\u3010\u6d45\u8c08\u8ba1\u7b97\u673a\u89c6\u89c9\u4e2d\u7684\u77e5\u8bc6\u84b8\u998f\u3011]<code>https:\/\/zhuanlan.zhihu.com\/p\/497067556<\/code>)\u8be6\u7ec6\u8bb2\u8fc7soft label\u7684\u597d\u5904\uff09\u8fd9\u6837\u505a\u7684\u76ee\u7684\u662f\u4f7f\u5f15\u5bfc\u5934\u5177\u6709\u8f83\u5f3a\u7684\u5b66\u4e60\u80fd\u529b\uff0c\u7531\u6b64\u4ea7\u751f\u7684\u8f6f\u6807\u7b7e\u66f4\u80fd\u4ee3\u8868\u6e90\u6570\u636e\u4e0e\u76ee\u6807\u4e4b\u95f4\u7684\u5206\u5e03\u5dee\u5f02\u548c\u76f8\u5173\u6027\u3002\u6b64\u5916\uff0c\u4f5c\u8005\u8fd8\u53ef\u4ee5\u5c06\u8fd9\u79cd\u5b66\u4e60\u770b\u4f5c\u662f\u4e00\u79cd\u5e7f\u4e49\u4e0a\u7684\u4f59\u91cf\u5b66\u4e60\u3002\u901a\u8fc7\u8ba9\u8f83\u6d45\u7684\u8f85\u52a9\u5934\u76f4\u63a5\u5b66\u4e60\u5f15\u5bfc\u5934\u5df2\u7ecf\u5b66\u4e60\u5230\u7684\u4fe1\u606f\uff0c\u5f15\u5bfc\u5934\u80fd\u66f4\u52a0\u4e13\u6ce8\u4e8e\u5c1a\u672a\u5b66\u4e60\u5230\u7684\u6b8b\u4f59\u4fe1\u606f\u3002<\/p>\n\n\n\n<p><strong>Coarse-to-fine lead head guided label assigner\uff1a<\/strong>&nbsp;Coarse-to-fine\u5f15\u5bfc\u5934\u4f7f\u7528\u5230\u4e86\u81ea\u8eab\u7684prediction\u548cground truth\u6765\u751f\u6210\u8f6f\u6807\u7b7e\uff0c\u5f15\u5bfc\u6807\u7b7e\u8fdb\u884c\u5206\u914d\u3002\u7136\u800c\uff0c\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u4f5c\u8005\u751f\u6210\u4e86\u4e24\u7ec4\u4e0d\u540c\u7684\u8f6f\u6807\u7b7e\uff0c\u5373\u7c97\u6807\u7b7e\u548c\u7ec6\u6807\u7b7e\uff0c\u5176\u4e2d\u7ec6\u6807\u7b7e\u4e0e\u5f15\u5bfc\u5934\u5728\u6807\u7b7e\u5206\u914d\u5668\u4e0a\u751f\u6210\u7684\u8f6f\u6807\u7b7e\u76f8\u540c\uff0c\u7c97\u6807\u7b7e\u662f\u901a\u8fc7\u964d\u4f4e\u6b63\u6837\u672c\u5206\u914d\u7684\u7ea6\u675f\uff0c\u5141\u8bb8\u66f4\u591a\u7684\u7f51\u683c\u4f5c\u4e3a\u6b63\u76ee\u6807\uff08\u53ef\u4ee5\u770b\u4e0bFastestDet\u7684label assigner\uff0c\u4e0d\u5355\u5355\u53ea\u628agt\u4e2d\u5fc3\u70b9\u6240\u5728\u7684\u7f51\u683c\u5f53\u6210\u5019\u9009\u76ee\u6807\uff0c\u8fd8\u628a\u9644\u8fd1\u7684\u4e09\u4e2a\u4e5f\u7b97\u8fdb\u884c\u53bb\uff0c\u589e\u52a0\u6b63\u6837\u672c\u5019\u9009\u6846\u7684\u6570\u91cf\uff09\u3002\u539f\u56e0\u662f\u4e00\u4e2a\u8f85\u52a9\u5934\u7684\u5b66\u4e60\u80fd\u529b\u5e76\u4e0d\u9700\u8981\u5f3a\u5927\u7684\u5f15\u5bfc\u5934\uff0c\u4e3a\u4e86\u907f\u514d\u4e22\u5931\u4fe1\u606f\uff0c\u4f5c\u8005\u5c06\u4e13\u6ce8\u4e8e\u4f18\u5316\u6837\u672c\u53ec\u56de\u7684\u8f85\u52a9\u5934\u3002\u5bf9\u4e8e\u5f15\u5bfc\u5934\u7684\u8f93\u51fa\uff0c\u53ef\u4ee5\u4ece\u67e5\u51c6\u7387\u4e2d\u8fc7\u6ee4\u51fa\u9ad8\u7cbe\u5ea6\u503c\u7684\u7ed3\u679c\u4f5c\u4e3a\u6700\u7ec8\u8f93\u51fa\u3002\u7136\u800c\uff0c\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u7c97\u6807\u7b7e\u7684\u9644\u52a0\u6743\u91cd\u63a5\u8fd1\u7ec6\u6807\u7b7e\u7684\u9644\u52a0\u6743\u91cd\uff0c\u5219\u53ef\u80fd\u4f1a\u5728\u6700\u7ec8\u9884\u6d4b\u65f6\u4ea7\u751f\u9519\u8bef\u7684\u5148\u9a8c\u7ed3\u679c\u3002<\/p>\n\n\n\n<h4>4.3 \u5176\u4ed6\u53ef\u8bad\u7ec3\u7684bag-of-freebies<\/h4>\n\n\n\n<ol><li>Batch normalization\uff1a\u76ee\u7684\u662f\u5728\u63a8\u7406\u9636\u6bb5\u5c06\u6279\u5f52\u4e00\u5316\u7684\u5747\u503c\u548c\u65b9\u5dee\u6574\u5408\u5230\u5377\u79ef\u5c42\u7684\u504f\u5dee\u548c\u6743\u91cd\u4e2d\u3002<\/li><li>YOLOR\u4e2d\u7684\u9690\u5f0f\u77e5\u8bc6\u7ed3\u5408\u5377\u79ef\u7279\u5f81\u6620\u5c04\u548c\u4e58\u6cd5\u65b9\u5f0f\uff1aYOLOR\u4e2d\u7684\u9690\u5f0f\u77e5\u8bc6\u53ef\u4ee5\u5728\u63a8\u7406\u9636\u6bb5\u5c06\u8ba1\u7b97\u503c\u7b80\u5316\u4e3a\u5411\u91cf\u3002\u8fd9\u4e2a\u5411\u91cf\u53ef\u4ee5\u4e0e\u524d\u4e00\u5c42\u6216\u540e\u4e00\u5c42\u5377\u79ef\u5c42\u7684\u504f\u5dee\u548c\u6743\u91cd\u76f8\u7ed3\u5408\u3002<\/li><li>EMA Model\uff1aEMA \u662f\u4e00\u79cd\u5728mean teacher\u4e2d\u4f7f\u7528\u7684\u6280\u672f\uff0c\u4f5c\u8005\u4f7f\u7528 EMA \u6a21\u578b\u4f5c\u4e3a\u6700\u7ec8\u7684\u63a8\u7406\u6a21\u578b\u3002<\/li><\/ol>\n\n\n\n<h3>\u4e94\u3001\u5b9e\u9a8c<\/h3>\n\n\n\n<h4>5.1 \u5b9e\u9a8c\u73af\u5883<\/h4>\n\n\n\n<p>\u4f5c\u8005\u4e3a\u8fb9\u7f18GPU\u3001\u666e\u901aGPU\u548c\u4e91GPU\u8bbe\u8ba1\u4e86\u4e09\u79cd\u6a21\u578b\uff0c\u5206\u522b\u88ab\u79f0\u4e3aYOLOv7-Tiny\u3001YOLOv7\u548cYOLOv7-W6\u3002\u540c\u65f6\uff0c\u8fd8\u4f7f\u7528\u57fa\u672c\u6a21\u578b\u9488\u5bf9\u4e0d\u540c\u7684\u670d\u52a1\u9700\u6c42\u8fdb\u884c\u7f29\u653e\uff0c\u5e76\u5f97\u5230\u4e0d\u540c\u5927\u5c0f\u7684\u6a21\u578b\u3002\u5bf9\u4e8eYOLOv7\uff0c\u53ef\u8fdb\u884c\u9888\u90e8\u7f29\u653e\uff08module scale\uff09\uff0c\u5e76\u4f7f\u7528\u6240\u63d0\u51fa\u7684\u590d\u5408\u7f29\u653e\u65b9\u6cd5\u5bf9\u6574\u4e2a\u6a21\u578b\u7684\u6df1\u5ea6\u548c\u5bbd\u5ea6\u8fdb\u884c\u7f29\u653e\uff08depth and width scale\uff09\uff0c\u6b64\u65b9\u5f0f\u83b7\u5f97\u4e86YOLOv7-X\u3002\u5bf9\u4e8eYOLOv7-W6\uff0c\u4f7f\u7528\u63d0\u51fa\u7684\u7f29\u653e\u65b9\u6cd5\u5f97\u5230\u4e86YOLOv7-E6\u548cYOLOv7-D6\u3002\u6b64\u5916\uff0c\u5728YOLOv7-E6\u4f7f\u7528\u4e86\u63d0\u51fa\u7684E-ELAN\uff0c\u4ece\u800c\u5b8c\u6210\u4e86YOLOv7-E6E\u3002\u7531\u4e8eYOLOv7-tincy\u662f\u4e00\u4e2a\u9762\u5411\u8fb9\u7f18GPU\u67b6\u6784\u7684\u6a21\u578b\uff0c\u56e0\u6b64\u5b83\u5c06\u4f7f\u7528ReLU\u4f5c\u4e3a\u6fc0\u6d3b\u51fd\u6570\u3002\u4f5c\u4e3a\u5bf9\u4e8e\u5176\u4ed6\u6a21\u578b\uff0c\u4f7f\u7528SiLU\u4f5c\u4e3a\u6fc0\u6d3b\u51fd\u6570\u3002<\/p>\n\n\n\n<p>\u9009\u62e9\u5f53\u524d\u5148\u8fdb\u7684\u68c0\u6d4b\u5668YOLOR\u4f5c\u4e3a\u57fa\u7ebf\u3002\u5728\u76f8\u540c\u8bbe\u7f6e\u4e0b\uff0c\u88681\u663e\u793a\u4e86\u672c\u6587\u63d0\u51fa\u7684YOLOv7\u6a21\u578b\u548c\u5176\u4ed6\u6a21\u578b\u7684\u5bf9\u6bd4\u3002\u4ece\u7ed3\u679c\u4e2d\u53ef\u4ee5\u770b\u51fa\uff1a<\/p>\n\n\n\n<ul><li>\u4e0eYOLOv4\u76f8\u6bd4\uff0cYOLOv7\u7684\u53c2\u6570\u51cf\u5c11\u4e8675%\uff0c\u8ba1\u7b97\u91cf\u51cf\u5c11\u4e8636%\uff0cAP\u63d0\u9ad8\u4e861.5%\u3002<\/li><li>\u4e0e\u6700\u5148\u8fdb\u7684YOLOR-CSP\u76f8\u6bd4\uff0cYOLOv7\u7684\u53c2\u6570\u5c11\u4e8643% \uff0c\u8ba1\u7b97\u91cf\u5c11\u4e8615%\uff0cAP\u9ad8\u4e860.4%\u3002<\/li><li>\u5728\u5c0f\u6a21\u578b\u7684\u6027\u80fd\u4e2d\uff0c\u4e0eYOLOv4-tiny\u76f8\u6bd4\uff0cYOLOv7-Tiny\u51cf\u5c11\u4e8639%\u7684\u53c2\u6570\u91cf\u548c49%\u7684\u8ba1\u7b97\u91cf\uff0c\u4f46\u4fdd\u6301\u76f8\u540c\u7684AP\u3002<\/li><li>\u5728\u4e91GPU\u6a21\u578b\u4e0a\uff0cYOLOv7\u6a21\u578b\u4ecd\u7136\u5177\u6709\u66f4\u9ad8\u7684AP\uff0c\u540c\u65f6\u51cf\u5c11\u4e8619%\u7684\u53c2\u6570\u91cf\u548c33%\u7684\u8ba1\u7b97\u91cf\u3002<\/li><\/ul>\n\n\n\n<h4>5.3 \u4e0esota\u7b97\u6cd5\u7684\u6bd4\u8f83<\/h4>\n\n\n\n<p>\u672c\u6587\u5c06\u6240\u63d0\u51fa\u7684\u65b9\u6cd5\u4e0e\u901a\u7528GPU\u4e0a\u6216\u8fb9\u7f18GPU\u4e0a\u6700\u5148\u8fdb\u7684\u7684\u76ee\u6807\u68c0\u6d4b\u5668\u8fdb\u884c\u4e86\u6bd4\u8f83<\/p>\n\n\n\n<ul><li>\u6bd4\u8f83YOLOv7-Tiny-SiLU\u548cYOLOv5-N(v6.1)\uff0cYOLOv7-Tiny-SiLU\u5728\u901f\u5ea6\u4e0a\u5feb127\u5e27\uff0c\u51c6\u786e\u7387\u63d0\u9ad810.7%\u3002<\/li><li>YOLOv7\u5728\u5e27\u7387\u4e3a161\u5e27\u65f6\u670951.4%\u7684AP\uff0c\u800c\u76f8\u540cAP\u7684PP-YOLOE-L\u53ea\u670978\u5e27\uff0c\u4e14\u53c2\u6570l\u5c1141%\u3002<\/li><li>YOLOv7-X\u5728114FPS\u65f6\uff0c\u6bd4YOLOv5-L(v6.1)99FPS\u7684\u63a8\u7406\u901f\u5ea6\u66f4\u5feb\uff0c\u540c\u65f6\u53ef\u4ee5\u63d0\u9ad83.9%\u7684AP\u3002<\/li><li>YOLOv7-X\u4e0eYOLOv5-X(v6.1)\u76f8\u6bd4\uff0cYOLOv7-X\u7684\u63a8\u7406\u901f\u5ea6\u8981\u5feb31fps\u3002\u6b64\u5916\uff0c\u5728\u53c2\u6570\u91cf\u548c\u8ba1\u7b97\u91cf\u65b9\u9762\uff0cYOLOv7-X\u6bd4YOLOv5-X(v6.1)\u51cf\u5c11\u4e8622%\u7684\u53c2\u6570\u548c8%\u7684\u8ba1\u7b97\u91cf\uff0c\u4f46AP\u63d0\u9ad8\u4e862.2%\u3002<\/li><li>\u4f7f\u7528\u8f93\u5165\u5206\u8fa8\u73871280\uff0cYOLOv7\u4e0eYOLOR\u8fdb\u884c\u6bd4\u8f83\uff0cYOLOv7-W6\u7684\u63a8\u7406\u901f\u5ea6\u6bd4YOLOR-P6\u5feb8FPS\uff0c\u68c0\u6d4b\u7387\u4e5f\u63d0\u9ad8\u4e861%\u7684AP\u3002<\/li><li>\u81f3\u4e8eYOLOv7-E6\u548cYOLOv5-X6(v6.1)\u6bd4\u8f83\u65f6\uff0c\u524d\u8005\u7684AP\u589e\u76ca\u6bd4\u540e\u8005\u9ad80.9%\uff0c\u4f46\u53c2\u6570\u51cf\u5c1145%\uff0c\u8ba1\u7b97\u91cf\u51cf\u5c1163%\uff0c\u63a8\u7406\u901f\u5ea6\u63d0\u9ad8\u4e8647%\u3002<\/li><li>YOLOv7-D6\u7684\u63a8\u7406\u901f\u5ea6\u4e0eYOLOR-E6\u63a5\u8fd1\uff0c\u4f46AP\u63d0\u9ad8\u4e860.8%\u3002<\/li><li>YOLOv7-E6E\u7684\u63a8\u7406\u901f\u5ea6\u4e0eYOLOR-D6\u63a5\u8fd1\uff0c\u4f46AP\u63d0\u9ad8\u4e860.3%\u3002<\/li><\/ul>\n\n\n\n<h3>\u516d\u3001\u7ed3\u8bba<\/h3>\n\n\n\n<p>\u672c\u6587\u63d0\u51fa\u4e86\u4e00\u79cd\u65b0\u7684\u5b9e\u65f6\u68c0\u6d4b\u5668\u3002\u5728\u7814\u7a76\u8fc7\u7a0b\u4e2d\uff0c\u672c\u6587\u53d1\u73b0\u4e86\u91cd\u53c2\u5316\u6a21\u5757\u7684\u66ff\u6362\u95ee\u9898\u548c\u52a8\u6001\u6807\u7b7e\u7684\u5206\u914d\u95ee\u9898\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u63d0\u51fa\u4e86\u4e00\u79cd\u53ef\u8bad\u7ec3\u7684bag-of-freebies\u7b56\u7565\u6765\u63d0\u9ad8\u76ee\u6807\u68c0\u6d4b\u7684\u7cbe\u5ea6\u3002\u57fa\u4e8e\u6b64\uff0c\u672c\u6587\u5f00\u53d1\u7684YOLOv7\u7cfb\u5217\u76ee\u6807\u68c0\u6d4b\u6a21\u578b\u83b7\u5f97\u4e86\u6700\u5148\u8fdb\u7684\u7ed3\u679c\u3002<\/p>\n\n\n\n<p>\u8bad\u7ec3\u81ea\u5df1\u6570\u636e\uff1a<\/p>\n\n\n\n<p>\u6570\u636e\u96c6\u51c6\u5907\uff1a\u51c6\u5907coco\u7c7b\u578b\u6570\u636e \uff0c\u65b0\u5efaMyDataCoco.yaml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># COCO 2017 dataset http:\/\/cocodataset.org\n\n# download command\/URL (optional)\n# download: bash .\/scripts\/get_coco.sh\n\n# train and val data as 1) directory: path\/images\/, 2) file: path\/images.txt, or 3) list: &#91;path1\/images\/, path2\/images\/]\ntrain:yolov7\/data\/train.txt  # 118287 images\nval:yolov7\/data\/val.txt  # 5000 images\ntest:yolov7\/data\/test.txt  # 20288 of 40670 images, submit to https:\/\/competitions.codalab.org\/competitions\/20794\n\n# number of classes\nnc: 10\n\n# class names\nnames: &#91;'lighthouse',\n'sailboat',\n'buoy',\n'railbar',\n'cargoship',\n'navalvessels',\n'passengership',\n'dock',\n'submarine',\n'fishingboat' ]\n\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"683\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/PR_curve-1024x683.png\" alt=\"\" class=\"wp-image-5173\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/PR_curve-1024x683.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/PR_curve-300x200.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/PR_curve-768x512.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/PR_curve-1536x1024.png 1536w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/PR_curve-2048x1365.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>&nbsp;results\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"263\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/\u6355\u83b7-1024x263.jpg\" alt=\"\" class=\"wp-image-5172\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/\u6355\u83b7-1024x263.jpg 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/\u6355\u83b7-300x77.jpg 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/\u6355\u83b7-768x197.jpg 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/\u6355\u83b7-1536x395.jpg 1536w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/\u6355\u83b7.jpg 1596w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"512\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/results-1024x512.png\" alt=\"\" class=\"wp-image-5174\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/results-1024x512.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/results-300x150.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/results-768x384.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/results-1536x768.png 1536w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/results-2048x1024.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"1024\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9-1024x1024.jpg\" alt=\"\" class=\"wp-image-5175\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9-1024x1024.jpg 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9-300x300.jpg 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9-150x150.jpg 150w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9-768x768.jpg 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9-120x120.jpg 120w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/train_batch9.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>2022\u5e747\u6708\uff0cYOLOv7\u6765\u4e34\uff0c \u8bba\u6587\u94fe\u63a5\uff1ahttps:\/\/arxiv.org\/abs\/2207.02696 &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2022\/07\/21\/yolov7\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">YOLOv7\u6765\u4e34\uff1a\u8bba\u6587\u8be6\u8bfb\u548c\u89e3\u6790+\u8bad\u7ec3\u81ea\u5df1\u6570\u636e\u96c6<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,12,9],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/4785"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=4785"}],"version-history":[{"count":17,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/4785\/revisions"}],"predecessor-version":[{"id":7328,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/4785\/revisions\/7328"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=4785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=4785"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=4785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}