GithubHelp home page GithubHelp logo

jy00002 / jinnan2019 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moodom/jinnan2019

0.0 1.0 0.0 24.12 MB

Jinnan2019 Restricted product monitoring

Shell 0.09% Python 83.80% C++ 5.15% Cuda 10.95% Makefile 0.02%

jinnan2019's Introduction

Jinnan2019

这是天池津南数字制造算法挑战赛——赛场二:物流货流限制品监测的代码分享,取得了27/2157的成绩。
比赛链接:https://tianchi.aliyun.com/competition/entrance/231703/introduction?spm=5176.12281957.1004.5.38b04c2aN7TkHY
该比赛的初赛是对5类限制品的检测任务,复赛是对限制品的语义分割的任务。

安装环境

Python3.6
PyTorch1.0
该代码主体部分来自mmdetection,配置环境请参照 https://github.com/open-mmlab/mmdetection

网络结构

由于测试集有大约2/3的图片没有包含任何限制品,所以算法的策略是首先用二分类判断出哪些图片包含限制品,在选出具有限制的图片中进行检测或分割任务。语义分割的网络选择的是cascade_mask_rcnn的结构,并采用多尺度训练,OHEM, soft_nms。
二分类网络的代码以及数据划分在utils里,语义分割网络的配置文件在configs里。

学习率调整

本次比赛采用了余弦退火学习率,可以使网络更好更快的收敛,大概可以提高一个点。当然据说大佬都是手调SGD,不过无脑训练确实有奇效。

数据增强

本次比赛采用了最简单线上旋转和翻折的数据增强。utils里还有生成假数据的代码,不过最后并没有使用。

网络融合

由于cascade_mask_rcnn没有多尺度测试的代码,比赛限制使用两个模型,我最后采用了一种简单的策略,即将测试图片以不同长宽比输入网络,得到不同结果后进行一个求平均的操作。

其他

utils里有语义分割可视化的代码以及测试miou的代码

总结

这是我第一次打比赛,历时两个月感觉学到很多,感谢这段时间帮助我的师兄KaiJin以及donglee,Hssen。
比赛的过程中暴露出一些问题,就是自己读的论文还是太少了,对整个算法的思考比较少,希望之后能沉下心好好研究一下。

jinnan2019's People

Contributors

moodom avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.