1 Star 0 Fork 0

tpig / ml5-data-and-models-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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

空文件

简介

下载预训练模型的工具,同时可以提供模型服务 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/tpig/ml5-data-and-models-server.git
git@gitee.com:tpig/ml5-data-and-models-server.git
tpig
ml5-data-and-models-server
ml5-data-and-models-server
source

搜索帮助

53164aa7 5694891 3bd8fe86 5694891