当前位置:网站首页>【MMdetection】一文解决安装问题
【MMdetection】一文解决安装问题
2022-07-06 09:33:00 【TiggerRun】
安装
引言
在最近的比赛中又一次使用了MMdetection库,上次使用是在天池大赛中跑baseline,这次在Ubuntu服务器下重新安装MMdetection还是处处碰壁,总结以下问题,很多问题在github issue中重复。
创建一个新环境
conda create -n name python==3.6
推荐使用3.6版本
cuda 版本
# 查看服务器上的cuda版本,强烈推荐安装10.x版本!
cat /usr/local/cuda/version.txt
安装pytorch
pip install torch==1.1.0 torchvision==0.3.0 cudatoolkit==10.0.130
为了避免错误,这是最稳定的版本配置
纠正numpy版本
pip install numpy==1.16.0
numpy v1.18会引起int 和 float64计算的不兼容,在mmdetection中表现了 test计算AP失败
MMdet支持的pytroch版本
mmdetV1.0:torch1.1,1.2,1.3,1.4
mmdetV2.0:torch1.5
要注意pytorch的版本,最近出了putorch1.5,如果不指定版本去安装都会安装成pytorch1.5,但是1.5版本是在MMdetectionV2.0中被兼容的,如果需要使用V2.0则使用以下语句进行安装
git clone https://github.com/open-mmlab/mmdetection -b v2.0
cd mmdetection
cython,wheel
pip install cython wheel
mmcv
pip install mmcv
或者
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
pip install -e .
如果安装mmcv出现了问题,可以尝试使用
pip install pytest-runner
这是一个必要的库
pycocoapi
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
或者
pip install pycocotools
mmdetection v1
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -e -v .
安装失败后
python setup.py clean
手动删除build文件,在处理完问题后继续以下
pip install -v -e .
或者
python setup.py develop
边栏推荐
- vscode
- 汇编课后作业
- MySQL date function
- 案例:检查空字段【注解+反射+自定义异常】
- Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
- Interpretation of Flink source code (III): Interpretation of executiongraph source code
- List集合数据移除(List.subList.clear)
- Idea resolving jar package conflicts
- Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
- DOS function call
猜你喜欢

MySQL date function

IDEA断点调试技巧,多张动图包教包会。

一个数10年工作经验的微服务架构老师的简历

吴军三部曲见识(五) 拒绝伪工作者

Akamai 反混淆篇

Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance

Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.

Some feelings of brushing leetcode 300+ questions

Some instructions on whether to call destructor when QT window closes and application stops

吴军三部曲见识(四) 大家智慧
随机推荐
Train 100 pictures for 1 hour, and the style of the photos changes at will. There is a demo at the end of the article | siggraph 2021
Design of DS18B20 digital thermometer system
控制转移指令
暑假刷题嗷嗷嗷嗷
JVM 垃圾回收器之Garbage First
GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
TCP的三次握手和四次挥手
JVM类加载子系统
Install docker under windows10 (through Oracle VM VirtualBox)
Shawshank's sense of redemption
關於Stream和Map的巧用
Some instructions on whether to call destructor when QT window closes and application stops
Interview collection library
À propos de l'utilisation intelligente du flux et de la carte
JVM垃圾回收概述
List集合数据移除(List.subList.clear)
arithmetic operation
JVM之垃圾回收器下篇
唯有学C不负众望 TOP3 Demo练习