如何在ubuntu下安装detectron2_ubuntu Anaconda Pytorch 编译安装Detectron2

本教程详细记录了在Ubuntu环境下,通过Anaconda创建虚拟环境,并安装PyTorch后,进一步编译安装Detectron2的步骤。包括克隆Detectron2仓库,激活环境,安装依赖库,最后成功安装Detectron2的过程。
摘要由CSDN通过智能技术生成

star@xmatrix:~/Detectron2$ git clone https://github.com/facebookresearch/detectron2.git

star@xmatrix:~/Detectron2$ source activate wind2

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$ ls

detectron2-master detectron2-master.zip

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$ cd detectron2-master

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$ ls

configs demo dev docs INSTALL.md MODEL_ZOO.md README.md setup.py tools

datasets detectron2 docker GETTING_STARTED.md LICENSE projects setup.cfg tests

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$

(wind2) star@xmatrix:~/Detectron2/detectron2-master$ cd ../(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$

(wind2) star@xmatrix:~/Detectron2$ python -m pip install -e detectron2-master

Obtaining file:///home/star/Detectron2/detectron2-master

Processing/home/star/.cache/pip/wheels/7c/06/54/bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6/termcolor-1.1.0-cp36-none-any.whl

Collecting Pillow>=7.1Downloading https://files.pythonhosted.org/packages/30/bf/92385b4262178ca22b34f82e0e09c2922eb351fe39f3cc7b8ba9ea555b41/Pillow-7.2.0-cp36-cp36m-manylinux1_x86_64.whl (2.2MB)|████████████████████████████████| 2.2MB 189kB/s

Collecting yacs>=0.1.6Downloading https://files.pythonhosted.org/packages/38/4f/fe9a4d472aa867878ce3bb7efb16654c5d63672b86dc0e6e953a67018433/yacs-0.1.8-py3-none-any.whl

Collecting tabulate

Downloading https://files.pythonhosted.org/packages/c4/f4/770ae9385990f5a19a91431163d262182d3203662ea2b5739d0fcfc080f1/tabulate-0.8.7-py3-none-any.whl

Collecting cloudpickle

Downloading https://files.pythonhosted.org/packages/e7/e3/898487e5dbeb612054cf2e0c188463acb358167fef749c53c8bb8918cea1/cloudpickle-1.6.0-py3-none-any.whl

Collecting matplotlib

Downloading https://files.pythonhosted.org/packages/cd/d6/8c4dfb23151d5a494c66ebbfdb5c8c433b44ec07fae52da5939fcda0943f

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值