Naming common Nigerian foods using Pytorch's ResNet9
The model was built with Pytorch ResNet9 architecture only with minor modifications.
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
Data transforms
- Normalization
- Data augmentation
The ResNet9 architecture, as described in this blog series was used for this project.
- 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.
- More data should be used
- Extracting important features could help
- Deeper neural network
The model was deployed to an android app. Repository found here