Code Monkey home page Code Monkey logo

detect_steel_bar's Introduction

提醒

由于个人版本修改较多,记不清哪个配置可以达到线上0.97。

可修改的地方:

  1. dataloader.py 中Resize函数的图像尺寸,越大效果越好。
  2. main.py 中的模型 depth ,越大效果越好。
  3. 更有效的办法就是做数据扩充,增加数据量。

1. 比赛地址

智能盘点—钢筋数量AI识别

2. 依赖

pytorch0.4.1,opencv-python,skimage

3. 使用方法

step0: 安装

git clone https://github.com/spytensor/detect_steel_bar.git
detect_steel_bar/retinanet/lib/
bash build.sh
cd ../../

step1: 下载数据解压后,将训练数据和测试数据放到 data/images/下,效果如下:

 - data/
    - images/
        train/
        test/

step2: 将训练标签文件 train_labels.csv 复制到 data/ 下,效果如下:

- data/
    train_labels.csv

step3: 将官方提高数据转变成可供Retinanet训练格式

cd data
python convert.py
cd ..

step4: 训练

python retinanet/main.py

step5: 预测

python retinanet/predict.py

4. 效果

线上 0.97+

5. 参考

pytorch-retinanet

6. 提醒

如有疑问,请提出 issue,编码问题请自行谷歌。

detect_steel_bar's People

Contributors

frankfangy avatar spytensor avatar

Watchers

 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.