linux系统安装mmdetection
时间: 2023-09-08 12:13:35 浏览: 183
为了在Linux系统上安装mmdetection,您需要满足以下要求:
- 安装Python 3.4及以上版本
- 安装PyTorch 1.0及以上版本
- 安装Cython
- 安装mmcv(版本需大于等于0.2.2)
有两种安装方式可供选择:
方式一:源码编译
1. 克隆mmsegmentation代码库:
```
git clone https://github.com/open-mmlab/mmsegmentation.git
cd mmsegmentation
git checkout v0.20.0
```
2. 安装mmsegmentation:
```
pip install -e .
```
方式二:使用pip直接安装
```
pip install mmsegmentation
```
安装依赖包和MMDetection3D:
1. 克隆MMDetection3D代码库:
```
git clone https://github.com/open-mmlab/mmdetection3d.git
cd mmdetection3d
```
2. 安装依赖包:
```
pip install -v -e .
```
在安装mmdet时可能会遇到pycocotools安装失败的问题。为了解决这个问题,您可以使用以下命令安装pycocotools:
```
conda install pycocotools -c Esri
```
最后,安装mmdetection:
```
python setup.py install
```
请注意,如果您想将mmdetection安装到本地,可以在安装命令后面添加"--user"选项。希望这些步骤对您有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [linux下安装mmdetection的步骤](https://blog.csdn.net/u010103202/article/details/89060538)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Linux系统配置mmdetection3d环境](https://blog.csdn.net/CSDNxiaoh/article/details/125321921)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文