ubuntu20.04安装及重要装机软件

环境配置

参考文章

  1. 根据硬件确定本地CUDA版本
  2. 查找对应驱动版本
  3. 安装合适的pytorch-gpu版本

Anaconda+pytorch+cudatoolkit

  • Anaconda安装,直接清华镜像下载更快
#添加镜像源
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
ssl_verify: true

#显示检索路径
conda config --set show_channel_urls yes

#显示镜像通道
conda config --show channels
  • pytorch-gpu
step1: conda create -n pytorch python=3.8

step2: conda install pytorch=1.11.0 cudatoolkit=11.2 torchvision

step3: 安装其他需要依赖库

框架mmdet

因为mmdet需要从本地CUDA编译,而不是使用pytorch安装时附带的cudatoolkit,所以必须保持两个cuda版本一致,否则冲突报错
CUDA安装教程
mmdet安装步骤

step1:pip install mmcv-full(根据对应torch版本和cudatoolkit版本)
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html

step2:pip install mmdet

step3:pip install -r requirements/build.txt
pip install -v -e .  # or "python setup.py develop"

step4: python mmdet_test.py

搜狗输入法

安装指南

科研工具

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值