通过 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
>>> 
相关推荐
jiayi_199921 小时前
Linux 容器安装 conda 和 pip
linux·conda·pip
ydl11282 天前
安装Anaconda
人工智能·conda
郁大锤3 天前
conda虚拟环境占用空间太多,如何清理?
linux·conda
be_humble3 天前
conda 环境配置
conda
课堂随想6 天前
vscode关闭自动激活conda环境
vscode·conda
人工智能训练6 天前
在 Ubuntu 系统中利用 conda 创建虚拟环境安装 sglang 大模型引擎的完整步骤、版本查看方法、启动指令及验证方式
linux·运维·服务器·人工智能·ubuntu·conda·sglang
Will_Ye6 天前
在Ubuntu中使用Docker打包程序(Conda, pip)
ubuntu·docker·conda
我狸才不是赔钱货6 天前
Python的“环境之殇”:从Venv到Conda的终极抉择
开发语言·python·conda
被放养的研究生7 天前
conda常用命令
conda
开心-开心急了8 天前
conda 命令使用进阶指南 minconda
conda·1024程序员节·minconda