通过 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
>>> 
相关推荐
li99yo17 小时前
3DGS的复现
图像处理·pytorch·经验分享·python·3d·conda·pip
西西弗Sisyphus1 天前
PowerShell 配置为启动时自动激活 Conda 环境
conda·powershell
丘比特惩罚陆1 天前
Anaconda被误删后抢救手册大纲
conda·ai写作
凌云之程1 天前
避坑宝典:PyTorch最简安装路径(含CUDA + VSCode + 中文手册)
pytorch·python·conda·安装
劳工搬砖记录bot_ssprott2 天前
conda全流程安装seurat4及其依赖 | 包含各类报错解决
r语言·conda
m0_726965983 天前
关于conda
开发语言·python·conda
蛐蛐蛐3 天前
在openEuler(昇腾平台)上基于Conda安装CANN和PyTorch的完整过程
人工智能·pytorch·conda
MonkeyKing_sunyuhua4 天前
CondaError: Run ‘conda init‘ before ‘conda activate‘
conda
踏过山河,踏过海4 天前
【如何在cmd中使用conda】
conda
王小义笔记6 天前
WSL(Linux)如何安装conda
linux·运维·conda