{"id":1118,"date":"2024-11-12T00:35:10","date_gmt":"2024-11-11T16:35:10","guid":{"rendered":"http:\/\/192.168.1.20\/?p=1118"},"modified":"2025-04-08T13:11:35","modified_gmt":"2025-04-08T05:11:35","slug":"yolo%e9%83%a8%e7%bd%b2%e6%b5%81%e7%a8%8b%ef%bc%88dnf%e8%84%9a%e6%9c%ac%e5%89%8d%e7%bd%ae%ef%bc%8c%e6%96%b0%e7%89%88%e6%9c%accuda11-8%ef%bc%89","status":"publish","type":"post","link":"http:\/\/alextop.top\/?p=1118","title":{"rendered":"YOLO\u90e8\u7f72\u6d41\u7a0b\uff08\u65b0\u7248\u672cCUDA>11.8\uff0cDNF\u811a\u672c\u524d\u7f6e\uff09"},"content":{"rendered":"\n<p>\u4e00\u3001\u67e5\u627e\u6700\u65b0\u9a71\u52a8<\/p>\n\n\n\n<p><a href=\"https:\/\/www.nvidia.cn\/geforce\/drivers\">https:\/\/www.nvidia.cn\/geforce\/drivers<\/a><\/p>\n\n\n\n<p>\u4e8c\u3001\u9996\u5148\u5224\u65ad\u7535\u8111\u7684cuda\u7248\u672c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u67e5\u770bcuda\u7248\u672c \nnvidia-smi<\/code><\/pre>\n\n\n\n<p>\u4e09\u3001\u5bf9\u7167cuda\u7248\u672c\u9009\u62e9pytorch\u7248\u672c<\/p>\n\n\n\n<p>\u8f83\u65b0\u7248\u672c\uff1a<a href=\"https:\/\/pytorch.org\/\">https:\/\/pytorch.org\/<\/a><\/p>\n\n\n\n<p>\u6b21\u65b0\u7248\u672c\uff1a<a href=\"https:\/\/pytorch.org\/get-started\/previous-versions\/\">https:\/\/pytorch.org\/get-started\/previous-versions\/<\/a><\/p>\n\n\n\n<p>cuda12.1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install torch torchvision torchaudio --index-url https:\/\/download.pytorch.org\/whl\/cu121<\/code><\/pre>\n\n\n\n<p>\u56db\u3001\u521b\u5efayolo\u7684conda\u73af\u5883<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda env list\nconda create --name y8 python=3.9 -y\nconda activate y8\n<\/code><\/pre>\n\n\n\n<p>\u4e94\u3001\u5176\u4ed6\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install ultralytics\n\n#dnf\u90e8\u7f72\npip install pyserial\n#\u9700\u8981\u590d\u5236\u6587\u4ef6\u5230System32\uff0c\u6587\u4ef6\u6240\u5728\u8def\u5f84envs\\y8\\Lib\\site-packages\\pywin32_system32\\\npip install pywin32\npip install pygetwindow\npip install opencv-python\npip install pymysql\n<\/code><\/pre>\n\n\n\n<p>\u516d\u3001conda\u5176\u4ed6\u64cd\u4f5c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u9000\u51fa\u5f53\u524dconda\u73af\u5883\nconda deactivate \n#\u5220\u9664\u73af\u5883\nconda remove -n y8 --all -y<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u67e5\u627e\u6700\u65b0\u9a71\u52a8 https:&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,10],"tags":[],"class_list":["post-1118","post","type-post","status-publish","format-standard","hentry","category-yolo","category-jishu"],"_links":{"self":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/1118"}],"collection":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1118"}],"version-history":[{"count":9,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/1118\/revisions"}],"predecessor-version":[{"id":1521,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/1118\/revisions\/1521"}],"wp:attachment":[{"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1118"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}