Skip to content

Freshcan/machine-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Freshcan Machine Learning Model

We have built an image classification model to detect fruit or vegetable freshness. Our model will give output of the type of fruit or vegetable and its percentage of how fresh or rotten it is. For this project. we only train several types of fruits and vegetables.

Tech Stack

Datasets

There are 2 datasets from kaggle that we use. Here are the links for those datasets.

We pick 9 types of fruits and vegetables which consist of apple, banana, orange, tomato, cucumber, carrot, mango, strawberry, and capsicum. Each fruit and vegetable will be classified as rotten or fresh, so in total we have 18 classes.

ML Model Detail

We train our model using Convolutional Neural Networks and transfer learning InceptionV3. InceptionV3 is chosen based on PoC amongst the other 2 models that use pre-trained model VGG16 and customized model.

Prequisites

If you want to try our model on your local or modify it, you can follow the steps below.

  • Clone the repo
git clone https://github.com/Freshcan/machine-learning.git
  • Install all requirements using the command below. Make sure that you've installed python 3.10 or above.
pip install -r requirements.txt
  • You can use jupyter notebook or Google Colab to run the code. You can simply just put the model into your Colab account then run the model or follow the steps below to use jupyter notebook.
pip install jupyterlab
jupyter-lab
pip install notebook
jupyter notebook
  • Run main.py if you want to try the model's API locally. Open http://127.0.0.1:8001/docs#/ to try uploading the image and see the prediction result.

Authors

  • Atifah Nabilla Al Qibtiyah
  • Indra Ma'dika
  • Kartika Dian Pratiwi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages