通过 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
>>> 
相关推荐
月光下的麦克2 小时前
win10安装conda环境
conda
害恶细君19 小时前
【超详细】使用conda配置python的开发环境
开发语言·python·jupyter·pycharm·conda·ipython
一抹轻笑动人2 天前
Conda 常用命令速查表
conda
雨夜的星光2 天前
Python环境管理工具全景对比:Virtualenv, Pipenv, Poetry 与 Conda
python·pycharm·conda·virtualenv
小小毛毛虫~5 天前
使用Cursor遇到的问题(一):cursor使用conda虚拟环境
python·conda·cursor
chinesegf7 天前
conda虚拟环境直接复制依赖包可能会报错
python·conda
停走的风7 天前
关于Pycharm的conda虚拟环境包更改路径问题的配置问题
linux·pycharm·conda
施小赞7 天前
conda使用指南
conda
开心-开心急了9 天前
Windows 解决vscode 无法激活 miniconda 虚拟环境问题
windows·vscode·conda
IvanCodes9 天前
PySpark 安装教程及 WordCount 实战与任务提交
大数据·python·spark·conda