{"id":21668,"date":"2025-04-19T04:56:54","date_gmt":"2025-04-18T20:56:54","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/21668.html"},"modified":"2025-04-19T04:56:54","modified_gmt":"2025-04-18T20:56:54","slug":"01-%e6%9c%8d%e5%8a%a1%e5%99%a8or%e6%9c%ac%e5%9c%b0%e9%a1%b9%e7%9b%ae%e9%83%a8%e7%bd%b2%e5%85%a8%e6%b5%81%e7%a8%8b%e5%8f%8a%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/21668.html","title":{"rendered":"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898"},"content":{"rendered":"<p>\u540c\u5fd7\u4eec\u5927\u5bb6\u597d&#xff0c;\u4eca\u5929\u51fa\u4e00\u671f\u5728windows\u3001linux &amp; ubantu\u7cfb\u7edf\u4e2d\u90e8\u7f72yolo or rtdetr\u9879\u76ee\u7684\u6d41\u7a0b&#xff0c;\u4f9b\u5c0f\u767d\u5feb\u901f\u5165\u95e8&#xff01;&#xff08;\u58f0\u660e&#xff1a;\u4ee5\u4e0b\u6d41\u7a0b\u5747\u5728\u84dd\u8018GPU\u5e73\u53f0\u548c\u9b54\u9b3c\u9762\u5177\u7684rtdetr\u9879\u76ee\u4e0b\u8fdb\u884c&#xff0c;\u5176\u4ed6\u9879\u76ee\u5982yolo\u7cfb\u5217\u5747\u53ef\u4f7f\u7528\u8be5\u65b9\u6cd5&#xff09;<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C-toc\" style=\"margin-left:40px\">\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/p>\n<p id=\"%E4%BA%8C%E3%80%81pycharm%E8%BF%9E%E6%8E%A5%E8%BF%9C%E7%A8%8B%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%96%B9%E6%B3%95-toc\" style=\"margin-left:40px\">\u4e8c\u3001pycharm\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\u5668\u65b9\u6cd5<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E9%AD%94%E5%AF%BC%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE---RTDETR%20%E5%92%8CYOLO%E7%8E%AF%E5%A2%83%E7%9B%B8%E5%90%8C-toc\" style=\"margin-left:40px\">\u4e09\u3001\u9879\u76ee\u73af\u5883\u914d\u7f6e&#8212;RTDETR \u548cYOLO\u73af\u5883\u76f8\u540c<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E8%AE%AD%E7%BB%83%E6%95%99%E7%A8%8B---RTDETR%20%E5%92%8CYOLO%E7%9B%B8%E5%90%8C-toc\" style=\"margin-left:40px\">\u56db\u3001\u8bad\u7ec3\u6559\u7a0b&#8212;RTDETR \u548cYOLO\u76f8\u540c<\/p>\n<p id=\"%E4%BA%94%E3%80%81%E8%AE%AD%E7%BB%83%E8%BF%87%E7%A8%8B%E4%B8%AD%E7%9A%84%E4%B8%80%E4%BA%9B%E5%B0%8F%E6%8A%80%E5%B7%A7-toc\" style=\"margin-left:40px\">\u4e94\u3001\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u4e00\u4e9b\u5c0f\u6280\u5de7<\/p>\n<hr id=\"hr-toc\" \/>\n<h3 id=\"%E4%B8%80%E3%80%81%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C\">\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/h3>\n<p>\u5728\u6b64\u4e4b\u524d\u9700\u8981\u63d0\u524d\u4e0b\u8f7d\u4ee5\u4e0b\u5de5\u51771.\u663e\u5361\u8d44\u6e90&#xff08;\u81ea\u7528\u7535\u8111 \u6216 \u670d\u52a1\u5668\u5e73\u53f0<\/p>\n<p>2.Pycharm\u4e13\u4e1a\u7248&#xff0c;Vscode&#xff0c;\u6216GPU\u5e73\u53f0\u7684Jupyter\u754c\u9762&#xff08;\u4ee5\u4e0b\u6559\u7a0b\u5728Pycharm\u4e13\u4e1a\u7248\u4e2d\u5c55\u793a&#xff09;<\/p>\n<p>3.XFTP\u6587\u4ef6\u4f20\u8f93\u52a9\u624b&#xff08;\u4e2a\u4eba\u4e60\u60ef&#xff0c;\u53ef\u4f7f\u7528\u5176\u4ed6\u6587\u4ef6\u4f20\u8f93\u8f6f\u4ef6&#xff0c;\u8f83\u4e3a\u65b9\u4fbf&#xff09;<\/p>\n<p><span style=\"color:#fe2c24\">\u76f8\u5173\u94fe\u63a5\u9644\u6587\u7ae0\u672b\u5c3e<\/span><\/p>\n<\/p>\n<hr \/>\n<h3 id=\"%E4%BA%8C%E3%80%81pycharm%E8%BF%9E%E6%8E%A5%E8%BF%9C%E7%A8%8B%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%96%B9%E6%B3%95\">\u4e8c\u3001pycharm\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\u5668\u65b9\u6cd5<\/h3>\n<p>\u4ee5\u4e0b\u6d41\u7a0b\u5747\u5728b\u7ad9\u6709\u5bf9\u5e94\u89c6\u98910.\u9996\u5148\u9700\u8981\u5148\u627e\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u7684ssh\u94fe\u63a5\u53ca\u5bc6\u7801&#xff0c;\u4f8b\u5982\u00a0<\/p>\n<p>ssh -p 20733 root&#064;link.lanyun.net rppfoklk5zmp22su<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"193\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc92178b1.png\" width=\"928\" \/><\/p>\n<p>1.\u6253\u5f00pycharm\u4e13\u4e1a\u7248&#xff0c;\u4f9d\u6b21\u70b9\u51fb\u5de5\u5177&#8212;\u90e8\u7f72&#8211;\u914d\u7f6e<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"603\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc923944f.png\" width=\"1087\" \/><\/p>\n<p>2.\u6dfb\u52a0\u65b0\u914d\u7f6e&#xff0c;\u6309\u4ee5\u4e0b\u56fe\u7247\u6d41\u7a0b\u6dfb\u52a0ssh\u4fe1\u606f&#xff0c;\u6d4b\u8bd5\u8fde\u63a5&#xff08;\u4e0d\u61c2\u8bf7\u770bb\u7ad9\u89c6\u9891&#xff09;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"343\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc928a837.png\" width=\"856\" \/><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"281\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc92b3d7b.png\" width=\"814\" \/><\/p>\n<p>3.\u6253\u5f00\u8fdc\u7a0b\u4e3b\u673aRemote Host&#xff08;\u8fdc\u7a0b\u670d\u52a1\u5668\u76ee\u5f55&#xff09;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"500\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc92d9c36.png\" width=\"933\" \/><\/p>\n<p>4.\u6253\u5f00\u8fdc\u7a0b\u7ec8\u7aef<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"467\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205651-6802bc9318abd.png\" width=\"510\" \/><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"381\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205651-6802bc93393f6.png\" width=\"1060\" \/><\/p>\n<hr \/>\n<h3 id=\"%E4%B8%89%E3%80%81%E9%AD%94%E5%AF%BC%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE---RTDETR%20%E5%92%8CYOLO%E7%8E%AF%E5%A2%83%E7%9B%B8%E5%90%8C\">\u4e09\u3001\u9879\u76ee\u73af\u5883\u914d\u7f6e&#8212;RTDETR \u548cYOLO\u73af\u5883\u76f8\u540c<\/h3>\n<p>1.\u672c\u5730\u9700\u8981\u63d0\u524d\u51c6\u5907\u597dConda\u73af\u5883\u4ee5\u4fbf\u5b89\u88c5\u865a\u62df\u73af\u5883\u53catorch\u53ca\u540e\u7eed\u64cd\u4f5c<\/p>\n<p>conda create -n yolo python&#061;3.8 #\u521b\u5efa\u865a\u62df\u73af\u5883&#xff08;\u4e91GPU\u82e5\u6709\u5bf9\u5e94\u73af\u5883\u53ef\u4e0d\u7528\u521b\u5efa&#xff09;<br \/>\nconda init&#xff08;\u53ef\u9009&#xff09;<br \/>\nconda activate&#xff08;\u53ef\u9009&#xff09;<br \/>\nconda activate yolo  #\u8fdb\u5165\u865a\u62df\u73af\u5883<br \/>\n#yolo\u53ef\u66ff\u6362\u5176\u4ed6\u540d\u5b57<\/p>\n<p>2.<span style=\"color:#fe2c24\">\u4e91GPU\u670d\u52a1\u5668\u76f4\u63a5\u9009\u5b9a\u4ee5\u4e0btorch\u548ccuda\u7248\u672c\u76f4\u63a5\u90e8\u7f72<\/span>&#xff0c;\u6216\u521b\u5efa\u865a\u62df\u73af\u5883\u540e\u6309\u88c5\u4e0b\u65b9\u76f8\u5173\u5305\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"222\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205651-6802bc937ba6e.png\" width=\"618\" \/><\/p>\n<p>\u4ee5\u4e0b\u4ee3\u7801\u88c5\u597d\u865a\u62df\u73af\u5883\u540e\u53ef\u76f4\u63a5\u5168\u90e8\u590d\u5236\u8fdb\u53bb&#xff0c;\u6216\u8005\u4e00\u6761\u4e00\u6761\u590d\u5236&#xff0c;\u4e00\u822c\u4e0d\u4f1a\u51fa\u73b0\u62a5\u9519\u60c5\u51b5\u3002 &#xff08;\u82e5\u7f51\u7edc\u4e0b\u8f7d\u8fc7\u6162&#xff0c;\u53ef\u5c1d\u8bd5\u5207\u6362\u5176\u4ed6\u955c\u50cf\u6e90&#xff09;<\/p>\n<p>pip install torch&#061;&#061;1.13.1&#043;cu117 torchvision&#061;&#061;0.14.1&#043;cu117 torchaudio&#061;&#061;0.13.1 &#8211;extra-index-url https:\/\/download.pytorch.org\/whl\/cu117 \u00a0-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\npip install timm&#061;&#061;0.9.8 thop efficientnet_pytorch&#061;&#061;0.7.1 einops grad-cam&#061;&#061;1.4.8 dill&#061;&#061;0.3.6 albumentations&#061;&#061;1.3.1 pytorch_wavelets&#061;&#061;1.3.0 tidecv \u00a0 \u00a0-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\npip install -U openmim -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 mim install mmengine \u00a0-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 mim install &#034;mmcv&gt;&#061;2.1.0&#034; \u00a0-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p>apt-get update<br \/>\napt install libgl1-mesa-glx<br \/>\npip install psutil -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple <\/p>\n<p>3.\u88c5\u597d\u73af\u5883\u7684\u540c\u65f6\u5c06\u9b54\u5bfc\u7684\u9879\u76ee\u6587\u4ef6\u4e0a\u4f20\u8fdb\u53bb&#xff0c;\u53ef\u4ee5\u7528XFTP\u4e0a\u4f20\u6216\u76f4\u63a5\u4e0a\u4f20<\/p>\n<p>\u9996\u5148\u4f7f\u7528XFTP\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\u5668<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"775\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205651-6802bc9398214.png\" width=\"1000\" \/><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"616\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205651-6802bc93dc685.png\" width=\"1200\" \/><\/p>\n<hr \/>\n<h3 id=\"%E5%9B%9B%E3%80%81%E8%AE%AD%E7%BB%83%E6%95%99%E7%A8%8B---RTDETR%20%E5%92%8CYOLO%E7%9B%B8%E5%90%8C\">\u56db\u3001\u8bad\u7ec3\u6559\u7a0b&#8212;RTDETR \u548cYOLO\u76f8\u540c<\/h3>\n<p>1.\u7ec8\u7aef\u4e0b\u89e3\u538b\u9879\u76ee\u6587\u4ef6\u2460unzip RTDETR-20241020.zip &#xff08;\u89e3\u538b\u6307\u4ee4&#xff09;<\/p>\n<p>\u2461cd RTDETR-main\/\u00a0 &#xff08;cd\u5230\u6587\u4ef6\u76ee\u5f55\u4e0b&#xff09;<\/p>\n<p>\u2462\u4fee\u6539\u6570\u636e\u96c6\u8def\u5f84&#xff08;\u4f7f\u7528\u9879\u76ee\u9ed8\u8ba4\u6570\u636e\u96c6\u6d4b\u8bd5&#xff0c;\u4fee\u6539\u540e\u4e0a\u4f20\u4fdd\u5b58&#xff09;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"576\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205652-6802bc943dda1.png\" width=\"1200\" \/><\/p>\n<p>\u2463\u8fd0\u884cpython train.py \u6307\u4ee4\u63d0\u793a\u62a5\u9519&#xff0c;\u539f\u56e0\u662f\u56e0\u4e3a\u8def\u5f84\u9519\u8bef&#xff0c;datasets\u51fa\u73b0\u4e86\u4e24\u6b21<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"265\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205652-6802bc94a8e0a.png\" width=\"1173\" \/><\/p>\n<p>\u2464<span style=\"color:#fe2c24\">vim\u00a0\/root\/.config\/Ultralytics\/settings.yaml\u00a0<\/span> (&#8212;vim\u5230\u4e0a\u65b9\u62a5\u9519\u8def\u5f84) \u6309\u952e\u76d8\u4e0a\u7684\u201c<span style=\"color:#fe2c24\">i<\/span>\u201d\u952e\u8fdb\u5165\u6539\u5199\u6a21\u5f0f&#xff0c;\u5220\u9664\u8def\u5f84\u540e\u65b9\u7684datasets&#xff0c;\u6539\u6210\u4ee5\u4e0b\u8def\u5f84\u540e\u6309<span style=\"color:#fe2c24\">ESC<\/span>\u9000\u51fa\u6539\u5199\u6a21\u5f0f\u540e&#xff0c;\u6309<span style=\"color:#fe2c24\">Shift&#043;Z&#043;Z<\/span>\u4fdd\u5b58\u4ee3\u7801\u9000\u51fa<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"423\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205652-6802bc94da8f6.png\" width=\"690\" \/><\/p>\n<p>\u2465\u518d\u6b21\u8fd0\u884cpython train.py \u6307\u4ee4\u540e\u6210\u529f\u8fd0\u884c&#xff0c;\u6216\u8005\u53ef\u80fd\u4f1a\u51fa\u73b0\u5b57\u4f53\u4e0b\u8f7d\u5361\u987f \u5982\u51fa\u73b0\u4ee5\u4e0b\u5361\u987f\u60c5\u51b5&#xff0c;\u8bf7\u70b9\u51fb\u4e0b\u8f7d\u94fe\u63a5\u5728\u672c\u5730\u4e0b\u8f7d\u540e\u4e0a\u4f20\u5230\u548ctrain.py\u540c\u7ea7\u76ee\u5f55&#xff0c;\u7136\u540e\u5728\u7ec8\u7aef\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4&#xff1a;\u5373\u53ef\u89e3\u51b3\u8be5\u95ee\u9898&#xff0c;<\/p>\n<p>mv Arial.ttf \/root\/.config\/Ultralytics\/Arial.ttf <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"391\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205653-6802bc9507df5.png\" width=\"1126\" \/><\/p>\n<p>\u6700\u540e\u6210\u529f\u8fd0\u884c\u4ee3\u7801<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"324\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205653-6802bc95473ea.png\" width=\"1152\" \/><\/p>\n<p>\u540e\u7eed\u66f4\u6362\u6570\u636e\u96c6\u7684\u8bdd&#xff0c;\u5219\u6309\u7167\u4ee5\u4e0a\u683c\u5f0f&#xff0c;\u81ea\u884c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u66f4\u6539\u6570\u636e\u96c6\u5373\u53ef<\/p>\n<hr \/>\n<h3 id=\"%E4%BA%94%E3%80%81%E8%AE%AD%E7%BB%83%E8%BF%87%E7%A8%8B%E4%B8%AD%E7%9A%84%E4%B8%80%E4%BA%9B%E5%B0%8F%E6%8A%80%E5%B7%A7\">\u4e94\u3001\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u4e00\u4e9b\u5c0f\u6280\u5de7<\/h3>\n<p>1.\u4f7f\u7528nohup\u6307\u4ee4\u8fdb\u884c\u540e\u53f0\u8bad\u7ec3&#xff0c;\u9632\u6b62\u56e0\u65ad\u7f51\u5bfc\u81f4\u7684\u4e2d\u65ad\u7b49\u60c5\u51b5 \u2460\u4f7f\u7528python train.py\u6307\u4ee4\u7684\u8bdd \u4f60\u7535\u8111\u7f51\u7edc\u73af\u5883\u53d1\u751f\u53d8\u5316\u65f6&#xff08;\u5219\u4f60\u7684\u8bad\u7ec3\u540e\u4e2d\u65ad&#xff0c;\u6bd4\u5982\u5f00\u5173vpn&#xff0c;\u7535\u8111\u606f\u5c4f&#xff0c;\u7f51\u7edc\u4e0d\u7a33\u5b9a&#xff09; \u2461\u4f7f\u7528nohup python train-s.py &gt; log.log 2&gt;&amp;1 \u00a0 \u6307\u4ee4\u7684\u8bdd&#xff0c;\u4f60\u8dd1\u901a\u540e\u7535\u8111\u4e0d\u7ba1\u662f\u5173\u673a\u8fd8\u662f\u5565&#xff0c;\u4ed6\u4ee3\u7801\u90fd\u4f1a\u5728\u670d\u52a1\u5668\u540e\u53f0\u8dd1&#xff0c;\u548c\u81ea\u5df1\u7535\u8111\u6ca1\u5173\u7cfb&#xff09;<\/p>\n<p>nohup python train.py &gt; log.log 2&gt;&amp;1<br \/>\nnohup python train-1.py &gt; log1.log 2&gt;&amp;1<br \/>\nnohup python train-2.py &gt; log2.log 2&gt;&amp;1<br \/>\nnohup python train-3.py &gt; log3.log 2&gt;&amp;1<br \/>\n#&#8212;-\u670d\u52a1\u5668\u8bad\u7ec3\u4ee3\u7801\u8bf7\u4f7f\u7528nohup\u6307\u4ee4\u5728\u540e\u53f0\u8dd1&#xff0c;<br \/>\n\u7136\u540e\u76ee\u5f55\u4e0b\u4f1a\u51fa\u73b0log.log\u7684\u65e5\u5fd7\u6587\u4ef6&#xff0c;\u5b58\u653e\u4f60\u7684\u6240\u6709\u6253\u5370\u7684\u4fe1\u606f<\/p>\n<p>\u4ee5\u4e0a\u9ed8\u8ba4\u4e3a0\u5361\u8dd1&#xff0c;\u82e5\u5b58\u5728\u591a\u5361&#xff0c;\u8bf7\u5728\u6307\u4ee4\u524d\u52a0 CUDA_VISIBLE_DEVICES&#061;1<br \/>\n\u4f8b\u5982<br \/>\nCUDA_VISIBLE_DEVICES&#061;1  nohup python train-s.py &gt; log.log 2&gt;&amp;1<br \/>\n&#8230;&#8230; <\/p>\n<p>2.\u67e5\u770b\u662f\u5426\u8dd1\u5b8c <span style=\"color:#fe2c24\">nvidia-smi<\/span>&#xff0c;\/\/\u67e5\u770b\u663e\u5b58\u53d8\u5316&#xff0c;\u5982\u679c\u8dd1\u4e00\u4e2a\u5b9e\u9a8c\u5360\u4e868\u4e2aG\u663e\u5b58&#xff0c;\u7136\u540e\u663e\u5b58\u53d8\u62100\u7684\u65f6\u5019\u5c31\u8bf4\u660e\u8dd1\u5b8c\u4e86<\/p>\n<p>3.\u67e5\u770b\u8dd1\u5230\u54ea\u4e00\u8f6e\u4e86&#xff0c;\u7cbe\u5ea6\u662f\u591a\u5c11 \u67e5\u770bruns\/train\/exp\u6587\u4ef6\u91cc\u9762\u7684result.csv&#xff0c;\u4e3b\u8981\u67e5\u770bmap50 \u548cmap50-95 \u7684\u6da8\u70b9\u60c5\u51b5<\/p>\n<p>4.\u67e5\u770b\u4ee3\u7801\u662f\u5426\u62a5\u9519&#xff0c;\u6253\u5f00\u65e5\u5fd7log.log\u67e5\u770b\u4ee3\u7801\u62a5\u9519\u60c5\u51b5<\/p>\n<p>5.\u8fd0\u884c\u4e00\u6b21\u4ee3\u7801&#xff0c;\u4f1a\u51fa\u73b0\u4e00\u4e2a\u8fdb\u7a0b\u53f7&#xff0c;\u82e5\u4ee3\u7801\u5f00\u59cb\u8dd1\u4e86&#xff0c;\u60f3\u63d0\u524d\u4e2d\u65ad\u7684\u8bdd&#xff0c;\u8bf7\u4f7f\u7528<span style=\"color:#fe2c24\">ps aux <\/span>\u6307\u4ee4\u67e5\u770bPID\u8fdb\u7a0b\u53f7\u4e86&#xff0c;\u5e76\u4e14\u4f7f\u7528<span style=\"color:#fe2c24\">kill -9 \u8fdb\u7a0b\u53f7 <\/span>\u4e2d\u65ad\u8be5\u8fdb\u7a0b\u5e76\u91ca\u653e\u663e\u5b58 \u4e00\u4e9b\u5e38\u7528\u7ec8\u7aef\u6307\u4ee4 \u2460rm -rf datasets\/ \u00a0 \u00a0 &#8212;-\u5220\u9664datasets\u6587\u4ef6\u5939 \u2461unzip dataset.zip\u00a0 &#8212;-\u89e3\u538bdataset\u6587\u4ef6\u5939&#8211;xftp\u6700\u597d\u4f20\u8f93\u538b\u7f29\u5305\u683c\u5f0f\u6587\u4ef6&#xff0c;\u8fd9\u6837\u5feb \u2462\u590d\u5236\u6587\u4ef6\u8bf7\u5728xftp\u4e2dctrl cv\u590d\u5236\u7c98\u8d34<\/p>\n<p> \u9644\u4e0a\u76f8\u5173\u94fe\u63a5\u2460\u6587\u7ae0\u4e2d\u9879\u76ee\u4ee3\u7801\u8bf7\u67e5\u770b&#xff1a;GitHub &#8211; z1069614715\/objectdetection_script: \u4e00\u4e9b\u5173\u4e8e\u76ee\u6807\u68c0\u6d4b\u7684\u811a\u672c\u7684\u6539\u8fdb\u601d\u8def\u4ee3\u7801&#xff0c;\u8be6\u7ec6\u8bf7\u770breadme.md<\/p>\n<p>1.\u663e\u5361\u8d44\u6e90&#xff08;\u81ea\u7528\u7535\u8111 \u6216 \u670d\u52a1\u5668\u5e73\u53f0)https:\/\/cloud.lanyun.net\/#\/activity?uuid&#061;efa15431a91abaaf0bdeb212fffe685a<\/p>\n<p>2.Pycharm\u4e13\u4e1a\u7248&#xff0c;Vscode&#xff0c;\u6216GPU\u5e73\u53f0\u7684Jupyter\u754c\u9762&#xff08;\u4ee5\u4e0b\u6559\u7a0b\u5728Pycharm\u4e13\u4e1a\u7248\u4e2d\u5c55\u793a&#xff09;<\/p>\n<p>3.XFTP\u6587\u4ef6\u4f20\u8f93\u52a9\u624b&#xff08;\u4e2a\u4eba\u4e60\u60ef&#xff0c;\u53ef\u4f7f\u7528\u5176\u4ed6\u6587\u4ef6\u4f20\u8f93\u8f6f\u4ef6&#xff0c;\u8f83\u4e3a\u65b9\u4fbf&#xff09;<\/p>\n<p>\u5bb6\u5ead\/\u5b66\u6821\u514d\u8d39 &#8211; NetSarang Website<\/p>\n<p>\u5982\u6709\u5176\u4ed6\u95ee\u9898\u8bf7\u5728\u8bc4\u8bba\u533a\u6307\u51fa&#xff0c;\u89c9\u5f97\u6709\u7528\u7684\u53ef\u4ee5\u70b9\u8d5e\u8bc4\u8bba&#xff0c;\u6211\u4eec\u4e0b\u671f\u518d\u89c1&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.6k\u6b21\uff0c\u70b9\u8d5e59\u6b21\uff0c\u6536\u85cf45\u6b21\u3002\u540c\u5fd7\u4eec\u5927\u5bb6\u597d\uff0c\u4eca\u5929\u51fa\u4e00\u671f\u5728windows\u3001linux &amp; ubantu\u7cfb\u7edf\u4e2d\u90e8\u7f72yolo or rtdetr\u9879\u76ee\u7684\u6d41\u7a0b\uff0c\u4f9b\u5c0f\u767d\u5feb\u901f\u5165\u95e8\uff01\uff08\u58f0\u660e\uff1a\u4ee5\u4e0b\u6d41\u7a0b\u5747\u5728\u84dd\u8018GPU\u5e73\u53f0\u548c\u9b54\u9b3c\u9762\u5177\u7684rtdetr\u9879\u76ee\u4e0b\u8fdb\u884c\uff0c\u5176\u4ed6\u9879\u76ee\u5982yolo\u7cfb\u5217\u5747\u53ef\u4f7f\u7528\u8be5\u65b9\u6cd5\uff09\u5176\u4ed6\u76f8\u5173\u94fe\u63a5\u9644\u6587\u7ae0\u672b\u5c3e\u3002_\u670d\u52a1\u5668\u672c\u5730\u5316\u90e8\u7f72<\/p>\n","protected":false},"author":2,"featured_media":21653,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[156,50,1664,86,1665,523],"topic":[],"class_list":["post-21668","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-yolo","tag-50","tag-amp","tag-86","tag-1665","tag-523"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898 - \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\/21668.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.6k\u6b21\uff0c\u70b9\u8d5e59\u6b21\uff0c\u6536\u85cf45\u6b21\u3002\u540c\u5fd7\u4eec\u5927\u5bb6\u597d\uff0c\u4eca\u5929\u51fa\u4e00\u671f\u5728windows\u3001linux &amp; ubantu\u7cfb\u7edf\u4e2d\u90e8\u7f72yolo or rtdetr\u9879\u76ee\u7684\u6d41\u7a0b\uff0c\u4f9b\u5c0f\u767d\u5feb\u901f\u5165\u95e8\uff01\uff08\u58f0\u660e\uff1a\u4ee5\u4e0b\u6d41\u7a0b\u5747\u5728\u84dd\u8018GPU\u5e73\u53f0\u548c\u9b54\u9b3c\u9762\u5177\u7684rtdetr\u9879\u76ee\u4e0b\u8fdb\u884c\uff0c\u5176\u4ed6\u9879\u76ee\u5982yolo\u7cfb\u5217\u5747\u53ef\u4f7f\u7528\u8be5\u65b9\u6cd5\uff09\u5176\u4ed6\u76f8\u5173\u94fe\u63a5\u9644\u6587\u7ae0\u672b\u5c3e\u3002_\u670d\u52a1\u5668\u672c\u5730\u5316\u90e8\u7f72\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/21668.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-18T20:56:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc92178b1.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/21668.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/21668.html\",\"name\":\"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T20:56:54+00:00\",\"dateModified\":\"2025-04-18T20:56:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/21668.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/21668.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/21668.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898\"}]},{\"@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":"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898 - \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\/21668.html","og_locale":"zh_CN","og_type":"article","og_title":"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.6k\u6b21\uff0c\u70b9\u8d5e59\u6b21\uff0c\u6536\u85cf45\u6b21\u3002\u540c\u5fd7\u4eec\u5927\u5bb6\u597d\uff0c\u4eca\u5929\u51fa\u4e00\u671f\u5728windows\u3001linux &amp; ubantu\u7cfb\u7edf\u4e2d\u90e8\u7f72yolo or rtdetr\u9879\u76ee\u7684\u6d41\u7a0b\uff0c\u4f9b\u5c0f\u767d\u5feb\u901f\u5165\u95e8\uff01\uff08\u58f0\u660e\uff1a\u4ee5\u4e0b\u6d41\u7a0b\u5747\u5728\u84dd\u8018GPU\u5e73\u53f0\u548c\u9b54\u9b3c\u9762\u5177\u7684rtdetr\u9879\u76ee\u4e0b\u8fdb\u884c\uff0c\u5176\u4ed6\u9879\u76ee\u5982yolo\u7cfb\u5217\u5747\u53ef\u4f7f\u7528\u8be5\u65b9\u6cd5\uff09\u5176\u4ed6\u76f8\u5173\u94fe\u63a5\u9644\u6587\u7ae0\u672b\u5c3e\u3002_\u670d\u52a1\u5668\u672c\u5730\u5316\u90e8\u7f72","og_url":"https:\/\/www.wsisp.com\/helps\/21668.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T20:56:54+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418205650-6802bc92178b1.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/21668.html","url":"https:\/\/www.wsisp.com\/helps\/21668.html","name":"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T20:56:54+00:00","dateModified":"2025-04-18T20:56:54+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/21668.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/21668.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/21668.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"01 \u670d\u52a1\u5668or\u672c\u5730\u9879\u76ee\u90e8\u7f72\u5168\u6d41\u7a0b\u53ca\u5e38\u89c1\u95ee\u9898"}]},{"@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\/21668","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=21668"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/21668\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/21653"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=21668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=21668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=21668"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=21668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}