{"id":24386,"date":"2025-04-19T10:02:26","date_gmt":"2025-04-19T02:02:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24386.html"},"modified":"2025-04-19T10:02:26","modified_gmt":"2025-04-19T02:02:26","slug":"%e3%80%90%e9%a1%b9%e7%9b%ae%e5%ae%9e%e8%ae%ad2%e3%80%91%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e4%bd%bf%e7%94%a8-yolov8-%e6%a8%a1%e5%9e%8b%e6%a3%80%e6%b5%8b%ef%bc%9a%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24386.html","title":{"rendered":"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09"},"content":{"rendered":"<h2 id=\"%E5%89%8D%E8%A8%80\">\u524d\u8a00<\/h2>\n<p>\u6587\u7ae0\u6027\u8d28&#xff1a;\u5b9e\u64cd\u7b14\u8bb0 &#x1f4d6;<\/p>\n<p>\u4ee3\u7801\u6765\u6e90&#xff1a;GitHub &#8211; ultralytics\/ultralytics: NEW &#8211; YOLOv8 &#x1f680; in PyTorch &gt; ONNX &gt; OpenVINO &gt; CoreML &gt; TFLite<\/p>\n<p>\u4e3b\u8981\u5185\u5bb9&#xff1a;\u672c\u6587\u8be6\u7ec6\u8bb0\u5f55\u4e86\u5982\u4f55\u501f\u52a9 Tabby \u56fe\u5f62\u754c\u9762\u5de5\u5177\u5728 AutoDL \u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u914d\u7f6e YOLOv8 \u6240\u9700\u7684\u9879\u76ee\u73af\u5883&#xff0c;\u5e76\u4e14\u6210\u529f\u8fd0\u884c YOLOv8 \u6a21\u578b\u8fdb\u884c\u8bad\u7ec3\u548c\u6d4b\u8bd5&#xff0c;\u8fdb\u800c\u5b9e\u73b0\u5bf9\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u7684\u76ee\u6807\u68c0\u6d4b\u5904\u7406\u3002<\/p>\n<p>\u51b7\u77e5\u8bc6&#043;1&#xff1a;\u5c0f\u4f19\u4f34\u4eec\u4e0d\u7ecf\u610f\u7684\u00a0\u70b9\u8d5e\u00a0&#x1f44d;&#x1f3fb; \u4e0e\u00a0\u6536\u85cf\u00a0\u2728 \u53ef\u4ee5\u8ba9\u4f5c\u8005\u66f4\u6709\u521b\u4f5c\u52a8\u529b&#xff01;\u00a0<\/p>\n<\/p>\n<h2>Prepare<\/h2>\n<p>\u5728\u8fd0\u884c YOLOv8 \u4ee3\u7801\u524d&#xff0c;\u6211\u4eec\u8981\u5148\u5728 AutoDL \u5e73\u53f0\u79df\u7528\u5408\u9002\u7684\u8fdc\u7a0b\u670d\u52a1\u5668&#xff0c;\u5e76\u501f\u52a9 Tabby \u56fe\u5f62\u5316\u754c\u9762\u4e0a\u4f20\u4ee3\u7801\u548c\u914d\u7f6e\u73af\u5883\u3002<\/p>\n<ul>\n<li>AutoDL \u5b98\u7f51&#xff1a;AutoDL \u7b97\u529b\u4e91 | \u5f39\u6027\u3001\u597d\u7528\u3001\u7701\u94b1\u3002<\/li>\n<li>Tabby \u5de5\u5177&#xff1a;Tabby &#8211; a terminal for a more modern age<\/li>\n<\/ul>\n<p>\u501f\u52a9 Tabby \u56fe\u5f62\u754c\u9762\u5728 Autodl \u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a&#xff0c;\u6839\u636e Github \u5b98\u7f51\u4e2d\u63d0\u4f9b\u7684 YOLOv8\u00a0\u6d41\u7a0b\u8fdb\u884c\u914d\u7f6e&#xff1a;<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020212-6803042459be2.png\" \/><\/p>\n<p>\u4ee3\u7801\u94fe\u63a5&#xff1a;GitHub &#8211; ultralytics\/ultralytics: NEW &#8211; YOLOv8 &#x1f680; in PyTorch &gt; ONNX &gt; OpenVINO &gt; CoreML &gt; TFLite<\/p>\n<\/p>\n<h3>1\u3001AutoDL \u79df\u7528\u8fdc\u7a0b\u670d\u52a1\u5668<\/h3>\n<p>\u5728 AutoDL \u5b98\u7f51\u7684\u3010\u7b97\u529b\u5e02\u573a\u3011\u6309\u7167\u81ea\u8eab\u9700\u6c42\u79df\u7528\u5408\u9002\u7684 GPU &#xff1a;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020212-68030424eb10d.png\" \/><\/p>\n<p>\u3010\u8bf4\u660e\u3011\u7531\u4e8e Github \u9879\u76ee\u4e2d\u63d0\u5230 ultralytics \u7684\u5b89\u88c5\u73af\u5883\u9700\u8981<span style=\"color:#be191c\"><span style=\"background-color:#fef2f0\"> Python &gt;&#061; 3.8 <\/span><\/span>\u4e14<span style=\"color:#be191c\"><span style=\"background-color:#fef2f0\"> PyTorch &gt;&#061; 1.8 <\/span><\/span>&#xff0c;\u6545\u6309\u56fe\u8bbe\u7f6e\u955c\u50cf\u3002<\/p>\n<\/p>\n<h3>2\u3001Tabby \u8bbe\u7f6e SSH \u63a5\u53e3<\/h3>\n<h4>&#xff08;1&#xff09;\u83b7\u53d6 SSH \u767b\u5f55<\/h4>\n<p>\u5728 Tabby \u8bbe\u7f6e SSH \u63a5\u53e3\u524d&#xff0c;\u9700\u8981\u786e\u4fdd\u79df\u7528\u7684 GPU \u5904\u4e8e\u8fd0\u884c\u72b6\u6001&#xff0c;\u8fd8\u8981\u83b7\u53d6 SSH \u767b\u5f55\u6240\u9700\u7684\u6307\u4ee4\u4e0e\u5bc6\u7801\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020213-68030425883c0.png\" \/><\/p>\n<\/p>\n<h4>&#xff08;2&#xff09;\u914d\u7f6e SSH \u8fde\u63a5<\/h4>\n<p>\u6253\u5f00 Tabby \u5de5\u5177\u7684\u8bbe\u7f6e\u680f&#xff0c;\u5728 Profiles &amp; connections \u4e2d\u53ef\u4ee5\u65b0\u5efa SSH Connection\u00a0&#xff1a;\u00a0<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020214-6803042626fca.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020214-68030426c51e7.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020215-68030427718f4.png\" \/><\/p>\n<\/p>\n<h4>&#xff08;3&#xff09;\u8fd0\u884c SSH \u8fde\u63a5<\/h4>\n<p>\u914d\u7f6e SSH \u63a5\u53e3\u7684 Host \u3001Port \u3001Username \u3001Password \u548c\u63a5\u53e3\u540d\u79f0\u540e&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u70b9\u51fb\u8fd0\u884c\u00a0<span style=\"background-color:#cccccc\"> \u25b6\u00a0<\/span>\u00a0\u6309\u94ae\u5566&#xff01;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020216-6803042825605.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020216-68030428c7f14.png\" \/><\/p>\n<\/p>\n<h3>3\u3001Tabby \u4e0a\u4f20\u9879\u76ee\u4ee3\u7801<\/h3>\n<p>\u5c06 Github \u63d0\u4f9b\u7684 YOLOv8 \u76f8\u5173\u4ee3\u7801\u4e0a\u4f20\u81f3 Tabby \u7684 \/root\/autodl-tmp \u76ee\u5f55&#xff0c;\u5e76\u501f\u52a9<span style=\"color:#be191c\"><span style=\"background-color:#fef2f0\"> unzip <\/span><\/span>\u547d\u4ee4\u8fdb\u884c\u89e3\u538b\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020217-6803042975b43.png\" \/><\/p>\n<\/p>\n<h3>4\u3001Tabby \u914d\u7f6e\u9879\u76ee\u73af\u5883<\/h3>\n<p>\u8fdb\u5165\u8fdc\u7a0b\u670d\u52a1\u5668\u7ec8\u7aef\u547d\u4ee4\u7a97\u53e3\u540e&#xff0c;\u6211\u4eec\u9700\u8981\u5148\u66f4\u65b0<span style=\"color:#be191c\"><span style=\"background-color:#fef2f0\"> bashrc <\/span><\/span>\u4e2d\u7684\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;conda init bash &amp;&amp; source \/root\/.bashrc<\/p>\n<p>conda init bash &amp;&amp; source \/root\/.bashrc <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020218-6803042a3114b.png\" \/><\/p>\n<p>\u3010\u8bf4\u660e\u3011\u7531\u56fe\u53ef\u77e5&#xff0c;\u6211\u4eec\u5df2\u7ecf\u9ed8\u8ba4\u8fdb\u5165\u4e86 base \u73af\u5883&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5728 base \u73af\u5883\u4e2d\u5b89\u88c5\u4f9d\u8d56&#xff0c;\u4e5f\u53ef\u4ee5\u65b0\u5efa\u865a\u62df\u73af\u5883\u6765\u5b89\u88c5\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<h4>&#xff08;1&#xff09;\u65b0\u5efa conda \u73af\u5883<\/h4>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;conda create -n dehaze python&#061;3.8<\/p>\n<p>conda create -n dehaze python&#061;3.8 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020218-6803042ad3512.png\" \/><\/p>\n<\/p>\n<h4>&#xff08;2&#xff09;\u6fc0\u6d3b conda \u73af\u5883<\/h4>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;conda activate dehaze<\/p>\n<p>conda activate dehaze <\/p>\n<h4>&#xff08;3&#xff09;\u914d\u7f6e conda \u73af\u5883 \u2460<\/h4>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;conda install pytorch&#061;1.10.2 torchvision torchaudio cudatoolkit&#061;11.3 -c pytorch<\/p>\n<p>conda install pytorch&#061;1.10.2 torchvision torchaudio cudatoolkit&#061;11.3 -c pytorch <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020219-6803042b82dcd.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020220-6803042c316f2.png\" \/><\/p>\n<\/p>\n<h4>&#xff08;4&#xff09;\u914d\u7f6e conda \u73af\u5883 \u2461<\/h4>\n<p>\u5b98\u65b9\u63d0\u4f9b\u4e86\u4e24\u79cd\u5f62\u5f0f\u7684\u5b89\u88c5\u65b9\u6cd5&#xff0c;\u7531\u4e8e\u6211\u4eec\u540e\u9762\u9700\u8981\u5bf9 YOLOv8 \u8fdb\u884c\u6539\u8fdb&#xff0c;\u6240\u4ee5\u91c7\u7528\u7b2c\u4e8c\u79cd\u5b89\u88c5\u65b9\u6cd5\u3002<\/p>\n<p>\u5b89\u88c5\u65b9\u6cd5\u4e00&#xff1a;\u82e5\u53ea\u5bf9 YOLOv8 \u8fdb\u884c\u8c03\u7528&#xff0c;\u5219\u63a8\u8350\u4f7f\u7528\u8fd9\u79cd\u5b89\u88c5\u65b9\u6cd5\u3002<\/p>\n<p>pip install ultralytics <\/p>\n<p>\u5b89\u88c5\u65b9\u6cd5\u4e8c&#xff1a;\u82e5\u8981\u5bf9 YOLOv8 \u8fdb\u884c\u5f00\u53d1&#xff0c;\u5219\u63a8\u8350\u4f7f\u7528\u8fd9\u79cd\u5b89\u88c5\u65b9\u6cd5\u3002<\/p>\n<p>git clone https:\/\/github.com\/ultralytics\/ultralytics<br \/>\ncd ultralytics<br \/>\npip install -e . <\/p>\n<p>\u3010\u8bf4\u660e\u3011\u4e5f\u53ef\u4ee5\u4e0d\u4f7f\u7528 git clone \u547d\u4ee4&#xff0c;\u81ea\u5df1\u624b\u52a8\u4ece Github \u5b98\u7f51\u4e0b\u8f7d\u76f8\u5173\u4ee3\u7801&#xff0c;\u518d\u4e0a\u4f20\u81f3\u8fdc\u7a0b\u670d\u52a1\u5668&#xff0c;\u5982\u524d\u6587\u6240\u8ff0\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020220-6803042cf3f59.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020221-6803042da6fc4.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020222-6803042e5dd37.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020223-6803042f159c8.png\" \/><\/p>\n<\/p>\n<h2>Documentation<\/h2>\n<p>\u5728 Github \u63d0\u4f9b\u7684\u9879\u76ee\u4e2d&#xff0c;ultralytics \u5b98\u65b9\u63d0\u4f9b\u4e86 YOLOv8 Docs \u6587\u6863\u6765\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u4f7f\u7528\u8be5\u6a21\u578b\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020223-6803042fc305f.png\" \/><\/p>\n<p>\u3010\u8865\u5145\u3011\u5728\u7ebf\u4e0a\u67e5\u8be2\u00a0YOLOv8 \u64cd\u4f5c\u6307\u5bfc\u7684\u8fc7\u7a0b\u4e2d&#xff0c;\u6211\u53d1\u73b0\u8fd9\u4e2a\u6587\u6863\u7684\u6307\u5bfc\u66f4\u52a0\u5bb9\u6613\u4e0a\u624b&#xff0c;\u7279\u5c06\u94fe\u63a5\u8d34\u5728\u6b64\u5904&#xff1a;<\/p>\n<p><span class=\"link-card-box\"><span class=\"link-title\">\u3010YOLO\u3011YOLOv8\u8bad\u7ec3\u81ea\u5b9a\u4e49\u6570\u636e\u96c6&#xff08;4\u79cd\u65b9\u5f0f&#xff09;_yolov8\u8bad\u7ec3\u81ea\u5df1\u7684\u6570\u636e\u96c6-CSDN\u535a\u5ba2\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb5.5w\u6b21&#xff0c;\u70b9\u8d5e113\u6b21&#xff0c;\u6536\u85cf702\u6b21\u3002\u4f7f\u7528YOLOv8\u8bad\u7ec3\u81ea\u5b9a\u4e49\u6570\u636e\u96c6_yolov8\u8bad\u7ec3\u81ea\u5df1\u7684\u6570\u636e\u96c6https:\/\/blog.csdn.net\/weixin_42166222\/article\/details\/129391260<\/span><span class=\"link-link\"><img decoding=\"async\" class=\"link-link-icon\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020224-680304307d920.png\" \/>https:\/\/blog.csdn.net\/weixin_42166222\/article\/details\/129391260<\/span><\/span><\/p>\n<\/p>\n<h2>Download<\/h2>\n<p>\u6211\u4eec\u53ef\u4ee5\u5728 Github \u63d0\u4f9b\u7684\u9879\u76ee\u4e2d\u4e0b\u8f7d\u5728 COCO \u7b49\u6570\u636e\u96c6\u4e0a\u8bad\u7ec3\u597d\u7684\u6743\u91cd\u6587\u4ef6&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020224-68030430943a1.png\" \/><\/p>\n<\/p>\n<h2>Quickstart<\/h2>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;yolo predict model&#061;yolov8n.pt source&#061;ultralytics\/assets device&#061;cpu<\/p>\n<p>yolo predict model&#061;yolov8n.pt source&#061;ultralytics\/assets device&#061;cpu <\/p>\n<p>\u3010\u8bf4\u660e\u3011\u5728\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4 quickstart \u524d&#xff0c;\u6211\u4eec\u9700\u8981\u63d0\u524d\u4e0b\u8f7d\u5b98\u65b9\u9884\u8bad\u7ec3\u597d\u7684 yolov8n.pt \u6743\u91cd\u6587\u4ef6\u5e76\u5c06\u5176\u4e0a\u4f20\u81f3\u5bf9\u5e94\u76ee\u5f55\u4e2d\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-19wcppyudrdnx.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-19d4yknhkhe3u.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-191sqoumwbwey.png\" \/><\/p>\n<\/p>\n<h2>\u81ea\u5b9a\u4e49\u6570\u636e\u96c6 &#x1f388;\u00a0<\/h2>\n<p>\u5728\u51c6\u5907\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u65f6&#xff0c;\u9700\u8981\u5728\u9879\u76ee\u7684\u540c\u7ea7\u76ee\u5f55\u4e0b\u521b\u5efa 202406-data \u6587\u4ef6\u5939&#xff0c;\u5bf9\u6570\u636e\u96c6\u8fdb\u884c\u5212\u5206\u540e\u7684\u6587\u4ef6\u5939\u6574\u4f53\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b&#xff1a;<\/p>\n<p>202406-data<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211;\u00a0train<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; images&#xff08;\u8bad\u7ec3\u6570\u636e\u96c6\u9700\u8981\u7684\u56fe\u7247&#xff09;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; labels&#xff08;\u8bad\u7ec3\u6570\u636e\u96c6\u9700\u8981\u7684\u6807\u6ce8\u6587\u4ef6&#xff09;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; labels.cache&#xff08;\u7528\u4e8e\u4fdd\u5b58\u8bad\u7ec3\u6570\u636e\u96c6\u4e2d\u7684\u7c7b\u522b\u6807\u7b7e&#xff09;<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211; val<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; images&#xff08;\u9a8c\u8bc1\u6570\u636e\u96c6\u9700\u8981\u7684\u56fe\u7247&#xff09;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; labels&#xff08;\u9a8c\u8bc1\u6570\u636e\u96c6\u9700\u8981\u7684\u6807\u6ce8\u6587\u4ef6&#xff09;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; labels.cache&#xff08;\u7528\u4e8e\u4fdd\u5b58\u9a8c\u8bc1\u6570\u636e\u96c6\u4e2d\u7684\u7c7b\u522b\u6807\u7b7e&#xff09;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-19mktee3zt4xx.png\" \/><\/p>\n<\/p>\n<h2>Training \u2728<\/h2>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;yolo task&#061;detect mode&#061;train model&#061;yolov8.yaml data&#061;202406.yaml epochs&#061;30 batch&#061;16<\/p>\n<p>yolo task&#061;detect mode&#061;train model&#061;yolov8.yaml data&#061;202406.yaml epochs&#061;30 batch&#061;16 <\/p>\n<p>\u3010\u8b66\u544a\u3011\u7531\u4e8e\u6211\u5728\u81ea\u5efa\u7684 conda \u73af\u5883\u4e2d\u540c\u65f6\u914d\u7f6e\u4e86 yolov8 \u548c yolov5&#xff0c;\u5bfc\u81f4\u4e86\u4e00\u4e9b\u9519\u8bef\u7684\u53d1\u751f&#xff1a;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-19ppbvxsngwjv.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-19yn30apawtmu.png\" \/><\/p>\n<p>\u3010\u5f69\u86cb\u3011202406.yaml \u6570\u636e\u96c6\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>train: \/root\/autodl-tmp\/202406-data\/train<br \/>\nval: \/root\/autodl-tmp\/202406-data\/val<\/p>\n<p># number of classes<br \/>\nnc: 8<\/p>\n<p># class names<br \/>\nnames: [&#039;person&#039;, &#039;rider&#039;, &#039;car&#039;, &#039;truck&#039;, &#039;bus&#039;, &#039;train&#039;, &#039;motorcycle&#039;, &#039;bicycle&#039;] <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-04-19pczpdwtgetl.png\" \/><\/p>\n<\/p>\n<h2>Validation \u2728<\/h2>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;yolo task&#061;detect mode&#061;val model&#061;runs\/detect\/train01\/weights\/best.pt data&#061;202406.yaml batch&#061;16<\/p>\n<p>yolo task&#061;detect mode&#061;val model&#061;runs\/detect\/train01\/weights\/best.pt data&#061;202406.yaml batch&#061;16 <\/p>\n<h2>Prediction \u2728<\/h2>\n<p>\u6267\u884c\u547d\u4ee4&#xff1a;yolo task&#061;detect mode&#061;predict model&#061;runs\/detect\/train01\/weights\/best.pt \u00a0source&#061;ultralytics\/data\/images \u00a0device&#061;cpu<\/p>\n<p>yolo task&#061;detect mode&#061;predict model&#061;runs\/detect\/train85\/weights\/best.pt  source&#061;ultralytics\/data\/images  device&#061;cpu<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u8bb0\u5f55\u4e86\u5982\u4f55\u501f\u52a9 Tabby \u56fe\u5f62\u754c\u9762\u5de5\u5177\u5728 AutoDL \u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u914d\u7f6e YOLOv8 \u6240\u9700\u7684\u9879\u76ee\u73af\u5883\uff0c\u5e76\u4e14\u6210\u529f\u8fd0\u884c YOLOv8 \u6a21\u578b\u8fdb\u884c\u8bad\u7ec3\u548c\u6d4b\u8bd5\uff0c\u8fdb\u800c\u5b9e\u73b0\u5bf9\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u7684\u76ee\u6807\u68c0\u6d4b\u5904\u7406\u3002_\u670d\u52a1\u5668\u4f7f\u7528yolov8<\/p>\n","protected":false},"author":2,"featured_media":24366,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,152,156,1765,86],"topic":[],"class_list":["post-24386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-pytorch","tag-yolo","tag-1765","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09 - \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\/24386.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u8bb0\u5f55\u4e86\u5982\u4f55\u501f\u52a9 Tabby \u56fe\u5f62\u754c\u9762\u5de5\u5177\u5728 AutoDL \u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u914d\u7f6e YOLOv8 \u6240\u9700\u7684\u9879\u76ee\u73af\u5883\uff0c\u5e76\u4e14\u6210\u529f\u8fd0\u884c YOLOv8 \u6a21\u578b\u8fdb\u884c\u8bad\u7ec3\u548c\u6d4b\u8bd5\uff0c\u8fdb\u800c\u5b9e\u73b0\u5bf9\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u7684\u76ee\u6807\u68c0\u6d4b\u5904\u7406\u3002_\u670d\u52a1\u5668\u4f7f\u7528yolov8\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24386.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T02:02:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020212-6803042459be2.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24386.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24386.html\",\"name\":\"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T02:02:26+00:00\",\"dateModified\":\"2025-04-19T02:02:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24386.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24386.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24386.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09\"}]},{\"@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":"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09 - \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\/24386.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u8bb0\u5f55\u4e86\u5982\u4f55\u501f\u52a9 Tabby \u56fe\u5f62\u754c\u9762\u5de5\u5177\u5728 AutoDL \u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u914d\u7f6e YOLOv8 \u6240\u9700\u7684\u9879\u76ee\u73af\u5883\uff0c\u5e76\u4e14\u6210\u529f\u8fd0\u884c YOLOv8 \u6a21\u578b\u8fdb\u884c\u8bad\u7ec3\u548c\u6d4b\u8bd5\uff0c\u8fdb\u800c\u5b9e\u73b0\u5bf9\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u7684\u76ee\u6807\u68c0\u6d4b\u5904\u7406\u3002_\u670d\u52a1\u5668\u4f7f\u7528yolov8","og_url":"https:\/\/www.wsisp.com\/helps\/24386.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T02:02:26+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020212-6803042459be2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/24386.html","url":"https:\/\/www.wsisp.com\/helps\/24386.html","name":"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T02:02:26+00:00","dateModified":"2025-04-19T02:02:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24386.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24386.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24386.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u9879\u76ee\u5b9e\u8bad2\u3011\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 YOLOv8 \u6a21\u578b\u68c0\u6d4b\uff1a\u670d\u52a1\u5668\u79df\u7528\u3001\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u3001\u6a21\u578b\u7684\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\uff08\u5168\u7f51\u6700\u5168\u7684\u64cd\u4f5c\u6307\u5bfc\uff09"}]},{"@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\/24386","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=24386"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24386\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/24366"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24386"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}