Git Product home page Git Product logo

classification-merchant-signs's Introduction

Classification-merchant-signs

2018 Baidu merchant signboard classification and testing contest:2018百度商家招牌的分类与检测大赛

Overview

This is a summary of my participation in the classification and testing competition of 2018 Baidu merchant signs. Competition homepage: [百度](https://dianshi.baidu.com/competition/17/rule)。
The project runs on win10 + anaconada. You can also use other environments to run.
The program uses the InceptionV3 model for fine-tuning, and the final classification accuracy is 0.995.
I also tried to use resnet50, vgg16, Xception...they can also get a nice result.

Network structure change

The final fully connected layer and category output layer of the network has changed according to the number of categories of actual classified items. You can also try to make different changes.

Installation requirements

python = 3.6.0
tensorflow >= 1.7.0
keras > = 2.1.3
argparse
matplotlib

Project file

data_pre.py : Divide the training set into a training set and a validation set.
data_arguement.py : Data enhancement,The default is to enhance 1 to 8 images.
finetune_model.py : Use this script to train.
finetune_model_test.py : Use this script to test.

Dataset file directory

Before enhancement
| datasets
| test |image1.jpg image2.jpg ...
| train
|image1.jpg image2.jpg ...
| test.txt
| train.txt

After enhancement
| datasets
| test
|image1.jpg image2.jpg ...
| train
| 1
|image1.jpg image2.jpg ...
| 2
|image1.jpg image2.jpg ...
... | valid
| 1
|image1.jpg image2.jpg ... | 2
|image1.jpg image2.jpg ...
...
| test.txt
| train.txt

Txt file format : image name + label.

Match Results

![image] (https://github.com/zdyshine/Classification-merchant-signs/blob/master/image/result.jpg)

classification-merchant-signs's People

Contributors

zdyshine avatar

Watchers

 avatar  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.