通过 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
>>> 
相关推荐
雕刻刀7 小时前
linux中复制conda环境
linux·python·conda
乐园游梦记12 小时前
在pycharm中添加Conda创建的openmmlab虚拟环境作为解释器
ide·pycharm·conda
贵沫末1 天前
Python——图像处理项目Conda环境搭建
开发语言·python·conda
佳xuan1 天前
wsl(linux)安装miniconda及虚拟环境
linux·人工智能·conda
Cyan_RA92 天前
如何利用 Paddle-OCR 丝滑进行复杂版面 PDF 的批量化OCR处理?
java·linux·python·ocr·conda·paddle·surya
Hello.Reader3 天前
Ubuntu 安装 Miniconda 完整从零开始把 Conda 环境搭起来
linux·ubuntu·conda
Techblog of HaoWANG3 天前
目标检测与跟踪(16)-- Ubuntu 20.04 下 ROS1 + Conda 虚拟环境开机自启动方案(兼容 ROS2 共存)
人工智能·目标检测·ubuntu·机器人·视觉检测·conda·控制
Techblog of HaoWANG4 天前
目标检测与跟踪(15)-- conda 环境与 roslaunch 节点解释器不一致问题的排查与工程化修复
人工智能·目标检测·计算机视觉·机器人·conda
好奇龙猫5 天前
[大学院-python-base gammer learning(1): setting conda + Jupyter ]
python·jupyter·conda
PD我是你的真爱粉5 天前
uv 包管理与传统 pip、conda 的比较:迁移前的工程取舍
conda·pip·uv