Windows上测试PlaneRCNN

Anaconda 安装

Anaconda 镜像使用帮助

CUDA

Ubuntu18.04中的常用软件安装

conda install cudnn=7.1.2

Python及Pytorch安装

创建 Python 环境

conda create --name planercnn python=3.7

激活Python环境

conda activate planercnn

安装Pytorch 0.4.1

conda install pytorch=0.4.1 -c pytorch

安装torchvision

conda install torchvision -c pytorch

输入 python,之后输入 import torch,如果没有报错,意味着 pytorch 已经顺利安装了,接下来输入 torch.cuda.is_available(),如果是 True,意味着可以使用 GPU训练,如果是 False,意味着只能使用CPU了。

import torch
torch.cuda.is_available()
torch.backends.cudnn.version()

在这里插入图片描述

错误1

运行 conda activate planercnn 时会报错如下:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

如果执行conda init powershell,重启后依然报错如下:

无法加载文件 C:\Users\cgnerds\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 行:1 字符: 3 'C:\Users\cgnerds\Documents\WindowsPowerShell\profile.ps1'

可使用管理员权限打开powershell,并运行如下命令即可解决。

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

错误2

在这里插入图片描述

CUDA 9 unsupported error with Visual Studio 2017

参考链接

Anaconda安装pytorch0.4.1和对应的torchvision
powershell激活conda失败

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值