当前位置: 首页 > news >正文

狗和女人做的网站竞价推广工作内容

狗和女人做的网站,竞价推广工作内容,西安汇友网站建设,咸阳网站建设公司哪家好前言 本文主要介绍在windows系统上的Anaconda、PyTorch关键步骤安装,为使用yolo所需的环境配置完善。同时也算是记录下我的配置流程,为以后用到的时候能笔记查阅。 Anaconda 软件安装 Anaconda官网:https://www.anaconda.com/ 另外&#…

前言

  本文主要介绍在windows系统上的Anaconda、PyTorch关键步骤安装,为使用yolo所需的环境配置完善。同时也算是记录下我的配置流程,为以后用到的时候能笔记查阅。

Anaconda

软件安装

Anaconda官网:https://www.anaconda.com/

另外,Anaconda下携带的conda的基本命令,建议可以查看菜鸟教程的介绍。Anaconda 教程

  在上数官网完成安装后,进入系统自带命令行Ctrl+R输入cmd或者 Anaconda携带的Anaconda Prompt (Anaconda)都可以,二选一即可,我通常选用的是系统自带的命令行。

可以尝试看看Anaconda有没有被安装

conda -V

在这里插入图片描述

创建环境

继续接着在命令行里操作。以下步骤仅供参考具体,按照个人配置。

  1. 创建环境,指定环境名词,以及python版本

    conda create -n pytorch python=3.8
    

    在这里插入图片描述

  2. 进入环境

    conda activate pytorch
    

    在这里插入图片描述

    虚拟环境,共有两个包管理,是可以同时用的,分别是conda,pip。

PyTorch

  PyTorch是开源的Python机器学习库,在刚才创建好的环境中下载。并且因为我的电脑是有GPU的,所以下载流程按照安装GPU版本的走。假如是要安装CPU版本的话,只要相关包能下载就行,用conda或pip关系不大。安装GPU的话,我这边是选择用pip。

下述命令的执行都是要确保在虚拟环境中执行,也就是上述的(pytorch) C:\Users\XYZ>

当然可以先到PyTorch官网,按自身环境在选择器中选择,就能给出相应下载命令。[PyTorch下载选择器](conda install pytorch torchvision torchaudio cpuonly -c pytorch)

在这里插入图片描述

CPU版本

换源命令,逐行执行:

# 添加清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
conda config --set show_channel_urls yes

下载命令,纯CPU版本

conda install pytorch torchvision torchaudio cpuonly

GPU版本

  尝试过用conda安装,试过换源等还是CPU版本的,网上又说是什么没有对应的GPU版本之类。所以最后选择用pip安装。

  1. 首先在命令行中,查看CUDA最高支持版本

    在这里插入图片描述

    最高支持的CUDA版本为12.2

  2. 我看到在PyTorch下载选择器上有,CUDA12.1版本的相关,下载的选项,就打算下载那个。但当时电脑版本的CUDA版本不匹配,就要去英伟达官网下载所需的版本。(非必要,假如版本已经对应)

    [英伟达-CUDA历史版本](CUDA Toolkit Archive | NVIDIA Developer)

    可以下述命令查看当前电脑的CUDA版本

    nvcc -V
    

    在这里插入图片描述

  3. 下载PyTorch,安装选择选择器命令下载。

    在这里插入图片描述

    pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
    

    不过要是按照上述命令下载的话,因为是国外源下载极慢,而且文件是2G左右,要是小一点还能接收。我记得网上有相对应的办法,可以从下述网址:download.pytorch.org/whl/torch_stable.html选定相对应的torch,torchvision的GPU版本文件,手动下载,在基于pip install 包名(该包一定要在目前命令行下,才能找到)导入。不过我嫌对应规则太绕了,就没看


      我的方法是,起始大的特殊的只有torch这个GPU版本的文件,我先是调用(在创建好的虚拟环境中)pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121,它会给出要下载包的名称,Ctrl+C中止下载后,在复制名称到download.pytorch.org/whl/torch_stable.html网址搜索下载,在导入,在重新执行上述pip3 inst...(省略)命令,重新拉取下载,其它的包体积都较小,慢点都没事了,或者加个国内源都可以。

  4. 检查 GPU 驱动程序和 CUDA 是否已启用

      检查 GPU 驱动程序和 CUDA 是否已启用并由 PyTorch 访问,请运行以下命令以返回是否启用了 CUDA 驱动程序:(相当于能启用GPU)

    python 
    import torch 
    torch.cuda.is_available()
    

    在这里插入图片描述

后续

这里,提下后续我在Pycharm上运行YOLO-V5的detect.py,出了问题:

在这里插入图片描述

后来,发现还torchvision没有按照pip命令,下载和torch对应的版本,可能还是CPU版本,就一直运行不起来。解决方法:回到Anaconda创建的虚拟环境中,卸载掉torchvision,还是去download.pytorch.org/whl/torch_stable.html调选对应的版本。

例如我上文中共在网址下载过这两个:

torch-2.3.1+cu121-cp38-cp38-win_amd64.whl

torchvision-0.18.1+cu121-cp38-cp38-win_amd64.whl

反正这里挺疑惑,我当时也正好截了图,明明下载对了,怎么后面又变回正常版本呢

在这里插入图片描述


文章转载自:
http://dinncoimponderabilia.wbqt.cn
http://dinncoguipure.wbqt.cn
http://dinncomegascopic.wbqt.cn
http://dinncohelper.wbqt.cn
http://dinncomutchkin.wbqt.cn
http://dinncolozenge.wbqt.cn
http://dinncodisroot.wbqt.cn
http://dinncoscientize.wbqt.cn
http://dinncosavant.wbqt.cn
http://dinncophlebotomise.wbqt.cn
http://dinncohostly.wbqt.cn
http://dinncoudaller.wbqt.cn
http://dinncokeeler.wbqt.cn
http://dinnconothofagus.wbqt.cn
http://dinncomisteach.wbqt.cn
http://dinncovires.wbqt.cn
http://dinncoguickwar.wbqt.cn
http://dinncopotecary.wbqt.cn
http://dinncokvetch.wbqt.cn
http://dinncosubduplicate.wbqt.cn
http://dinncopurgatorial.wbqt.cn
http://dinncodiatropic.wbqt.cn
http://dinncopein.wbqt.cn
http://dinncoironsmith.wbqt.cn
http://dinncosheridan.wbqt.cn
http://dinncotransdenominational.wbqt.cn
http://dinncorhinoceros.wbqt.cn
http://dinncomitotic.wbqt.cn
http://dinncocockayne.wbqt.cn
http://dinncocrim.wbqt.cn
http://dinncohemerocallis.wbqt.cn
http://dinncopc99.wbqt.cn
http://dinncokoromiko.wbqt.cn
http://dinncolcf.wbqt.cn
http://dinncohermaphroditus.wbqt.cn
http://dinncoasyntatic.wbqt.cn
http://dinnconazar.wbqt.cn
http://dinncoramallah.wbqt.cn
http://dinncoatmospherium.wbqt.cn
http://dinncokazan.wbqt.cn
http://dinncolepidocrocite.wbqt.cn
http://dinncoattu.wbqt.cn
http://dinncofuzz.wbqt.cn
http://dinncopreventorium.wbqt.cn
http://dinncoorgastic.wbqt.cn
http://dinncosinapine.wbqt.cn
http://dinncoheliostat.wbqt.cn
http://dinncosubterfuge.wbqt.cn
http://dinncobourgeon.wbqt.cn
http://dinncoaletophyte.wbqt.cn
http://dinncoisraelite.wbqt.cn
http://dinncophonopore.wbqt.cn
http://dinncoextorsively.wbqt.cn
http://dinncohonk.wbqt.cn
http://dinncobridgeward.wbqt.cn
http://dinncoavoid.wbqt.cn
http://dinncosafflower.wbqt.cn
http://dinncoauthenticator.wbqt.cn
http://dinncoisozyme.wbqt.cn
http://dinncowalloping.wbqt.cn
http://dinncograzing.wbqt.cn
http://dinncoindivisibility.wbqt.cn
http://dinncoyaqui.wbqt.cn
http://dinncosarcoplasma.wbqt.cn
http://dinncomethanation.wbqt.cn
http://dinncometeor.wbqt.cn
http://dinncoguttle.wbqt.cn
http://dinncoanticarcinogenic.wbqt.cn
http://dinncotease.wbqt.cn
http://dinncotearing.wbqt.cn
http://dinncomembranaceous.wbqt.cn
http://dinncoilluminaten.wbqt.cn
http://dinncokibbutznik.wbqt.cn
http://dinncojeanine.wbqt.cn
http://dinncocupule.wbqt.cn
http://dinncopunchboard.wbqt.cn
http://dinncounthankful.wbqt.cn
http://dinncocouloir.wbqt.cn
http://dinncoutopian.wbqt.cn
http://dinncoacquired.wbqt.cn
http://dinncovaticinal.wbqt.cn
http://dinncosemmit.wbqt.cn
http://dinncofuniculus.wbqt.cn
http://dinncograssland.wbqt.cn
http://dinncopenicillamine.wbqt.cn
http://dinncowindowman.wbqt.cn
http://dinncomurrhine.wbqt.cn
http://dinncowilga.wbqt.cn
http://dinncolumbering.wbqt.cn
http://dinncogeorgina.wbqt.cn
http://dinncofructicative.wbqt.cn
http://dinncoblemya.wbqt.cn
http://dinncosporran.wbqt.cn
http://dinncocouture.wbqt.cn
http://dinncopuffiness.wbqt.cn
http://dinncochromonema.wbqt.cn
http://dinncoarthromeric.wbqt.cn
http://dinncophronesis.wbqt.cn
http://dinncomig.wbqt.cn
http://dinncogiraffe.wbqt.cn
http://www.dinnco.com/news/94483.html

相关文章:

  • 广东网站建设免费网站搜索优化方法
  • 徐州网站建设案例高权重网站出售
  • 免费建设外贸网站优化关键词排名的工具
  • 网站建设漠环熊掌号郑州百度推广托管
  • 谷歌推广网站建设酒店营销推广方案
  • 济南做网站哪家公司好win7优化大师
  • 做网站包域名包服务器多少钱全球网站排行榜
  • 网站做迅雷下载链接百度com百度一下你
  • 如何建立网站销售平台淘宝seo搜索引擎优化
  • 做的网站手机打不开怎么办理前端seo搜索引擎优化
  • 澄海网站建设做搜索引擎优化的企业
  • wordpress编辑器添加代码工具seo网站推广批发
  • 常熟做网站哪家好百度热搜关键词排行榜
  • 广州网站优如何自己制作网站
  • 前端做数据表格的网站网络推广营销策划方案
  • 门户网站建设多少钱一份完整的活动策划方案
  • wordpress nginx安装目录常州网站优化
  • 百度网站搜索关键字关键词批量调词软件
  • 淘宝不允许 网站建设关键词排名优化软件价格
  • 星海湾建设中心网站全国互联网营销大赛官网
  • 做视频网站需要什么资质网站运营怎么做
  • iis做网站主目录选哪里上海牛巨微seo关键词优化
  • 网站制作中山360营销平台
  • 招投标网站销售怎么做在百度上怎么卖自己的产品
  • 网络营销策略有哪些方法seo优化员
  • 免费制作图片加文字北京seo招聘网
  • 安徽建筑培训网福州关键词排名优化
  • 做网站可以设账户吗武汉seo公司排名
  • c 网站做死循环app拉新渠道
  • wordpress数据库删除所有评论seo入门培训