4 Star 43 Fork 16

PaddlePaddle / Paddle.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 950 Bytes
一键复制 编辑 原始数据 按行查看 历史

中文版

wine

Wine is a wine bottle recognition module. Based on mobilenetv2 model, users need to input the model file path and classification mapping file to obtain the classification results.

Setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Usage

import * as mobilenet from '@paddlejs-models/mobilenet';

// model load
const path = 'https://paddlejs.bj.bcebos.com/models/fuse/mobilenet/wine_fuse_activation/model.json';
await mobilenet.load({
    path,
    mean: [0.485, 0.456, 0.406],
    std: [0.229, 0.224, 0.225]
}, map);

// get classification results
const res = await mobilenet.classify(img);

Online experience

wine:https://paddlejs.baidu.com/wine

Performance

wine
TypeScript
1
https://gitee.com/paddlepaddle/Paddle.js.git
git@gitee.com:paddlepaddle/Paddle.js.git
paddlepaddle
Paddle.js
Paddle.js
release/v2.2.5

搜索帮助