Skip to content

bumie-e/Nigerian-Food-Identification-project-with-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Nigerian-Food-Identification-project-with-Pytorch

Naming common Nigerian foods using Pytorch's ResNet9

Introduction

The model was built with Pytorch ResNet9 architecture only with minor modifications.

Dataset

The model was trained on 300 images, 50 images each of

  • Jollof Rice
  • Fried Rice
  • Moimoi
  • Pounded Yam
  • Akara balls
  • Amala and Ewedu

The dataset can be found here

Preprocessing

Data transforms

  • Normalization
  • Data augmentation

Preprocessing

Accuracy curve

AccuracyCurve

The Model

The ResNet9 architecture, as described in this blog series was used for this project. resnet-9

Now, this architecture has various aspect:

  • The convolution block
  • resnet block
  • the output block

The convolution block contains conv2d, batch normalization and relu function. The resnet block contains two convolution blocks and the input added to it. The model has two resent blocks with two convolution blocks in between. The output block contains maxpool, flatten, dropout and linear function.

To further improve this model,

  • More data should be used
  • Extracting important features could help
  • Deeper neural network

The model was deployed to an android app. Repository found here

About

Naming common Nigerian foods using ResNet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors