通过 conda 安装 的 detectron2

detectron2官网 发现预编译的版本最高支持 pytorch1.10、cuda11.3。(2023-12-26)

1、安装 conda 环境。

bash 复制代码
 conda create --name detectron2 python=3.8

2、安装 pytorch1.10 和 cuda11.3。

bash 复制代码
pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio==0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html

3、安装 detectron2。

bash 复制代码
python -m pip install detectron2 -f \
  https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html

4、测试。

bash 复制代码
(detectron2) ai200@ubuntu16:/dev_sdc/wujp_py$ python
Python 3.8.18 (default, Sep 11 2023, 13:40:15) 
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import detectron2
>>> 
相关推荐
picked stone3 天前
conda配置channel
conda
广药门徒3 天前
Anaconda使用教程 如何conda配置多版本Python环境
开发语言·python·conda
电棍2334 天前
vscode+WSL2(ubuntu22.04)+pytorch+conda+cuda+cudnn安装系列
人工智能·pytorch·conda
纪伊路上盛名在6 天前
生信软件管家——conda vs pip
linux·python·conda·学习方法·pip
ouliten12 天前
最新版pycharm如何配置conda环境
linux·pycharm·conda
Johaden12 天前
EXCEL+Python搞定数据处理(第一部分:Python入门-第2章:开发环境)
开发语言·vscode·python·conda·excel
qq_3993380014 天前
Conda的一些常用命令
windows·conda
NLstudy3315 天前
windows配置 Conda 使用阿里云镜像源
windows·conda
两千连弹17 天前
在PyCharm中使用Anaconda中的虚拟环境
ide·python·pycharm·conda
weixin_5178895017 天前
python管理工具:conda部署+使用
开发语言·python·conda