Skip to content

This is a pytorch version of mobilenet implemented by Jupyter Notebook, the dataset consists of imagenet dataset and custom dataset.

Notifications You must be signed in to change notification settings

shaoqiming1028/Mobilenet-CustomData

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobilenet with custom data

Project Home Page

The project task is to classify the fruits in supermarkets based on deep CNN model. But the machines in supermarkets only have CPU. So my team select mobilenet as the basic NN model and train it to classify different types of fruits.

This project uses pytorch to implement Mobilenet with Jupyter Notebook. The main dataset consists of imagenet data and custom data.

Hope this could help you to enjoy deep learning.

Version 1 - Fine tune

In version 1, we conduct two experiments on fruits classification.

First, we use watermelon and kiwi pictures from imagenet to fune-tune our trained mobilenet model. Then we validate it by our own collect data.

The own collect data size:

watermelon: 18 , kiwi: 16

And we can achieve 100% validation accuracy.

Then, we add three other fruits and repeat the experiment.

Training Dataset

We select Tiny Imagenet to train the mobilenet model.

Tiny Imagenet: http:https://cs231n.stanford.edu/tiny-imagenet-200.zip

Fine-tune Dataset

Data download from Imagenet, and we filter a part of them to fit the specific classification task:

apple: 570, avocado: 307, banana: 701, kiwi: 128, watermelon: 778

Validation Dataset

Collected from supermarket, used phone type: Huawei P10, iPhone 7 plus, iPhone X, data size:

apple: 21, avocado: 20, banana: 27, kiwi: 16, watermelon: 18

Result

5 Classes, 30 epochs

cc_30

Reference

  1. A good pytorch Mobilenet implementation:

    https://github.com/marvis/pytorch-mobilenet

  2. There are lots of good pytorch tutorials in github, here recommend a Chinese version for new beginners:

    https://github.com/SherlockLiao/code-of-learn-deep-learning-with-pytorch

About

This is a pytorch version of mobilenet implemented by Jupyter Notebook, the dataset consists of imagenet dataset and custom dataset.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.7%
  • Python 0.3%