Coder Social home page Coder Social logo

plant-seedling-image-classification's Introduction

Image Classification with ResNet50, Streamlit and Docker

Project Overview

Using ResNet50 to make prediction on plant seedling images, creating an app with Streamlit, Docker and deploying it to Heroku. Either choose a test image or upload an image of different types of plant seedling to perform image classification prediction.

Model Overview

Data is from Kaggle. Only using first seven target classes and limiting training images to 250 for each class to make training session faster. Therefore, the model may suffer tradeoff in accuracy when it comes to model prediction. Here I am using pre-trained ResNet 50 model and separately adding fully connected layers on the top to make train and make predictions. Transfer Learning is especially useful when it comes to deep learning as it is computationally expensive and time consuming to train a deep neural network on images.

Run locally with Docker

From the streamlit-docker dir:

    docker build -t dannylee1020/ps_project .
    docker run -p 8501:8501 dannylee1020/ps_project:latest

Then visit localhost:8501 for streamlit app. Make sure to use local testing commands in Dockerfile when running. Commands for Heroku deployment is default.

Testing Model

Using pytest for testing model. simply run pytest test_predict.py in tests directory

plant-seedling-image-classification's People

Contributors

dannylee1020 avatar

Stargazers

Eléa Petton avatar paper2code - bot avatar

Watchers

 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.