Giter Club home page Giter Club logo

water-classifier-fastai's Introduction

Deploy water classifier using flask on heroku

A web app to predict whether water is clean or dirty using fastai library.


Demo:


Getting started

  • Fork and clone this repo on to your system

Customization

Put your model inside path/models folder

  • Place your trained .pth file under path/models/ directory.

Change the class and path name

  • Open "app.py" and search for a variable called classes and change that with your own classes

  • If your path name is different that "stage-2.pth", then change the learn.load("with_your_file_name.pth") in "app.py"

UI Change

Modify files in templates and static directory.

index.html for the UI and main.js for all the behaviors

Heroku Installation

  • Give your app name and click on create app

  • Go to the folder where you have cloned my repo and follow the steps given on the page

  • Once you are done, you will see the link to check your app on browser like this https://water-classifier1.herokuapp.com/

Note: If App is showing Application error then refresh the browser,It will work fine.

Future Roadmap

  • Add unit test.
  • Add CI/CD integration.
  • Create a robust image classifier using the more data or using some advance technique.
  • Adding celery and redis as a message brocker to handle the long task.

water-classifier-fastai's People

Contributors

shankarj67 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

water-classifier-fastai's Issues

App too big.

The NLP app I am trying to upload is 522 MB(it has data object too with its vocabulary
) but the limit is 500 MB.
Any suggestions on what I can do.

I m getting this error

RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling cublasCreate(handle)

getting error while deployig to heraku

when i was deploying this app on heraku using github i was getting this error
No matching distribution found for torchvision-nightly (from fastai==1.0.24->-r /tmp/build_75544d0811aee74cf7faa92f41253ad7/requirements.txt (line 5))

! Push rejected, failed to compile Python app.

! Push failed

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.