通过 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
>>> 
相关推荐
砍材农夫14 天前
python环境|conda安装和使用(1)
开发语言·后端·python·conda
匆匆整棹还14 天前
mamba的安装和版本对应
conda
2601_9618752415 天前
花生十三资料1200题|题库|刷题
conda·pytest·pillow·pip·web3.py·ipython·gunicorn
没有钱的钱仔16 天前
自动创建conda虚拟环境,并安装依赖包
conda
砍材农夫17 天前
python环境|pip|uv|venv|Conda区别
后端·python·conda·pip·uv
pixelpilot117 天前
Conda:跨平台的二进制包管理器
其他·conda
lg_cool_18 天前
使用conda管理python运行环境并关联vscode
vscode·python·conda
javajenius18 天前
Pixi:用 Rust 重写 Conda 体验的包管理工具
开发语言·其他·rust·conda
小白弄潮儿18 天前
Conda 使用入门指南
conda
DFT计算杂谈19 天前
WannierTools输入文件wt.in一键批量生成脚本
java·前端·chrome·python·算法·conda