Git Product home page Git Product logo

cyyeh / dog-breed-classifier-project Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 60.81 MB

Udacity Machine Learning Engineer Nanodegree Capstone Project

Home Page: https://dog-breed-classifier.netlify.app/

License: MIT License

Dockerfile 0.23% Makefile 0.98% Python 8.88% CSS 8.06% HTML 18.37% JavaScript 63.48%
deep-learning python3 pytorch fastapi mobilenetv2 webapp gcp-cloud-run computer-vision

dog-breed-classifier-project's Introduction

Dog Breed Classification Project

Visualization of the codebase

Project Functionalities

  • Users can know more about dog breeds and their information through taking photos or uploading photos.
  • Users can also directly use photos provided by the project to quickly play around.
  • Users can get top 3 dog breed prediction results with wikipedia links.
  • Users can learn English and Chinese at the same time.

System Architecture

  • dog detection
    • model: MobileNet V2 pretrained model without finetuning
    • input: an image having RGB channels with Base64 encoding
    • output: boolean
  • dog classification
    • model: MobileNet V2 pretrained model with finetuning
    • input: an image having RGB channels with Base64 encoding
    • output: top-3 prediction results(dog breed names and prediction probabilities)

Project Structure

  • api: backend
  • web: frontend

Used Tools/Technologies

  • frontend
    • HTML/CSS/JavaScript
    • Materialize
    • Babel
    • Webpack
  • backend
    • Python
      • FastAPI
    • Docker
    • GCP
      • Cloud Run
  • deep learning
    • PyTorch

Deep Learning Under the Hood in This Project

You can check this repo for further details, and this project is orginally from my Udacity Machine Learning Engineer Nanodegree capstone project. However, I have changed some model details for this dog breed classifier, you can check here for more details.

Setup

Frontend

please see the web folder

  • npm install (download dependencies first)
  • local development
    • npm run start
  • deployment
    • npm run build

You can checkout other commands in package.json in the web folder

Backend

please see the api folder

  • local development without docker:
    • pip install pipenv (If you don't have pipenv installed)
    • pipenv install
    • pipenv run uvicorn main:app --reload

Below commands are already written in Makefile, please checkout and change any setting you need first.

  • local development using docker:
    • make dev
  • build a docker image:
    • make build
  • submit a docker image to Google Container Registry:
    • make submit
  • deploy a docker image in Google Container Registry to Google Cloud Run:
    • make deploy

Todos

  • support English
  • support PWA
    • Android
    • iOS
  • export the trained PyTorch models to edge devices for better inference performance

dog-breed-classifier-project's People

Contributors

cyyeh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.