当前位置:   article > 正文

安装d2l(pytorch)_d2l安装

d2l安装

安装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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

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

'jupyter==1.0.0',
'numpy==1.21.5',
'matplotlib==3.5.1',
'requests==2.27.1',
'pandas==1.4.2'
  • 1
  • 2
  • 3
  • 4
  • 5

管理员权限 运行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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16


jupyter notebook
  • 1
  • 2

运行时如果出现

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

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

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/342743
推荐阅读
相关标签
  

闽ICP备14008679号