AerialDetection mmdetection版本安装记录

目录

一、环境:

二、安装流程:

三、问题


链接:

https://arxiv.org/abs/1812.00155

https://github.com/dingjiansw101/AerialDetection

一、环境:

Ubuntu18.04

GCC5.5.0        这个很重要,需要先安装好,请看三、问题中的方法

CUDA10.0

Python3.7

Pytorch==1.1.0

Torchvision==0.3

mmcv==0.4.3

二、安装流程:

1、Create a conda virtual environment and activate it. Then install Cython.

conda create -n AerialDetection python=3.7 -y
conda activate AerialDetection
conda install cython

2、Install PyTorch stable or nightly and torchvision

conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=10.0 -c pytorch

3、Clone the AerialDetection repository

git clone https://github.com/dingjiansw101/AerialDetection.git
cd AerialDetection

4、Compile cuda extensions

./compile.sh

5、Install mmcv!!!

pip install mmcv==0.4.3

6、Install AerialDetection (other dependencies will be installed automatically).

pip install -r requirements.txt
python setup.py develop

 7、Install DOTA_devkit

apt-get install swig
cd DOTA_devkit
swig -c++ -python polyiou.i
python setup.py build_ext --inplace

Note:

You can run `python setup.py develop` to install AerialDetection if you want to make modifications to it frequently.

三、问题

1、GCC降级

(亲自操刀)Ubuntu18.04 的GCC7.3.0 降级为GCC5.5.0_xrinosvip的博客-CSDN博客

更改gcc默认版本(gcc版本降级/升级)_帝江VII的博客-CSDN博客_gcc降版本

gcc5.5.0依赖包:

链接:https://pan.baidu.com/s/1SXyHcz6YY0JvMv5D59kMyA 
提取码:gqp5

2、fatal error:xxx.h no such file or directory

fatal error:xxx.h no such file or directory 解决方案_cocosola的博客-CSDN博客

https://blog.csdn.net/qq_40349484/article/details/115058028

然后根据Cuda版本安装合适的包

评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值