mmdetection安裝與環境配置

2021-10-22 10:22:42 字數 1300 閱讀 4110

最近自己真的安裝了太多的計算機視覺環境了(越來越會找bug了,是不是很棒,hh),這次趁熱打鐵總結一下mmdetection的安裝步驟。

涉及到 cuda,python,pytorch,mmcv,gcc:

去官網上找到對應cuda和python的版本:

conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch
pip install mmcv-full -f
注意:這樣安裝,是安裝相應cuda和pyroch版本下最新版的mmcv, 和要對應自己的版本,我的就是:

pip install mmcv-full -f
也可以指定mmcv版本,不過需要注意之後打算使用的mmdetection版本:

此外mmcv-full的版本也是受限於cuda和pytorch的版本,我這裡mmcv最高就1.2.7,不過已經妥妥夠用了:

git clone
pip install -r requirements
python demo/image_demo.py  demo/demo.jpg  configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth
如下圖則成功:

github官方.

mmdtection使用說明.

安裝mmdetection並測試demo

一 安裝mmdetection 0 ubuntu已有環境 anaconda cuda v10.0.130 cudnn 7.4.2 1 新建conda環境並啟用 conda create name open mmlab python 3.6 conda activate open mmlab 具體也可...

mmdetection學習筆記(一) 安裝

配置要求 linux windows is not officially supported python 3.5 python 2 is not supported pytorch 1.1 or higher cuda 9.0 or higher nccl 2 gcc g 4.9 or highe...

Redis安裝 VMware Ubuntu環境下

2 在ubutun下解壓 tar zxvf redis 3.2.9.tar.gz 3 進入redis目錄 cd redis 3.2.9 4 編譯 make redis是由c語言編寫的,因此需要進行編譯 5 進入到src目錄下進行安裝 cd src make install make install執...