通过 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
>>> 
相关推荐
liwulin050614 小时前
【PYTHON】python venv创建虚拟环境,非conda
开发语言·python·conda
这个人懒得名字都没写2 天前
Python包管理新纪元:uv
python·conda·pip·uv
zgj_online3 天前
vscode的zsh终端,conda切换node环境不成功的解决方案
ide·vscode·conda
忘带键盘了3 天前
拷贝conda环境到另一个服务器
linux·服务器·conda
0x62696E4 天前
在conda虚拟环境中编译和运行ROS2
python·ubuntu·conda
sherlock_ye45 天前
‘jupyter‘ 不是内部或外部命令,也不是可运行的程序或批处理文件,最终解决方案!
ide·python·jupyter·conda
聊询QQ:688238865 天前
92.基于matlab的KPCA的TE过程的故障监测,利用核主元分析法(KPCA)来进行故障检...
conda
ljh5746491195 天前
用vscode怎么运行conda中的python环境
vscode·python·conda
DreamNotOver5 天前
在 VS Code 中使用 Conda虚拟环境高效运行与调试 Django 单元测试
python·django·conda
Java般若生5 天前
conda windows11 安装 指定envs的目录创建虚拟环境
conda