Giter Site home page Giter Site logo

tsarprince / dog-bark-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t04glovern/dog-bark-detection

0.0 0.0 0.0 2.88 MB

JavaScript 0.41% Python 3.28% TypeScript 4.61% HTML 0.21% Vue 5.05% Jupyter Notebook 86.37% Dockerfile 0.06%

dog-bark-detection's Introduction

Dog Bark Detection

Architecture Diagram

Conda Environment

conda env create -f environment.yml
conda activate dog-bark

Basic Exploration

If you're just looking to play around with the ML model without worrying about the AWS cloud components I'd strongly suggest looking at notebook.ipyn after running the conda commands. It's set up to train the model from scratch and run inference over .wav files.

Run Prediction

QUEUE_NAME=<queue_name> TABLE_NAME=<table_name> python3 main.py

Docker

docker build -t dog-bark .
docker run --env QUEUE_NAME=<queue_name> --env TABLE_NAME=<table_name> dog-bark

ECS

# Login
aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.ap-southeast-2.amazonaws.com/dog-bark-detection

# Build
docker build -t dog-bark-detection .
docker tag dog-bark-detection:latest \
    123456789012.dkr.ecr.ap-southeast-2.amazonaws.com/dog-bark-detection:latest
# Push
docker push 123456789012.dkr.ecr.ap-southeast-2.amazonaws.com/dog-bark-detection:latest

Kubernetes

gcloud auth login
gcloud config set project <PROJECT>

docker build -t gcr.io/<PROJECT>/bark-detector:latest .
docker push gcr.io/<PROJECT>/bark-detector:latest

# When connected to Kubernetes
kubectl apply -f deploy.yml

Attribution

dog-bark-detection's People

Contributors

silentbyte avatar srzstephen avatar t04glovern avatar tsarprince 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.