GithubHelp home page GithubHelp logo

0xalpha0123 / ml5-data-and-models-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ml5js/ml5-data-and-models-server

1.0 0.0 1.0 4.5 MB

A repo to download and serve data and models locally allowing ml5 to run without a web connection

JavaScript 100.00%

ml5-data-and-models-server's Introduction

ml5-data-and-models-server

A repo to download and serve data and models locally allowing ml5 to run without a web connection

Work in progress - please ignore

Quickstart ๐Ÿš€

To get started quickly, install the dependencies > download everything > serve it up

cd ml5-data-and-models-server
# install the dependencies
npm install
# download all the models
npm run download:all # wait for a long time for everything to download
# serve up your models
npm run serve 
# get your models at http://localhost:5000/<modelname>

Setup ๐Ÿ—

cd ml5-data-and-models-server
npm install

Download Data and Models ๐Ÿ’Œ

To download models run:

first go to the directory:

cd ml5-data-and-models-server

then either:

npm run download:all

or for specific models:

npm run download:bodypix
npm run download:sketchrnn
npm run download:unet
npm run download:sentiment
npm run download:faceapi
npm run download:soundclassification
npm run download:mobilenet
npm run download:yolo
npm run download:posenet
npm run download:posenet2
npm run download:all

โ†’ Your model outputs will live in the /models directory

Start the Server ๐Ÿ”ฅ

This assumes you've:

  • you've installed the dependencies
  • and downloaded some models

e.g.

cd ml5-data-and-models-server
npm install
npm run download:bodypix

Serve up the stuffs

Start the simple express server:

npm run serve
  • Your models will be available at:http://localhost:<PORT>/<modelname>

  • <PORT>: this is by default set to 5000

  • <modelname>: this is the all lowercase name for the model (e.g. sketchrnn, bodypix, unet, mobilenet, etc)

  • e.g.: http://localhost:5000/sketchrnn/bicycle.gen.json

ml5-data-and-models-server's People

Contributors

joeyklee avatar shiffman avatar snowyu avatar

Stargazers

 avatar

Forkers

dashbaord202401

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.