目录
链接:
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版本安装合适的包