{"id":91062,"date":"2026-08-06T19:17:30","date_gmt":"2026-08-06T11:17:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/91062.html"},"modified":"2026-08-06T19:17:30","modified_gmt":"2026-08-06T11:17:30","slug":"yolo%e5%85%a8%e6%a0%88%e8%b0%83%e5%8f%82%e7%a7%98%e7%b1%8d%ef%bc%9a%e8%ae%ad%e7%bb%83%e5%8f%82%e6%95%b0%e3%80%81%e5%ad%a6%e4%b9%a0%e7%8e%87%e7%ad%96%e7%95%a5%e3%80%81%e4%bc%98%e5%8c%96%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/91062.html","title":{"rendered":"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4"},"content":{"rendered":"<p>\u505a\u8fc7\u5341\u51e0\u4e2aYOLO\u843d\u5730\u9879\u76ee&#xff0c;\u89c1\u8fc7\u6700\u591a\u7684\u95ee\u9898\u4ece\u6765\u4e0d\u662f\u7f51\u7edc\u6539\u5f97\u4e0d\u597d&#xff0c;\u800c\u662f\u8c03\u53c2\u8c03\u6b6a\u4e86\u3002\u540c\u6837\u7684\u6570\u636e\u96c6\u3001\u540c\u6837\u7684\u6a21\u578b&#xff0c;\u4e0d\u540c\u7684\u4eba\u8c03\u51fa\u6765\u7684mAP\u80fd\u5dee4-5\u4e2a\u70b9&#xff0c;\u5dee\u8ddd\u5168\u5728\u7ec6\u8282\u91cc\u3002\u5f88\u591a\u65b0\u624b\u8c03\u53c2\u5168\u9760\u7384\u5b66&#xff1a;\u770b\u522b\u4eba\u8bf4\u5b66\u4e60\u73870.01\u597d\u5c31\u76f4\u63a5\u6284&#xff0c;\u8bf4Adam\u6536\u655b\u5feb\u5c31\u8ddf\u7740\u6362&#xff0c;\u7ed3\u679c\u8d8a\u8bad\u8d8a\u5dee&#xff0c;\u8fde\u539f\u56e0\u90fd\u627e\u4e0d\u5230\u3002<\/p>\n<p>\u8c03\u53c2\u4ece\u6765\u4e0d\u662f\u778e\u8bd5\u53c2\u6570&#xff0c;\u800c\u662f\u4e00\u5957\u6709\u903b\u8f91\u3001\u6709\u4f18\u5148\u7ea7\u7684\u5de5\u7a0b\u65b9\u6cd5\u300280%\u7684\u7cbe\u5ea6\u63d0\u5347\u6765\u81ea20%\u7684\u6838\u5fc3\u53c2\u6570&#xff0c;\u627e\u5bf9\u987a\u5e8f\u3001\u6293\u51c6\u91cd\u70b9&#xff0c;\u624d\u80fd\u7528\u6700\u5c11\u7684\u5b9e\u9a8c\u62ff\u5230\u6700\u597d\u7684\u6548\u679c\u3002\u672c\u6587\u5c31\u4ece\u6838\u5fc3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u578b\u3001\u6570\u636e\u589e\u5f3a\u56db\u4e2a\u7ef4\u5ea6&#xff0c;\u5b8c\u6574\u62c6\u89e3YOLO\u8c03\u53c2\u7684\u5b9e\u6218\u65b9\u6cd5\u8bba&#xff0c;\u9644\u5b9e\u6d4b\u6d88\u878d\u6570\u636e\u548c\u9ad8\u9891\u8e29\u5751\u6307\u5357\u3002<\/p>\n<h3>\u4e00\u3001\u5148\u641e\u61c2\u8c03\u53c2\u4f18\u5148\u7ea7&#xff1a;\u522b\u5728\u7ec6\u679d\u672b\u8282\u4e0a\u6d6a\u8d39\u65f6\u95f4<\/h3>\n<p>\u5f88\u591a\u4eba\u4e00\u4e0a\u6765\u5c31\u76ef\u7740\u6743\u91cd\u8870\u51cf\u3001\u635f\u5931\u6743\u91cd\u8fd9\u7c7b\u7ec6\u7c92\u5ea6\u53c2\u6570\u53cd\u590d\u8c03&#xff0c;\u53cd\u800c\u5ffd\u7565\u4e86\u5f71\u54cd\u6700\u5927\u7684\u57fa\u7840\u914d\u7f6e\u3002\u8c03\u53c2\u7684\u6838\u5fc3\u539f\u5219\u662f&#xff1a;\u5148\u5b9a\u4e3b\u5e72&#xff0c;\u518d\u8c03\u7ec6\u8282&#xff1b;\u5148\u89e3\u51b3\u6536\u655b\u95ee\u9898&#xff0c;\u518d\u4f18\u5316\u7cbe\u5ea6\u3002<\/p>\n<p>\u6309\u7167\u5bf9\u6700\u7ec8\u6548\u679c\u7684\u5f71\u54cd\u7a0b\u5ea6&#xff0c;\u53c2\u6570\u4f18\u5148\u7ea7\u4ece\u9ad8\u5230\u4f4e\u6392\u5e8f\u5982\u4e0b&#xff1a;<\/p>\n<p>\u6570\u636e\u6807\u6ce8\u8d28\u91cf &gt; \u6a21\u578b\u5c3a\u5bf8 &gt; \u8f93\u5165\u56fe\u50cf\u5c3a\u5bf8 &gt; \u5b66\u4e60\u7387\u7b56\u7565 &gt; \u6570\u636e\u589e\u5f3a\u5f3a\u5ea6 &gt; \u4f18\u5316\u5668\u9009\u578b &gt; \u635f\u5931\u51fd\u6570\u6743\u91cd &gt; \u5176\u4ed6\u6b63\u5219\u5316\u53c2\u6570<\/p>\n<p>\u5bf9\u5e94\u5230\u5b9e\u9645\u8c03\u53c2\u6d41\u7a0b&#xff0c;\u4e25\u683c\u6309\u7167\u4ece\u7c97\u5230\u7ec6\u7684\u987a\u5e8f\u63a8\u8fdb&#xff0c;\u4e0d\u8981\u8df3\u6b65&#xff1a;<\/p>\n<p>#mermaid-svg-T3ipcvHLQZ6LpRlu{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-T3ipcvHLQZ6LpRlu .error-icon{fill:#552222;}#mermaid-svg-T3ipcvHLQZ6LpRlu .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-T3ipcvHLQZ6LpRlu .marker{fill:#333333;stroke:#333333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .marker.cross{stroke:#333333;}#mermaid-svg-T3ipcvHLQZ6LpRlu svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-T3ipcvHLQZ6LpRlu p{margin:0;}#mermaid-svg-T3ipcvHLQZ6LpRlu .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .cluster-label text{fill:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .cluster-label span{color:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .cluster-label span p{background-color:transparent;}#mermaid-svg-T3ipcvHLQZ6LpRlu .label text,#mermaid-svg-T3ipcvHLQZ6LpRlu span{fill:#333;color:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .node rect,#mermaid-svg-T3ipcvHLQZ6LpRlu .node circle,#mermaid-svg-T3ipcvHLQZ6LpRlu .node ellipse,#mermaid-svg-T3ipcvHLQZ6LpRlu .node polygon,#mermaid-svg-T3ipcvHLQZ6LpRlu .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .rough-node .label text,#mermaid-svg-T3ipcvHLQZ6LpRlu .node .label text,#mermaid-svg-T3ipcvHLQZ6LpRlu .image-shape .label,#mermaid-svg-T3ipcvHLQZ6LpRlu .icon-shape .label{text-anchor:middle;}#mermaid-svg-T3ipcvHLQZ6LpRlu .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .rough-node .label,#mermaid-svg-T3ipcvHLQZ6LpRlu .node .label,#mermaid-svg-T3ipcvHLQZ6LpRlu .image-shape .label,#mermaid-svg-T3ipcvHLQZ6LpRlu .icon-shape .label{text-align:center;}#mermaid-svg-T3ipcvHLQZ6LpRlu .node.clickable{cursor:pointer;}#mermaid-svg-T3ipcvHLQZ6LpRlu .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .arrowheadPath{fill:#333333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-T3ipcvHLQZ6LpRlu .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-T3ipcvHLQZ6LpRlu .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-T3ipcvHLQZ6LpRlu .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-T3ipcvHLQZ6LpRlu .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .cluster text{fill:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu .cluster span{color:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-T3ipcvHLQZ6LpRlu .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-T3ipcvHLQZ6LpRlu rect.text{fill:none;stroke-width:0;}#mermaid-svg-T3ipcvHLQZ6LpRlu .icon-shape,#mermaid-svg-T3ipcvHLQZ6LpRlu .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-T3ipcvHLQZ6LpRlu .icon-shape p,#mermaid-svg-T3ipcvHLQZ6LpRlu .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-T3ipcvHLQZ6LpRlu .icon-shape .label rect,#mermaid-svg-T3ipcvHLQZ6LpRlu .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-T3ipcvHLQZ6LpRlu .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-T3ipcvHLQZ6LpRlu .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-T3ipcvHLQZ6LpRlu :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>Loss\u9707\u8361\/\u4e0d\u6536\u655b<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6536\u655b\u8fc7\u6162\/\u6b20\u62df\u5408<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6536\u655b\u5e73\u7a33<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u786e\u5b9a\u4e1a\u52a1\u6307\u6807\u4e0e\u57fa\u7ebf\u6a21\u578b<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u57fa\u7840\u914d\u7f6e&#xff1a;imgsz &#043; batch_size<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6838\u5fc3\u8c03\u4f18&#xff1a;\u5b66\u4e60\u7387 &#043; \u4f18\u5316\u5668<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6536\u655b\u662f\u5426\u6b63\u5e38<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u4f4e\u5b66\u4e60\u7387 \/ \u589e\u52a0warmup<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9002\u5f53\u8c03\u9ad8\u5b66\u4e60\u7387 \/ \u6362\u4f18\u5316\u5668<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u6574\u6570\u636e\u589e\u5f3a\u7b56\u7565<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7cbe\u7ec6\u8c03\u4f18&#xff1a;\u6b63\u5219\u5316 &#043; \u635f\u5931\u6743\u91cd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6cdb\u5316\u6027\u9a8c\u8bc1 &#043; \u843d\u5730\u6548\u679c\u6d4b\u8bd5<\/p>\n<p><\/span><\/p>\n<p>\u6240\u6709\u5b9e\u9a8c\u5fc5\u987b\u9075\u5faa\u63a7\u5236\u53d8\u91cf\u539f\u5219&#xff1a;\u4e00\u6b21\u53ea\u6539\u4e00\u4e2a\u53c2\u6570&#xff0c;\u56fa\u5b9a\u968f\u673a\u79cd\u5b50\u4fdd\u8bc1\u53ef\u590d\u73b0\u3002\u4e0d\u8981\u540c\u65f6\u6539\u5b66\u4e60\u7387\u548c\u589e\u5f3a\u5f3a\u5ea6&#xff0c;\u6700\u540e\u7cbe\u5ea6\u53d8\u4e86\u90fd\u4e0d\u77e5\u9053\u662f\u54ea\u4e2a\u53c2\u6570\u8d77\u7684\u4f5c\u7528\u3002<\/p>\n<h3>\u4e8c\u3001\u6838\u5fc3\u8bad\u7ec3\u53c2\u6570\u62c6\u89e3&#xff1a;\u57fa\u7840\u914d\u7f6e\u51b3\u5b9a\u6027\u80fd\u4e0a\u9650<\/h3>\n<p>\u8fd9\u90e8\u5206\u53c2\u6570\u662f\u8bad\u7ec3\u7684\u9aa8\u67b6&#xff0c;\u76f4\u63a5\u51b3\u5b9a\u6a21\u578b\u7684\u7cbe\u5ea6\u4e0a\u9650\u548c\u901f\u5ea6\u57fa\u7ebf&#xff0c;\u5fc5\u987b\u5148\u5b9a\u4e0b\u6765\u518d\u8c03\u5176\u4ed6\u53c2\u6570\u3002<\/p>\n<h4>2.1 batch_size&#xff1a;\u4e0d\u662f\u8d8a\u5927\u8d8a\u597d&#xff0c;\u8981\u548c\u5b66\u4e60\u7387\u5339\u914d<\/h4>\n<p>batch_size\u7684\u672c\u8d28\u662f\u63a7\u5236\u68af\u5ea6\u7684\u5e73\u6ed1\u7a0b\u5ea6&#xff1a;batch\u8d8a\u5927&#xff0c;\u68af\u5ea6\u8d8a\u7a33\u5b9a&#xff0c;\u8bad\u7ec3\u65b9\u5411\u8d8a\u51c6&#xff1b;\u4f46batch\u592a\u5927\u5bb9\u6613\u8ba9\u6a21\u578b\u9677\u5165\u5c40\u90e8\u6700\u4f18&#xff0c;\u6cdb\u5316\u6027\u4e0b\u964d&#xff0c;\u540c\u65f6\u4e5f\u4f1a\u663e\u8457\u589e\u52a0\u663e\u5b58\u5360\u7528\u3002<\/p>\n<p>\u8c03\u6574\u539f\u5219&#xff1a;<\/p>\n<ul>\n<li>\u5728\u663e\u5b58\u5141\u8bb8\u7684\u8303\u56f4\u5185\u5c3d\u91cf\u53d6\u5927&#xff0c;\u4f46\u4e0d\u8981\u8d85\u8fc7\u603b\u6837\u672c\u6570\u76841\/100\u3002\u6bd4\u59821\u4e07\u5f20\u6837\u672c&#xff0c;batch\u8bbe16-32\u5c31\u8db3\u591f&#xff0c;\u518d\u5927\u6536\u76ca\u5f88\u4f4e\u3002<\/li>\n<li>\u9075\u5faa\u7ebf\u6027\u7f29\u653e\u89c4\u5219&#xff1a;batch\u7ffb\u500d&#xff0c;\u521d\u59cb\u5b66\u4e60\u7387\u4e5f\u8981\u540c\u6b65\u7ffb\u500d\u3002\u6bd4\u5982batch&#061;8\u5bf9\u5e94lr0&#061;0.005&#xff0c;batch&#061;16\u5bf9\u5e94lr0&#061;0.01&#xff0c;\u68af\u5ea6\u7a33\u5b9a\u6027\u662f\u5339\u914d\u7684\u3002<\/li>\n<li>\u663e\u5b58\u4e0d\u591f\u65f6\u7528\u68af\u5ea6\u7d2f\u79ef\u53c2\u6570accumulate\u66ff\u4ee3&#xff1a;\u6bd4\u5982accumulate&#061;2&#xff0c;\u7b49\u6548batch\u7ffb\u500d&#xff0c;\u4ee3\u4ef7\u662f\u8bad\u7ec3\u901f\u5ea6\u53d8\u6162\u4e00\u70b9&#xff0c;\u6bd4\u786c\u8c03\u5c0fbatch\u7684\u6548\u679c\u597d\u3002<\/li>\n<\/ul>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a; batch&#061;2\u8fd9\u79cd\u6781\u5c0f\u503c\u4f1a\u5bfc\u81f4\u68af\u5ea6\u9707\u8361\u4e25\u91cd&#xff0c;\u6a21\u578b\u5f88\u96be\u6536\u655b\u3002\u5982\u679c\u663e\u5b58\u5b9e\u5728\u4e0d\u591f&#xff0c;\u4f18\u5148\u7f29\u5c0f\u8f93\u5165\u5c3a\u5bf8&#xff0c;\u518d\u8003\u8651\u964d\u4f4ebatch\u3002<\/p>\n<h4>2.2 imgsz&#xff1a;\u8f93\u5165\u5c3a\u5bf8&#xff0c;\u5c0f\u76ee\u6807\u573a\u666f\u7684\u6838\u5fc3\u53d8\u91cf<\/h4>\n<p>\u8f93\u5165\u56fe\u50cf\u5c3a\u5bf8\u76f4\u63a5\u51b3\u5b9a\u7279\u5f81\u56fe\u7684\u5206\u8fa8\u7387&#xff0c;\u662f\u5f71\u54cd\u5c0f\u76ee\u6807\u68c0\u6d4b\u80fd\u529b\u6700\u663e\u8457\u7684\u53c2\u6570\u4e4b\u4e00\u3002\u5c3a\u5bf8\u8d8a\u5927&#xff0c;\u5c0f\u76ee\u6807\u5728\u7279\u5f81\u56fe\u4e0a\u7684\u50cf\u7d20\u70b9\u8d8a\u591a&#xff0c;\u6a21\u578b\u8d8a\u5bb9\u6613\u8bc6\u522b&#xff0c;\u4f46\u63a8\u7406\u901f\u5ea6\u548c\u663e\u5b58\u5360\u7528\u4e5f\u4f1a\u540c\u6b65\u4e0a\u5347\u3002<\/p>\n<p>\u9009\u578b\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u901a\u7528\u68c0\u6d4b\u573a\u666f&#xff1a;640\u662f\u9ec4\u91d1\u5c3a\u5bf8&#xff0c;\u7cbe\u5ea6\u548c\u901f\u5ea6\u5e73\u8861\u6700\u597d\u3002<\/li>\n<li>\u5c0f\u76ee\u6807\/\u5de5\u4e1a\u7f3a\u9677\u573a\u666f&#xff1a;\u4f18\u5148\u8bd5800&#xff0c;\u7cbe\u5ea6\u6536\u76ca\u660e\u663e&#xff1b;\u6781\u81f4\u573a\u666f\u53ef\u4ee5\u52301280&#xff0c;\u4f46\u8981\u914d\u5408\u5207\u7247\u63a8\u7406\u3002<\/li>\n<li>\u8fb9\u7f18\u7aef\u90e8\u7f72&#xff1a;\u4f18\u5148416-640&#xff0c;\u4fdd\u8bc1\u5b9e\u65f6\u5e27\u7387\u3002<\/li>\n<li>\u591a\u5c3a\u5ea6\u8bad\u7ec3multi-scale&#xff1a;\u5f00\u542f\u540e\u8bad\u7ec3\u65f6\u968f\u673a\u57280.5-1.5\u500d\u5c3a\u5bf8\u95f4\u6ce2\u52a8&#xff0c;\u80fd\u63d0\u5347\u6a21\u578b\u7684\u5c3a\u5ea6\u9c81\u68d2\u6027&#xff0c;\u4f46\u8bad\u7ec3\u901f\u5ea6\u4f1a\u4e0b\u964d30%\u5de6\u53f3&#xff0c;\u5bf9\u5c3a\u5ea6\u53d8\u5316\u5927\u7684\u573a\u666f\u53ef\u4ee5\u5f00\u3002<\/li>\n<\/ul>\n<h4>2.3 epochs\u4e0e\u65e9\u505c&#xff1a;\u76f2\u76ee\u5806\u8f6e\u6b21\u53ea\u4f1a\u8fc7\u62df\u5408<\/h4>\n<p>\u5f88\u591a\u4eba\u89c9\u5f97\u8bad\u7ec3\u8f6e\u6b21\u8d8a\u591a\u7cbe\u5ea6\u8d8a\u9ad8&#xff0c;\u5b9e\u9645\u4e0a\u6a21\u578b\u6536\u655b\u4e4b\u540e\u518d\u7ee7\u7eed\u8bad&#xff0c;\u53ea\u4f1a\u8ba9\u8bad\u7ec3\u96c6\u7cbe\u5ea6\u6301\u7eed\u4e0a\u5347&#xff0c;\u9a8c\u8bc1\u96c6\u7cbe\u5ea6\u53cd\u800c\u4e0b\u964d&#xff0c;\u4e5f\u5c31\u662f\u8fc7\u62df\u5408\u3002<\/p>\n<p>\u5b9e\u7528\u7ecf\u9a8c&#xff1a;<\/p>\n<ul>\n<li>\u5927\u6570\u636e\u96c6&#xff08;\u4e07\u7ea7\u4ee5\u4e0a&#xff09;&#xff1a;100-200\u8f6e\u8db3\u591f&#xff0c;\u914d\u5408patience&#061;20\u65e9\u505c\u3002<\/li>\n<li>\u5c0f\u6570\u636e\u96c6&#xff08;\u5343\u7ea7\u4ee5\u5185&#xff09;&#xff1a;50-80\u8f6e\u5373\u53ef&#xff0c;patience&#061;10&#xff0c;\u907f\u514d\u8bad\u8fc7\u5934\u3002<\/li>\n<li>patience\u53c2\u6570&#xff1a;\u8fde\u7eed\u591a\u5c11\u8f6emAP\u4e0d\u4e0a\u6da8\u5c31\u81ea\u52a8\u7ec8\u6b62\u8bad\u7ec3\u3002\u4e0d\u8981\u8bbe\u592a\u5c0f&#xff0c;\u4e0d\u7136\u5bb9\u6613\u5361\u5728\u5c40\u90e8\u6700\u4f18\u5c31\u505c\u4e86&#xff1b;\u4e5f\u4e0d\u8981\u8bbe\u592a\u5927&#xff0c;\u6d6a\u8d39\u65f6\u95f4\u3002<\/li>\n<\/ul>\n<p>\u5224\u65ad\u662f\u5426\u9700\u8981\u52a0\u8f6e\u6b21\u7684\u6807\u51c6&#xff1a;\u8bad\u7ec3\u7ed3\u675f\u65f6\u9a8c\u8bc1loss\u8fd8\u5728\u6301\u7eed\u4e0b\u964d&#xff0c;\u8bf4\u660e\u8fd8\u6ca1\u6536\u655b&#xff0c;\u53ef\u4ee5\u52a0\u8f6e\u6b21&#xff1b;\u5982\u679c\u9a8c\u8bc1loss\u5df2\u7ecf\u8d70\u5e73\u751a\u81f3\u4e0a\u5347&#xff0c;\u518d\u52a0\u8f6e\u6b21\u6beb\u65e0\u610f\u4e49\u3002<\/p>\n<h4>2.4 \u51bb\u7ed3\u8bad\u7ec3&#xff1a;\u5c0f\u6570\u636e\u96c6\u5fc5\u7528\u7684\u63d0\u901f\u6280\u5de7<\/h4>\n<p>\u9884\u8bad\u7ec3\u6a21\u578b\u7684\u9aa8\u5e72\u7f51\u7edc\u5df2\u7ecf\u5728\u5927\u89c4\u6a21\u6570\u636e\u96c6\u4e0a\u5b66\u5230\u4e86\u901a\u7528\u7684\u8fb9\u7f18\u3001\u7eb9\u7406\u7279\u5f81&#xff0c;\u5c0f\u6570\u636e\u96c6\u573a\u666f\u4e0b\u5982\u679c\u76f4\u63a5\u5168\u91cf\u8bad\u7ec3&#xff0c;\u5f88\u5bb9\u6613\u628a\u9884\u8bad\u7ec3\u7684\u597d\u7279\u5f81\u8bad\u574f\u3002<\/p>\n<p>\u5206\u9636\u6bb5\u8bad\u7ec3\u65b9\u6848&#xff1a;<\/p>\n<li>\u7b2c\u4e00\u9636\u6bb5&#xff1a;\u51bb\u7ed3\u9aa8\u5e72\u7f51\u7edc\u524d10-15\u5c42&#xff0c;\u53ea\u8bad\u7ec3\u68c0\u6d4b\u5934\u548cNeck&#xff0c;\u5b66\u4e60\u7387\u7a0d\u9ad8&#xff0c;\u8bad20-30\u8f6e\u3002<\/li>\n<li>\u7b2c\u4e8c\u9636\u6bb5&#xff1a;\u89e3\u51bb\u5168\u90e8\u7f51\u7edc&#xff0c;\u8c03\u4f4e\u5b66\u4e60\u7387&#xff0c;\u5168\u91cf\u5fae\u8c0350-80\u8f6e\u3002<\/li>\n<p><span class=\"token keyword\">from<\/span> ultralytics <span class=\"token keyword\">import<\/span> YOLO<\/p>\n<p>model <span class=\"token operator\">&#061;<\/span> YOLO<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;yolov11s.pt&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u51bb\u7ed3\u524d10\u5c42\u9aa8\u5e72<\/span><br \/>\nmodel<span class=\"token punctuation\">.<\/span>train<span class=\"token punctuation\">(<\/span>data<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;dataset.yaml&#034;<\/span><span class=\"token punctuation\">,<\/span> epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">,<\/span> freeze<span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span> lr0<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.01<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u89e3\u51bb\u5168\u91cf\u5fae\u8c03<\/span><br \/>\nmodel<span class=\"token punctuation\">.<\/span>train<span class=\"token punctuation\">(<\/span>resume<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span> epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">80<\/span><span class=\"token punctuation\">,<\/span> freeze<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> lr0<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.003<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u6536\u655b\u66f4\u5feb&#xff0c;\u6700\u7ec8\u6cdb\u5316\u6027\u4e5f\u66f4\u597d&#xff0c;\u5c0f\u6570\u636e\u96c6\u4e0a\u80fd\u7a33\u5b9a\u6da81-2\u4e2a\u70b9mAP\u3002<\/p>\n<h3>\u4e09\u3001\u5b66\u4e60\u7387\u7b56\u7565&#xff1a;\u8c03\u53c2\u7684\u7075\u9b42&#xff0c;80%\u7684\u7cbe\u5ea6\u5dee\u6765\u81ea\u8fd9\u91cc<\/h3>\n<p>\u5b66\u4e60\u7387\u662f\u6240\u6709\u53c2\u6570\u91cc\u5bf9\u6548\u679c\u5f71\u54cd\u6700\u5927\u7684\u5355\u4e2a\u53c2\u6570&#xff0c;\u6ca1\u6709\u4e4b\u4e00\u3002\u5b66\u4e60\u7387\u8bbe\u9519\u4e86&#xff0c;\u518d\u597d\u7684\u6a21\u578b\u4e5f\u8bad\u4e0d\u51fa\u597d\u7ed3\u679c\u3002<\/p>\n<h4>3.1 \u521d\u59cb\u5b66\u4e60\u7387lr0&#xff1a;\u6700\u6838\u5fc3\u7684\u5355\u4e2a\u53c2\u6570<\/h4>\n<p>\u5b66\u4e60\u7387\u63a7\u5236\u6bcf\u4e00\u8f6e\u66f4\u65b0\u6743\u91cd\u7684\u6b65\u957f&#xff1a;<\/p>\n<ul>\n<li>\u592a\u5927&#xff1a;\u68af\u5ea6\u6765\u56de\u9707\u8361&#xff0c;loss\u5ffd\u9ad8\u5ffd\u4f4e&#xff0c;\u751a\u81f3\u68af\u5ea6\u7206\u70b8\u76f4\u63a5\u8bad\u5d29\u3002<\/li>\n<li>\u592a\u5c0f&#xff1a;\u6536\u655b\u901f\u5ea6\u6781\u6162&#xff0c;\u5bb9\u6613\u5361\u5728\u5c40\u90e8\u6700\u4f18&#xff0c;\u957f\u65f6\u95f4\u7cbe\u5ea6\u4e0d\u6da8\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u540c\u4f18\u5316\u5668\u7684\u53c2\u8003\u57fa\u51c6&#xff1a;<\/p>\n<table>\n<tr>\u4f18\u5316\u5668\u901a\u7528\u573a\u666f\u521d\u59cb\u5b66\u4e60\u7387\u5fae\u8c03\u573a\u666f\u521d\u59cb\u5b66\u4e60\u7387<\/tr>\n<tbody>\n<tr>\n<td>SGD<\/td>\n<td>0.005 &#8211; 0.01<\/td>\n<td>0.001 &#8211; 0.003<\/td>\n<\/tr>\n<tr>\n<td>AdamW<\/td>\n<td>0.001 &#8211; 0.003<\/td>\n<td>1e-4 &#8211; 5e-4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5224\u65ad\u5b66\u4e60\u7387\u662f\u5426\u5408\u9002&#xff0c;\u770b\u8bad\u7ec3Loss\u66f2\u7ebf&#xff1a;<\/p>\n<ul>\n<li>Loss\u65ad\u5d16\u5f0f\u4e0b\u8dcc\u540e\u5267\u70c8\u9707\u8361&#xff1a;\u5b66\u4e60\u7387\u592a\u5927&#xff0c;\u51cf\u534a\u518d\u8bd5\u3002<\/li>\n<li>Loss\u4e0b\u964d\u975e\u5e38\u5e73\u7f13&#xff0c;\u51e0\u5341\u8f6e\u90fd\u6ca1\u660e\u663e\u53d8\u5316&#xff1a;\u5b66\u4e60\u7387\u592a\u5c0f&#xff0c;\u4e58\u4ee52-3\u500d\u3002<\/li>\n<li>Loss\u524d\u671f\u5feb\u901f\u4e0b\u964d&#xff0c;\u540e\u671f\u5e73\u7a33\u4e0b\u964d&#xff1a;\u5b66\u4e60\u7387\u5408\u9002\u3002<\/li>\n<\/ul>\n<p>\u9ad8\u9891\u8e29\u5751&#xff1a;\u7528Adam\u4f18\u5316\u5668\u7684\u65f6\u5019\u8fd8\u8bbe0.01\u7684\u5b66\u4e60\u7387&#xff0c;\u8fd9\u662f\u65b0\u624b\u6700\u5bb9\u6613\u72af\u7684\u9519\u8bef&#xff0c;10\u4e2a\u8bad\u5d29\u7684\u91cc\u9762\u67098\u4e2a\u662f\u8fd9\u4e2a\u539f\u56e0\u3002\u81ea\u9002\u5e94\u4f18\u5316\u5668\u7684\u5b66\u4e60\u7387\u672c\u6765\u5c31\u8981\u6bd4SGD\u5c0f\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002<\/p>\n<h4>3.2 \u5b66\u4e60\u7387\u8c03\u5ea6\u5668&#xff1a;\u8ba9\u4e0b\u964d\u8282\u594f\u66f4\u5408\u7406<\/h4>\n<p>\u5b66\u4e60\u7387\u4e0d\u662f\u4e00\u6210\u4e0d\u53d8\u7684&#xff0c;\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u8981\u9010\u6b65\u964d\u4f4e&#xff0c;\u524d\u671f\u5927\u6b65\u8d70\u5feb\u901f\u6536\u655b&#xff0c;\u540e\u671f\u5c0f\u6b65\u8d70\u7cbe\u7ec6\u8c03\u6574\u3002YOLO\u5185\u7f6e\u4e86\u4e24\u79cd\u4e3b\u6d41\u8c03\u5ea6\u7b56\u7565&#xff1a;<\/p>\n<li>\n<p>\u4f59\u5f26\u9000\u706b&#xff08;cos_lr&#061;True&#xff09;<br \/>\n\u9ed8\u8ba4\u7b56\u7565&#xff0c;\u5b66\u4e60\u7387\u6309\u7167\u4f59\u5f26\u66f2\u7ebf\u4ece\u9ad8\u5230\u4f4e\u7f13\u6162\u4e0b\u964d\u3002\u4f18\u70b9\u662f\u4e2d\u671f\u4f1a\u6709\u5c0f\u5e45\u56de\u5f39&#xff0c;\u66f4\u5bb9\u6613\u8df3\u51fa\u5c40\u90e8\u6700\u4f18&#xff0c;\u6700\u7ec8\u7cbe\u5ea6\u66f4\u9ad8&#xff0c;\u9002\u5408\u5927\u591a\u6570\u573a\u666f\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ebf\u6027\u8870\u51cf<br \/>\n\u5b66\u4e60\u7387\u5300\u901f\u4e0b\u964d&#xff0c;\u8fc7\u7a0b\u66f4\u5e73\u7a33&#xff0c;\u6ce2\u52a8\u5c0f\u3002\u9002\u5408\u5bf9\u8bad\u7ec3\u7a33\u5b9a\u6027\u8981\u6c42\u9ad8\u7684\u5de5\u4e1a\u573a\u666f&#xff0c;\u4ee5\u53ca\u5fae\u8c03\u9636\u6bb5\u4f7f\u7528\u3002<\/p>\n<\/li>\n<p>\u914d\u5408lrf\u53c2\u6570\u63a7\u5236\u6700\u7ec8\u5b66\u4e60\u7387\u500d\u7387&#xff0c;\u9ed8\u8ba40.01&#xff0c;\u4e5f\u5c31\u662f\u8bad\u7ec3\u7ed3\u675f\u65f6\u5b66\u4e60\u7387\u964d\u5230\u521d\u59cb\u76841%\u3002\u8fd9\u4e2a\u503c\u4e0d\u7528\u5927\u6539&#xff0c;\u901a\u7528\u573a\u666f\u9ed8\u8ba4\u5373\u53ef\u3002<\/p>\n<h4>3.3 Warmup\u9884\u70ed&#xff1a;\u89e3\u51b3\u521d\u671f\u68af\u5ea6\u4e0d\u7a33\u5b9a<\/h4>\n<p>\u8bad\u7ec3\u521a\u5f00\u59cb\u7684\u65f6\u5019&#xff0c;\u6743\u91cd\u662f\u968f\u673a\u521d\u59cb\u5316\u7684&#xff0c;\u68af\u5ea6\u65b9\u5411\u5f88\u4e0d\u7a33\u5b9a&#xff0c;\u5982\u679c\u76f4\u63a5\u7528\u5927\u5b66\u4e60\u7387\u5f88\u5bb9\u6613\u8d70\u504f\u3002Warmup\u5c31\u662f\u524d\u51e0\u8f6e\u7528\u5f88\u5c0f\u7684\u5b66\u4e60\u7387\u6162\u6162\u9884\u70ed&#xff0c;\u8ba9\u68af\u5ea6\u5148\u7a33\u5b9a\u4e0b\u6765&#xff0c;\u518d\u5347\u5230\u521d\u59cb\u5b66\u4e60\u7387\u3002<\/p>\n<p>\u8c03\u6574\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u5927batch\u3001\u5927\u6570\u636e\u96c6&#xff1a;warmup\u8f6e\u6b21\u8bbe3-5\u8f6e\u3002<\/li>\n<li>\u5c0fbatch\u3001\u5c0f\u6570\u636e\u96c6&#xff1a;1-2\u8f6e\u5c31\u591f&#xff0c;\u592a\u957f\u53cd\u800c\u62d6\u6162\u6536\u655b\u3002<\/li>\n<li>\u5fae\u8c03\u573a\u666f&#xff1a;warmup\u53ef\u4ee5\u8bbe\u77ed\u4e00\u70b9&#xff0c;\u751a\u81f3\u5173\u6389&#xff0c;\u56e0\u4e3a\u6743\u91cd\u672c\u6765\u5c31\u5f88\u7a33\u5b9a\u3002<\/li>\n<\/ul>\n<h4>3.4 \u6536\u5c3e\u7cbe\u8c03&#xff1a;\u5173\u6389\u5f3a\u589e\u5f3a&#043;\u964d\u5b66\u4e60\u7387<\/h4>\n<p>\u8fd9\u662f\u4e00\u4e2a\u51e0\u4e4e\u96f6\u6210\u672c\u7684\u6da8\u70b9\u6280\u5de7&#xff0c;\u5f88\u591a\u4eba\u4e0d\u77e5\u9053&#xff0c;\u4f46\u5b9e\u6d4b\u975e\u5e38\u6709\u6548&#xff1a;<\/p>\n<ul>\n<li>\u7528close_mosaic&#061;10\u53c2\u6570&#xff0c;\u8ba9\u8bad\u7ec3\u7684\u6700\u540e10\u8f6e\u81ea\u52a8\u5173\u95edMosaic\u589e\u5f3a&#xff0c;\u7528\u5e72\u51c0\u7684\u6837\u672c\u6821\u51c6\u6a21\u578b\u7684\u51b3\u7b56\u8fb9\u754c\u3002<\/li>\n<li>\u5982\u679c\u8ffd\u6c42\u6781\u81f4\u7cbe\u5ea6&#xff0c;\u53ef\u4ee5\u5728\u8bad\u7ec3\u7ed3\u675f\u540e&#xff0c;\u52a0\u8f7d\u6700\u4f73\u6743\u91cd&#xff0c;\u7528\u539f\u67651\/10\u7684\u5b66\u4e60\u7387&#xff0c;\u5173\u6389\u6240\u6709\u5f3a\u589e\u5f3a&#xff0c;\u518d\u5fae\u8c035-10\u8f6e\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u5957\u64cd\u4f5c\u901a\u5e38\u80fd\u5e26\u67650.5-1.2\u4e2a\u70b9\u7684mAP\u63d0\u5347&#xff0c;\u5c24\u5176\u662f\u5c0f\u76ee\u6807\u573a\u666f\u6536\u76ca\u66f4\u660e\u663e\u3002<\/p>\n<h3>\u56db\u3001\u4f18\u5316\u5668\u9009\u62e9&#xff1a;\u6ca1\u6709\u6700\u597d&#xff0c;\u53ea\u6709\u6700\u5408\u9002<\/h3>\n<p>YOLO\u5185\u7f6e\u4e86SGD\u3001Adam\u3001AdamW\u4e09\u6b3e\u4e3b\u6d41\u4f18\u5316\u5668&#xff0c;\u4e0d\u662f\u8d8a\u65b0\u8d8a\u597d&#xff0c;\u4e0d\u540c\u573a\u666f\u5404\u6709\u4f18\u52bf\u3002<\/p>\n<h4>4.1 \u4e09\u6b3e\u4f18\u5316\u5668\u6a2a\u5411\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u4f18\u5316\u5668\u6536\u655b\u901f\u5ea6\u6700\u7ec8\u7cbe\u5ea6\u8c03\u53c2\u96be\u5ea6\u663e\u5b58\u5360\u7528\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>SGD<\/td>\n<td>\u6162<\/td>\n<td>\u6700\u9ad8<\/td>\n<td>\u9ad8<\/td>\n<td>\u4f4e<\/td>\n<td>\u5927\u6570\u636e\u96c6\u3001\u8ffd\u6c42\u6781\u81f4\u6cdb\u5316\u6027\u3001\u91cf\u4ea7\u843d\u5730<\/td>\n<\/tr>\n<tr>\n<td>Adam<\/td>\n<td>\u5feb<\/td>\n<td>\u4e2d\u7b49<\/td>\n<td>\u4f4e<\/td>\n<td>\u7a0d\u9ad8<\/td>\n<td>\u5c0f\u6570\u636e\u96c6\u3001\u5feb\u901f\u9a8c\u8bc1\u539f\u578b\u3001\u8fc1\u79fb\u5b66\u4e60<\/td>\n<\/tr>\n<tr>\n<td>AdamW<\/td>\n<td>\u5feb<\/td>\n<td>\u7565\u9ad8\u4e8eAdam<\/td>\n<td>\u4f4e<\/td>\n<td>\u7a0d\u9ad8<\/td>\n<td>\u5fae\u8c03\u573a\u666f\u3001\u5c0f\u5230\u4e2d\u7b49\u89c4\u6a21\u6570\u636e\u96c6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6838\u5fc3\u7ed3\u8bba&#xff1a;<\/p>\n<ul>\n<li>\u4ece\u96f6\u8bad\u7ec3\u3001\u6570\u636e\u96c6\u5927\u3001\u8ffd\u6c42\u6700\u7ec8\u7cbe\u5ea6&#xff1a;\u9009SGD&#xff0c;\u8fd9\u662f\u5de5\u4e1a\u843d\u5730\u7684\u9996\u9009\u3002<\/li>\n<li>\u5c0f\u6570\u636e\u96c6\u5fae\u8c03\u3001\u5feb\u901f\u8fed\u4ee3\u9a8c\u8bc1&#xff1a;\u9009AdamW&#xff0c;\u6536\u655b\u5feb&#xff0c;\u5bf9\u5b66\u4e60\u7387\u6ca1\u90a3\u4e48\u654f\u611f\u3002<\/li>\n<li>\u4e0d\u5efa\u8bae\u7528\u539f\u751fAdam&#xff0c;\u6743\u91cd\u8870\u51cf\u673a\u5236\u6709\u7f3a\u9677&#xff0c;AdamW\u662f\u66f4\u4f18\u7684\u66ff\u4ee3\u3002<\/li>\n<\/ul>\n<h4>4.2 \u914d\u5957\u8d85\u53c2\u6570\u8c03\u6574<\/h4>\n<ul>\n<li>\u52a8\u91cf&#xff08;momentum&#xff09;&#xff1a;SGD\u9ed8\u8ba40.937&#xff0c;\u662f\u7ecf\u8fc7\u5927\u91cf\u9a8c\u8bc1\u7684\u6700\u4f18\u503c&#xff0c;\u4e0d\u7528\u5927\u6539&#xff0c;\u6700\u591a\u57280.9-0.95\u4e4b\u95f4\u5fae\u8c03\u3002<\/li>\n<li>\u6743\u91cd\u8870\u51cf&#xff08;weight_decay&#xff09;&#xff1a;\u672c\u8d28\u662fL2\u6b63\u5219&#xff0c;\u7528\u6765\u9632\u6b62\u8fc7\u62df\u5408\u3002\n<ul>\n<li>\u5c0f\u6570\u636e\u96c6\u3001\u5927\u6a21\u578b&#xff1a;\u9002\u5f53\u8c03\u5927\u52300.001&#xff0c;\u589e\u5f3a\u6b63\u5219\u6548\u679c\u3002<\/li>\n<li>\u5927\u6570\u636e\u96c6\u3001\u5c0f\u6a21\u578b&#xff1a;\u4fdd\u6301\u9ed8\u8ba40.0005\u5373\u53ef\u3002<\/li>\n<li>\u4e0d\u8981\u8c03\u592a\u5927&#xff0c;\u4e0d\u7136\u4f1a\u76f4\u63a5\u5bfc\u81f4\u6b20\u62df\u5408&#xff0c;\u7cbe\u5ea6\u5927\u5e45\u4e0b\u964d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>4.3 \u5b9e\u6d4b\u6d88\u878d\u6570\u636e<\/h4>\n<p>\u6211\u4eec\u5728VisDrone\u822a\u62cd\u6570\u636e\u96c6\u4e0a\u505a\u4e86\u5bf9\u7167\u5b9e\u9a8c&#xff0c;\u6a21\u578b\u4e3aYOLOv11s&#xff0c;\u8f93\u5165640\u5c3a\u5bf8&#xff0c;\u8bad\u7ec3100\u8f6e&#xff0c;\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u4f18\u5316\u5668\u521d\u59cb\u5b66\u4e60\u7387\u6536\u655b\u8f6e\u6b21mAP&#064;0.5mAP&#064;0.5:0.95<\/tr>\n<tbody>\n<tr>\n<td>SGD<\/td>\n<td>0.01<\/td>\n<td>72<\/td>\n<td>38.5%<\/td>\n<td>22.1%<\/td>\n<\/tr>\n<tr>\n<td>SGD<\/td>\n<td>0.005<\/td>\n<td>85<\/td>\n<td>39.2%<\/td>\n<td>22.7%<\/td>\n<\/tr>\n<tr>\n<td>AdamW<\/td>\n<td>0.001<\/td>\n<td>48<\/td>\n<td>37.8%<\/td>\n<td>21.5%<\/td>\n<\/tr>\n<tr>\n<td>AdamW<\/td>\n<td>0.003<\/td>\n<td>41<\/td>\n<td>38.9%<\/td>\n<td>22.3%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ef\u4ee5\u770b\u5230&#xff1a;SGD\u867d\u7136\u6536\u655b\u6162&#xff0c;\u4f46\u6700\u7ec8\u7cbe\u5ea6\u66f4\u9ad8&#xff1b;AdamW\u6536\u655b\u901f\u5ea6\u5feb\u63a5\u8fd1\u4e00\u500d&#xff0c;\u6700\u7ec8\u7cbe\u5ea6\u7565\u4f4e\u4e00\u70b9&#xff0c;\u9002\u5408\u5feb\u901f\u8fed\u4ee3\u3002<\/p>\n<h3>\u4e94\u3001\u6570\u636e\u589e\u5f3a\u8c03\u53c2&#xff1a;\u6b63\u5219\u5316\u7684\u6838\u5fc3&#xff0c;\u6bd4\u6539\u7f51\u7edc\u7ba1\u7528<\/h3>\n<p>\u6570\u636e\u589e\u5f3a\u662f\u6027\u4ef7\u6bd4\u6700\u9ad8\u7684\u6b63\u5219\u5316\u624b\u6bb5&#xff0c;\u6bd4\u5728\u7f51\u7edc\u4e0a\u52a0\u6ce8\u610f\u529b\u3001\u6539\u7ed3\u6784\u7684\u6536\u76ca\u9ad8\u5f97\u591a\u3002\u4f46\u589e\u5f3a\u4e0d\u662f\u8d8a\u5f3a\u8d8a\u597d&#xff0c;\u5f3a\u5ea6\u8fc7\u5927\u4f1a\u5f15\u5165\u566a\u58f0\u6807\u7b7e&#xff0c;\u53cd\u800c\u8ba9\u7cbe\u5ea6\u4e0b\u964d\u3002<\/p>\n<h4>5.1 Mosaic&#xff1a;\u6536\u76ca\u6700\u5927\u4e5f\u6700\u5bb9\u6613\u8e29\u5751\u7684\u589e\u5f3a<\/h4>\n<p>Mosaic\u628a\u56db\u5f20\u56fe\u62fc\u5728\u4e00\u8d77&#xff0c;\u80fd\u6781\u5927\u4e30\u5bcc\u76ee\u6807\u7684\u5c3a\u5ea6\u548c\u80cc\u666f&#xff0c;\u5bf9\u5c0f\u76ee\u6807\u63d0\u5347\u975e\u5e38\u660e\u663e&#xff0c;\u4f46\u4e5f\u4f1a\u5e26\u6765\u622a\u65ad\u76ee\u6807\u3001\u5c3a\u5ea6\u5f02\u5e38\u7684\u566a\u58f0\u6837\u672c\u3002<\/p>\n<p>\u8c03\u53c2\u6307\u5357&#xff1a;<\/p>\n<ul>\n<li>\u6982\u7387mosaic&#xff1a;\u901a\u7528\u573a\u666f0.5-1.0&#xff1b;\u5c0f\u76ee\u6807\u573a\u666f0.3-0.5&#xff1b;\u5de5\u4e1a\u7f3a\u9677\u68c0\u6d4b\u5efa\u8bae0-0.3&#xff0c;\u7f3a\u9677\u672c\u8eab\u5c3a\u5ea6\u5f88\u5c0f&#xff0c;\u62fc\u63a5\u540e\u66f4\u5bb9\u6613\u4e22\u5931\u3002<\/li>\n<li>\u7f29\u653e\u8303\u56f4&#xff1a;\u9ed8\u8ba40.5-1.5&#xff0c;\u5c0f\u76ee\u6807\u573a\u666f\u5efa\u8bae\u6536\u7a84\u52300.8-1.2&#xff0c;\u907f\u514d\u76ee\u6807\u88ab\u7f29\u5f97\u592a\u5c0f\u3002<\/li>\n<li>\u5fc5\u505a\u64cd\u4f5c&#xff1a;\u6700\u540e10-15\u8f6e\u5173\u95edMosaic&#xff0c;\u4e5f\u5c31\u662fclose_mosaic\u53c2\u6570&#xff0c;\u7528\u5e72\u51c0\u6837\u672c\u505a\u6536\u5c3e\u7cbe\u8c03\u3002<\/li>\n<\/ul>\n<h4>5.2 MixUp&#xff1a;\u67d4\u5316\u51b3\u7b56\u8fb9\u754c&#xff0c;\u7f13\u89e3\u8fc7\u62df\u5408<\/h4>\n<p>MixUp\u628a\u4e24\u5f20\u56fe\u6309\u6bd4\u4f8b\u878d\u5408&#xff0c;\u6807\u7b7e\u4e5f\u5bf9\u5e94\u5408\u5e76&#xff0c;\u4f5c\u7528\u662f\u8ba9\u6a21\u578b\u7684\u51b3\u7b56\u8fb9\u754c\u66f4\u5e73\u6ed1&#xff0c;\u964d\u4f4e\u8fc7\u62df\u5408\u98ce\u9669&#xff0c;\u5bf9\u7c7b\u522b\u4e0d\u5747\u8861\u7684\u573a\u666f\u6709\u4e00\u5b9a\u7f13\u89e3\u4f5c\u7528\u3002<\/p>\n<p>\u8c03\u53c2\u6307\u5357&#xff1a;<\/p>\n<ul>\n<li>\u6982\u7387mixup&#xff1a;\u9ed8\u8ba40.15&#xff0c;\u5c0f\u6570\u636e\u96c6\u53ef\u4ee5\u8c03\u52300.2-0.3&#xff1b;\u9ad8\u7cbe\u5ea6\u8981\u6c42\u7684\u5de5\u4e1a\u573a\u666f\u5efa\u8bae\u8c03\u4f4e\u52300.1\u751a\u81f3\u5173\u95ed\u3002<\/li>\n<li>\u5f3a\u5ea6mixup_alpha&#xff1a;\u9ed8\u8ba432&#xff0c;\u503c\u8d8a\u5927\u878d\u5408\u7a0b\u5ea6\u8d8a\u5f31&#xff0c;\u503c\u8d8a\u5c0f\u878d\u5408\u8d8a\u5f3a\u3002\u4e0d\u8981\u8c03\u592a\u5c0f&#xff0c;\u4e0d\u7136\u6837\u672c\u4f1a\u53d8\u5f97\u975e\u5e38\u6a21\u7cca&#xff0c;\u6a21\u578b\u5b66\u4e0d\u5230\u6709\u6548\u7279\u5f81\u3002<\/li>\n<\/ul>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a;Mosaic\u548cMixUp\u540c\u65f6\u5f00\u5f88\u9ad8\u7684\u6982\u7387&#xff0c;\u4f1a\u5bfc\u81f4\u8bad\u7ec3\u540e\u671floss\u9707\u8361&#xff0c;\u7cbe\u5ea6\u4e0a\u4e0d\u53bb\u3002\u4e24\u8005\u5f3a\u5ea6\u8981\u6b64\u6d88\u5f7c\u957f&#xff0c;\u4e00\u4e2a\u5f00\u9ad8\u53e6\u4e00\u4e2a\u5c31\u8981\u8c03\u4f4e\u3002<\/p>\n<h4>5.3 HSV\u8272\u5f69\u589e\u5f3a&#xff1a;\u4f4e\u6210\u672c\u63d0\u5347\u5149\u7167\u9c81\u68d2\u6027<\/h4>\n<p>\u901a\u8fc7\u8c03\u6574\u56fe\u50cf\u7684\u8272\u8c03\u3001\u9971\u548c\u5ea6\u3001\u4eae\u5ea6&#xff0c;\u6a21\u62df\u4e0d\u540c\u5149\u7167\u6761\u4ef6&#xff0c;\u63d0\u5347\u6a21\u578b\u7684\u73af\u5883\u9002\u5e94\u80fd\u529b\u3002<\/p>\n<ul>\n<li>hgain&#xff1a;\u8272\u8c03\u589e\u76ca\u3002\u5982\u679c\u989c\u8272\u662f\u5173\u952e\u7279\u5f81&#xff08;\u6bd4\u5982\u7ea2\u8272\u7f3a\u9677\u3001\u7279\u5b9a\u989c\u8272\u5de5\u4ef6&#xff09;&#xff0c;\u4e00\u5b9a\u8981\u8c03\u5c0f\u52300.01\u751a\u81f30&#xff0c;\u907f\u514d\u7834\u574f\u989c\u8272\u7279\u5f81\u3002<\/li>\n<li>sgain&#xff1a;\u9971\u548c\u5ea6\u589e\u76ca\u3002\u5ba4\u5916\u3001\u5149\u7167\u53d8\u5316\u5927\u7684\u573a\u666f\u53ef\u4ee5\u8c03\u9ad8\u52300.8-1.0&#xff1b;\u5de5\u4e1a\u5ba4\u5185\u573a\u666f\u4fdd\u6301\u9ed8\u8ba40.7\u5373\u53ef\u3002<\/li>\n<li>vgain&#xff1a;\u4eae\u5ea6\u589e\u76ca\u3002\u5149\u7167\u6ce2\u52a8\u5927\u7684\u573a\u666f\u9002\u5f53\u8c03\u9ad8&#xff0c;\u5149\u7ebf\u7a33\u5b9a\u7684\u573a\u666f\u8c03\u4f4e\u3002<\/li>\n<\/ul>\n<h4>5.4 \u51e0\u4f55\u589e\u5f3a&#xff1a;\u7ffb\u8f6c\u3001\u65cb\u8f6c\u3001\u900f\u89c6<\/h4>\n<ul>\n<li>\u6c34\u5e73\u7ffb\u8f6c&#xff1a;\u7edd\u5927\u591a\u6570\u573a\u666f\u90fd\u53ef\u4ee5\u5f00&#xff0c;\u6982\u73870.5&#xff0c;\u51e0\u4e4e\u6ca1\u526f\u4f5c\u7528\u3002<\/li>\n<li>\u5782\u76f4\u7ffb\u8f6c&#xff1a;\u53ea\u6709\u822a\u62cd\u3001\u4fef\u89c6\u573a\u666f\u9002\u5408&#xff0c;\u884c\u4eba\u3001\u8f66\u8f86\u8fd9\u7c7b\u6709\u660e\u786e\u4e0a\u4e0b\u65b9\u5411\u7684\u573a\u666f\u7edd\u5bf9\u4e0d\u80fd\u5f00\u3002<\/li>\n<li>\u65cb\u8f6c\u4e0e\u900f\u89c6\u53d8\u6362&#xff1a;\u9ed8\u8ba4\u89d2\u5ea6\u5f88\u5c0f&#xff0c;\u5c5e\u4e8e\u5f31\u589e\u5f3a\u3002\u4e0d\u5efa\u8bae\u5f00\u592a\u5927\u89d2\u5ea6\u7684\u65cb\u8f6c&#xff0c;\u4e00\u65b9\u9762\u4f1a\u5bfc\u81f4\u76ee\u6807\u6846\u4e0d\u51c6&#xff0c;\u53e6\u4e00\u65b9\u9762\u5f88\u591a\u5de5\u4e1a\u573a\u666f\u76ee\u6807\u59ff\u6001\u662f\u56fa\u5b9a\u7684&#xff0c;\u6ca1\u5fc5\u8981\u52a0\u65cb\u8f6c\u589e\u5f3a\u3002<\/li>\n<\/ul>\n<p>\u589e\u5f3a\u5f3a\u5ea6\u603b\u539f\u5219&#xff1a; \u6570\u636e\u96c6\u8d8a\u5c0f\u3001\u8d8a\u5bb9\u6613\u8fc7\u62df\u5408&#xff0c;\u589e\u5f3a\u5c31\u53ef\u4ee5\u8d8a\u5f3a&#xff1b;\u6570\u636e\u96c6\u8d8a\u5927\u3001\u5206\u5e03\u8d8a\u5747\u5300&#xff0c;\u589e\u5f3a\u8d8a\u4fdd\u5b88\u3002<\/p>\n<h3>\u516d\u3001\u5e38\u89c1\u8c03\u53c2\u8bef\u533a\u4e0e\u907f\u5751\u6307\u5357<\/h3>\n<h4>6.1 \u4e09\u4e2a\u6700\u5bb9\u6613\u72af\u7684\u9519\u8bef<\/h4>\n<li>\u7167\u642c\u522b\u4eba\u7684\u53c2\u6570&#xff1a;\u4e0d\u540c\u6570\u636e\u96c6\u3001\u4e0d\u540c\u6a21\u578b\u3001\u4e0d\u540c\u4efb\u52a1&#xff0c;\u53c2\u6570\u5b8c\u5168\u4e0d\u901a\u7528\u3002\u522b\u4eba\u7684\u6700\u4f18\u503c\u5bf9\u4f60\u53ef\u80fd\u5c31\u662f\u6700\u5dee\u503c&#xff0c;\u53ea\u80fd\u53c2\u8003\u8303\u56f4&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u6284\u3002<\/li>\n<li>\u53ea\u770b\u6574\u4f53mAP&#xff0c;\u4e0d\u770b\u5206\u9879\u6307\u6807&#xff1a;\u5206\u7c7b\u7cbe\u5ea6\u548c\u5b9a\u4f4d\u7cbe\u5ea6\u8981\u5206\u5f00\u770b&#xff0c;\u5c0f\u76ee\u6807\u548c\u5927\u76ee\u6807\u4e5f\u8981\u5206\u5f00\u770b\u3002\u53ea\u8c03\u6574\u4f53mAP&#xff0c;\u5f88\u53ef\u80fd\u51fa\u73b0\u5927\u76ee\u6807\u7cbe\u5ea6\u6da8\u4e86&#xff0c;\u5c0f\u76ee\u6807\u53cd\u800c\u6389\u4e86\u7684\u60c5\u51b5\u3002<\/li>\n<li>\u8fc7\u5ea6\u62df\u5408\u9a8c\u8bc1\u96c6&#xff1a;\u53cd\u590d\u5bf9\u7740\u9a8c\u8bc1\u96c6\u8c03\u53c2&#xff0c;\u6700\u540e\u9a8c\u8bc1\u96c6\u7cbe\u5ea6\u5f88\u9ad8&#xff0c;\u4e0a\u7ebf\u4e00\u6d4b\u6548\u679c\u5f88\u5dee\u3002\u8c03\u53c2\u5230\u540e\u671f\u4e00\u5b9a\u8981\u7528\u5b8c\u5168\u6ca1\u89c1\u8fc7\u7684\u6d4b\u8bd5\u96c6\u505a\u6700\u7ec8\u9a8c\u8bc1\u3002<\/li>\n<h4>6.2 \u770bLoss\u66f2\u7ebf\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898<\/h4>\n<p>\u4e0d\u7528\u7b49\u8bad\u7ec3\u5b8c&#xff0c;\u770b\u524d10\u8f6e\u7684Loss\u66f2\u7ebf\u5c31\u80fd\u5224\u65ad\u5927\u90e8\u5206\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>\u8bad\u7ec3Loss\u6301\u7eed\u4e0b\u964d&#xff0c;\u9a8c\u8bc1Loss\u5148\u964d\u540e\u5347&#xff1a;\u5178\u578b\u8fc7\u62df\u5408&#xff0c;\u52a0\u589e\u5f3a\u3001\u52a0\u6743\u91cd\u8870\u51cf\u3001\u63d0\u524d\u505c\u6b62\u3002<\/li>\n<li>\u8bad\u7ec3\u548c\u9a8c\u8bc1Loss\u90fd\u5267\u70c8\u9707\u8361&#xff1a;\u5b66\u4e60\u7387\u592a\u5927&#xff0c;\u6216\u8005batch\u592a\u5c0f&#xff0c;\u68af\u5ea6\u4e0d\u7a33\u5b9a\u3002<\/li>\n<li>\u8bad\u7ec3\u548c\u9a8c\u8bc1Loss\u90fd\u51e0\u4e4e\u4e0d\u52a8&#xff1a;\u5b66\u4e60\u7387\u592a\u5c0f&#xff0c;\u6216\u8005\u51bb\u7ed3\u5c42\u592a\u591a&#xff0c;\u68af\u5ea6\u4f20\u4e0d\u4e0b\u53bb\u3002<\/li>\n<li>\u8bad\u7ec3Loss\u6b63\u5e38&#xff0c;\u9a8c\u8bc1Loss\u5f02\u5e38\u9ad8&#xff1a;\u9a8c\u8bc1\u96c6\u6807\u6ce8\u8d28\u91cf\u5dee&#xff0c;\u6216\u8005\u8bad\u7ec3\u96c6\u548c\u9a8c\u8bc1\u96c6\u5206\u5e03\u5dee\u5f02\u592a\u5927\u3002<\/li>\n<\/ul>\n<h3>\u4e03\u3001\u4e0d\u540c\u573a\u666f\u8c03\u53c2\u53c2\u8003\u6a21\u677f<\/h3>\n<p>\u6574\u7406\u4e86\u4e09\u4e2a\u6700\u5e38\u7528\u573a\u666f\u7684\u914d\u7f6e&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u62ff\u6765\u5f53\u8d77\u70b9&#xff0c;\u518d\u6839\u636e\u81ea\u5df1\u7684\u6570\u636e\u96c6\u5fae\u8c03\u3002<\/p>\n<h4>7.1 \u901a\u7528\u76ee\u6807\u68c0\u6d4b&#xff08;\u4e07\u7ea7\u6837\u672c&#xff0c;\u5206\u5e03\u5747\u8861&#xff09;<\/h4>\n<p>model<span class=\"token punctuation\">.<\/span>train<span class=\"token punctuation\">(<\/span><br \/>\n    data<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;dataset.yaml&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    imgsz<span class=\"token operator\">&#061;<\/span><span class=\"token number\">640<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    batch<span class=\"token operator\">&#061;<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    optimizer<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;SGD&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    lr0<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.01<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    cos_lr<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    warmup_epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    mosaic<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.0<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    mixup<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.15<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    close_mosaic<span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    patience<span class=\"token operator\">&#061;<\/span><span class=\"token number\">20<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    weight_decay<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.0005<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    device<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<h4>7.2 \u5c0f\u76ee\u6807\/\u822a\u62cd\u573a\u666f<\/h4>\n<p>model<span class=\"token punctuation\">.<\/span>train<span class=\"token punctuation\">(<\/span><br \/>\n    data<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;dataset.yaml&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">120<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    imgsz<span class=\"token operator\">&#061;<\/span><span class=\"token number\">800<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    batch<span class=\"token operator\">&#061;<\/span><span class=\"token number\">8<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    optimizer<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;SGD&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    lr0<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.008<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    cos_lr<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    warmup_epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    mosaic<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.5<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    mixup<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    close_mosaic<span class=\"token operator\">&#061;<\/span><span class=\"token number\">15<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    patience<span class=\"token operator\">&#061;<\/span><span class=\"token number\">25<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    weight_decay<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.0005<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    device<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<h4>7.3 \u5c0f\u6570\u636e\u96c6\u5fae\u8c03&#xff08;\u51e0\u767e\u5f20\u6837\u672c&#xff09;<\/h4>\n<p>model<span class=\"token punctuation\">.<\/span>train<span class=\"token punctuation\">(<\/span><br \/>\n    data<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;dataset.yaml&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">80<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    imgsz<span class=\"token operator\">&#061;<\/span><span class=\"token number\">640<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    batch<span class=\"token operator\">&#061;<\/span><span class=\"token number\">8<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    optimizer<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;AdamW&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    lr0<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.001<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    cos_lr<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    warmup_epochs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    freeze<span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    mosaic<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.3<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    mixup<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.2<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    close_mosaic<span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    patience<span class=\"token operator\">&#061;<\/span><span class=\"token number\">15<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    weight_decay<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.001<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    label_smoothing<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    device<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<h3>\u6700\u540e&#xff1a;\u8c03\u53c2\u7684\u672c\u8d28\u662f\u6743\u8861<\/h3>\n<p>\u8c03\u53c2\u4ece\u6765\u4e0d\u662f\u8ffd\u6c42\u201c\u6700\u4f18\u89e3\u201d&#xff0c;\u800c\u662f\u5728\u7cbe\u5ea6\u3001\u901f\u5ea6\u3001\u7a33\u5b9a\u6027\u4e4b\u95f4\u627e\u6700\u9002\u5408\u4e1a\u52a1\u7684\u5e73\u8861\u70b9\u3002\u4e0d\u8981\u9677\u5165\u8c03\u53c2\u5185\u5377&#xff0c;\u4e3a\u4e860.\u51e0\u4e2a\u70b9\u7684mAP\u53cd\u590d\u6298\u817e&#xff0c;\u8fbe\u5230\u4e1a\u52a1\u6307\u6807\u5c31\u8db3\u591f\u4e86\u3002<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u6700\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u70b9&#xff1a;\u6570\u636e\u8d28\u91cf\u662f\u7cbe\u5ea6\u7684\u4e0a\u9650&#xff0c;\u8c03\u53c2\u53ea\u662f\u628a\u8fd9\u4e2a\u4e0a\u9650\u53d1\u6325\u51fa\u6765\u3002\u5982\u679c\u6807\u6ce8\u8d28\u91cf\u5dee\u3001\u6837\u672c\u5206\u5e03\u6b6a&#xff0c;\u518d\u600e\u4e48\u8c03\u53c2\u4e5f\u6ca1\u7528\u3002\u6bd4\u8d77\u82b1\u4e00\u5468\u8c03\u53c2\u6570&#xff0c;\u82b1\u4e24\u5929\u6e05\u6d17\u6570\u636e\u3001\u4fee\u6b63\u6807\u6ce8&#xff0c;\u6536\u76ca\u5f80\u5f80\u5927\u5f97\u591a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505a\u8fc7\u5341\u51e0\u4e2aYOLO\u843d\u5730\u9879\u76ee&#xff0c;\u89c1\u8fc7\u6700\u591a\u7684\u95ee\u9898\u4ece\u6765\u4e0d\u662f\u7f51\u7edc\u6539\u5f97\u4e0d\u597d&#xff0c;\u800c\u662f\u8c03\u53c2\u8c03\u6b6a\u4e86\u3002\u540c\u6837\u7684\u6570\u636e\u96c6\u3001\u540c\u6837\u7684\u6a21\u578b&#xff0c;\u4e0d\u540c\u7684\u4eba\u8c03\u51fa\u6765\u7684mAP\u80fd\u5dee4-5\u4e2a\u70b9&#xff0c;\u5dee\u8ddd\u5168\u5728\u7ec6\u8282\u91cc\u3002\u5f88\u591a\u65b0\u624b\u8c03\u53c2\u5168\u9760\u7384\u5b66&#xff1a;\u770b\u522b\u4eba\u8bf4\u5b66\u4e60\u73870.01\u597d\u5c31\u76f4\u63a5\u6284&#xff0c;\u8bf4Adam\u6536\u655b\u5feb\u5c31\u8ddf\u7740\u6362&#xff0c;\u7ed3\u679c\u8d8a\u8bad\u8d8a\u5dee&#xff0c;\u8fde\u539f\u56e0\u90fd\u627e\u4e0d\u5230\u3002<br \/>\n\u8c03\u53c2\u4ece\u6765\u4e0d\u662f\u778e\u8bd5\u53c2\u6570&#xff0c;\u800c\u662f\u4e00\u5957\u6709\u903b\u8f91\u3001\u6709\u4f18\u5148\u7ea7\u7684\u5de5\u7a0b\u65b9\u6cd5\u300280%\u7684\u7cbe\u5ea6\u63d0\u5347\u6765\u81ea2<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[156,50,371,190,86],"topic":[],"class_list":["post-91062","post","type-post","status-publish","format-standard","hentry","category-server","tag-yolo","tag-50","tag-371","tag-190","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/91062.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u505a\u8fc7\u5341\u51e0\u4e2aYOLO\u843d\u5730\u9879\u76ee&#xff0c;\u89c1\u8fc7\u6700\u591a\u7684\u95ee\u9898\u4ece\u6765\u4e0d\u662f\u7f51\u7edc\u6539\u5f97\u4e0d\u597d&#xff0c;\u800c\u662f\u8c03\u53c2\u8c03\u6b6a\u4e86\u3002\u540c\u6837\u7684\u6570\u636e\u96c6\u3001\u540c\u6837\u7684\u6a21\u578b&#xff0c;\u4e0d\u540c\u7684\u4eba\u8c03\u51fa\u6765\u7684mAP\u80fd\u5dee4-5\u4e2a\u70b9&#xff0c;\u5dee\u8ddd\u5168\u5728\u7ec6\u8282\u91cc\u3002\u5f88\u591a\u65b0\u624b\u8c03\u53c2\u5168\u9760\u7384\u5b66&#xff1a;\u770b\u522b\u4eba\u8bf4\u5b66\u4e60\u73870.01\u597d\u5c31\u76f4\u63a5\u6284&#xff0c;\u8bf4Adam\u6536\u655b\u5feb\u5c31\u8ddf\u7740\u6362&#xff0c;\u7ed3\u679c\u8d8a\u8bad\u8d8a\u5dee&#xff0c;\u8fde\u539f\u56e0\u90fd\u627e\u4e0d\u5230\u3002 \u8c03\u53c2\u4ece\u6765\u4e0d\u662f\u778e\u8bd5\u53c2\u6570&#xff0c;\u800c\u662f\u4e00\u5957\u6709\u903b\u8f91\u3001\u6709\u4f18\u5148\u7ea7\u7684\u5de5\u7a0b\u65b9\u6cd5\u300280%\u7684\u7cbe\u5ea6\u63d0\u5347\u6765\u81ea2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/91062.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-06T11:17:30+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91062.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/91062.html\",\"name\":\"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-06T11:17:30+00:00\",\"dateModified\":\"2026-08-06T11:17:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/91062.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/91062.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91062.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/91062.html","og_locale":"zh_CN","og_type":"article","og_title":"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u505a\u8fc7\u5341\u51e0\u4e2aYOLO\u843d\u5730\u9879\u76ee&#xff0c;\u89c1\u8fc7\u6700\u591a\u7684\u95ee\u9898\u4ece\u6765\u4e0d\u662f\u7f51\u7edc\u6539\u5f97\u4e0d\u597d&#xff0c;\u800c\u662f\u8c03\u53c2\u8c03\u6b6a\u4e86\u3002\u540c\u6837\u7684\u6570\u636e\u96c6\u3001\u540c\u6837\u7684\u6a21\u578b&#xff0c;\u4e0d\u540c\u7684\u4eba\u8c03\u51fa\u6765\u7684mAP\u80fd\u5dee4-5\u4e2a\u70b9&#xff0c;\u5dee\u8ddd\u5168\u5728\u7ec6\u8282\u91cc\u3002\u5f88\u591a\u65b0\u624b\u8c03\u53c2\u5168\u9760\u7384\u5b66&#xff1a;\u770b\u522b\u4eba\u8bf4\u5b66\u4e60\u73870.01\u597d\u5c31\u76f4\u63a5\u6284&#xff0c;\u8bf4Adam\u6536\u655b\u5feb\u5c31\u8ddf\u7740\u6362&#xff0c;\u7ed3\u679c\u8d8a\u8bad\u8d8a\u5dee&#xff0c;\u8fde\u539f\u56e0\u90fd\u627e\u4e0d\u5230\u3002 \u8c03\u53c2\u4ece\u6765\u4e0d\u662f\u778e\u8bd5\u53c2\u6570&#xff0c;\u800c\u662f\u4e00\u5957\u6709\u903b\u8f91\u3001\u6709\u4f18\u5148\u7ea7\u7684\u5de5\u7a0b\u65b9\u6cd5\u300280%\u7684\u7cbe\u5ea6\u63d0\u5347\u6765\u81ea2","og_url":"https:\/\/www.wsisp.com\/helps\/91062.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-06T11:17:30+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/91062.html","url":"https:\/\/www.wsisp.com\/helps\/91062.html","name":"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-06T11:17:30+00:00","dateModified":"2026-08-06T11:17:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/91062.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/91062.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/91062.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"YOLO\u5168\u6808\u8c03\u53c2\u79d8\u7c4d\uff1a\u8bad\u7ec3\u53c2\u6570\u3001\u5b66\u4e60\u7387\u7b56\u7565\u3001\u4f18\u5316\u5668\u9009\u62e9\u4e0e\u6548\u679c\u5bf9\u6bd4"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=91062"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91062\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=91062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=91062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=91062"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=91062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}