Giter Club home page Giter Club logo

kaizen's Introduction

Webserver for Human-in-the-Loop Active learning.

The Kaizen Query Response UI

For further info on the use of this system, please see the following papers:

Tropel: Crowdsourcing Detectors with Minimal Training

Kaizen: The Crowd Pathologist

Contents of this Repo

LICENSE - Open source
README - This file
app - The main flask webserver
bin - scripts for setting up db, recreating, and running main server
test - unit tests
utils - utility functions for computer vision and feature extraction
tasks.py - jobs for the Celery task queue
extract.py - functions for extracting features
requirements.txt - python requirements
Dockerfile - instructions for Dockerizing this repo

Set up venv:

mkvirtualenv kaizen # this app tested with Python3.9 pip install -r requirements.txt

To restart venv:

workon kaizen

To add to python requirements:

pip freeze > requirements.txt

Setup the configuration parameters:

cp config-example.py config.py

Then edit the config.py file to suit your environment.

Add this repo to your PYTHONPATH:

export APPROOT=/Users/$USER/kaizen # this is an example of where the app might be. export PYTHONPATH= $APPROOT:$PYTHONPATH

Setup the postgres database:

createdb APPNAME-local # APPNAME should match that set in config.py

If you'd like to blow away the db:

dropdb APPNAME-local

Setup default objects in the database:

chmod +x ./bin/setup_database.py ./bin/setup_database.py

Load some data to play with:

chmod +x bin/forge.py ./bin/forge.py

Start Task Queue

Start the Celery server to manage new tasks from the Flask app:

celery -A tasks.celery worker --loglevel=debug

Start App Server

Run Server:

flask run

Unit Testing

Tests are in the tests directory

cd tests Run unit test classes using: python -m unittest unit_tests.py

The forge functions also serve as system tests.

License

This project is licensed under the MIT License (see the LICENSE file for details).

kaizen's People

Contributors

ccai-course avatar genp avatar jannotti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

fathomnet emg110

kaizen's Issues

Add image search page

Include the labels for the nearest neighbor images to suggest a classification for the search image.

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.