Files
FastDeploy/examples/application/js/package/packages/paddlejs-models/mobilenet
Double_V a823d4eebf [Doc] add readme for js packages (#421)
* add contributor

* add package readme

* refine ocr readme

* refine ocr readme
2022-10-24 16:18:00 +08:00
..
2022-10-23 14:05:13 +08:00
2022-10-23 14:05:13 +08:00
2022-10-23 14:05:13 +08:00
2022-10-23 14:05:13 +08:00

中文版

mobilenet

mobilenet model can classify img. It provides simple interfaces to use. You can use your own category model to classify img.

version size downloads downloads

Usage

import * as mobilenet from '@paddle-js-models/mobilenet';
// You need to specify your model path and the binary file count
// If your has mean and std params, you need to specify them.
// map is the results your model can classify.
await mobilenet.load({
    path,
    mean: [0.485, 0.456, 0.406],
    std: [0.229, 0.224, 0.225]
}, map);
// get the result the mobilenet model classified.
const res = await mobilenet.classify(img);

Online experience

mobileNethttps://paddlejs.baidu.com/mobilenet

winehttps://paddlejs.baidu.com/wine

Performance

image