通过 conda 安装 的 detectron2

detectron2官网 发现预编译的版本最高支持 pytorch1.10、cuda11.3。(2023-12-26)

1、安装 conda 环境。

 conda create --name detectron2 python=3.8

2、安装 pytorch1.10 和 cuda11.3。

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。

python -m pip install detectron2 -f \
  https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html

4、测试。

(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
>>> 

相关推荐

  1. detectron2下预训练权重替换特征提取网络

    2023-12-30 23:52:03       23 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-30 23:52:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-30 23:52:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-30 23:52:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-30 23:52:03       18 阅读

热门阅读

  1. .Net Core 防御XXS攻击

    2023-12-30 23:52:03       42 阅读
  2. Fastboot指令大全

    2023-12-30 23:52:03       40 阅读
  3. 学习记录.spring中的单例bean是线程安全的吗?

    2023-12-30 23:52:03       40 阅读
  4. Parameter ‘username‘ unfilled

    2023-12-30 23:52:03       32 阅读
  5. 学习记录——BiSeNet V2

    2023-12-30 23:52:03       32 阅读
  6. servlet总结

    2023-12-30 23:52:03       32 阅读
  7. 保龄球游戏的获胜者(LeetCode日记)

    2023-12-30 23:52:03       23 阅读
  8. ubuntu装机记录

    2023-12-30 23:52:03       41 阅读
  9. 说一下数据库的事务隔离?

    2023-12-30 23:52:03       38 阅读
  10. 【用pandas,写入内容到excel工作表的问题】

    2023-12-30 23:52:03       42 阅读
  11. LeetCode[141] [142] 环形链表I II

    2023-12-30 23:52:03       42 阅读