安装d2l(pytorch)

安装d2l pytorch 版本

Anaconda3 python 3.9 pytorch 1.9/1.12
d2l-0.17.6-py3-none-any.whl安装失败
Anaconda3 配置
githubgitcode下载d2l-en-v0.17.6.zip

pip install pytz
pip install albumentations opencv_python_headless
pip install wandb
pip install ruamel.yaml
pip install numba==0.56
pip install ogb pykeops ray einops

修改 setup.py和安装的版本一致

'jupyter==1.0.0',
'numpy==1.21.5',
'matplotlib==3.5.1',
'requests==2.27.1',
'pandas==1.4.2'

管理员权限 运行Anaconda3
安装pytorch 、 mmcv
pytorch 1.9
cuda 11.1.1

pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html

pip install mmcv-full==1.4.8 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html

pip install mmdet==2.23.0 
pip install mmsegmentation==0.29.1 
pip install mmcls==0.23.2
pip install mmdet3d==0.18.1
pip install mmrotate==0.2.0

pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html

pip install torchdiffeq torch-geometric
 
python setup.py install

pytorch1.12
cuda 11.6.2


pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 -f https://download.pytorch.org/whl/torch_stable.html
 
pip install mmcv-full==1.7.1 -f https://download.openmmlab.com/mmcv/dist/cu116/torch1.12.0/index.html

pip install mmdet==2.28.2 
pip install mmsegmentation==0.30.0 
pip install mmcls==0.25.0
pip install mmdet3d==1.0.0rc6
pip install mmrotate==0.3.4

pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.12.1+cu116.html

pip install torchdiffeq torch-geometric
 
python setup.py install


jupyter notebook

运行时如果出现

  • Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
Anaconda3\Library\bin\
site-packages\torch\

目录下都有 libiomp5md.dll,删除Anaconda3\Library\bin\目录下的

  • OSError: [WinError 1455]页面文件太小,无法完成操作。

修改pytorch所在盘的虚拟内存大小

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值