# @paddle-js-models/mobilenet

> [中文版](./README_cn.md)

Latest version **3.0.1** (published 2022-09-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install @paddle-js-models/mobilenet
pnpm add @paddle-js-models/mobilenet
yarn add @paddle-js-models/mobilenet
bun add @paddle-js-models/mobilenet
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2022-09-21 |
| First published | 2022-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 40.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | qianhechen |

## Links

- npm: https://www.npmjs.com/package/@paddle-js-models/mobilenet
- npm.io page: https://npm.io/package/@paddle-js-models/mobilenet

## Dependencies (2)

- [@paddlejs/paddlejs-core](https://npm.io/package/@paddlejs/paddlejs-core.md) ^2.2.0
- [@paddlejs/paddlejs-backend-webgl](https://npm.io/package/@paddlejs/paddlejs-backend-webgl.md) ^1.2.9

## Recent versions

- 3.0.1 (latest) — 2022-09-21
- 3.0.0 — 2022-09-20

## README

[中文版](./README_cn.md)

# mobilenet

mobilenet model can classify img. It provides simple interfaces to use. You can use your own category model to classify img.

<img src="https://img.shields.io/npm/v/@paddle-js-models/mobilenet?color=success" alt="version"> <img src="https://img.shields.io/bundlephobia/min/@paddle-js-models/mobilenet" alt="size"> <img src="https://img.shields.io/npm/dm/@paddle-js-models/mobilenet?color=orange" alt="downloads"> <img src="https://img.shields.io/npm/dt/@paddle-js-models/mobilenet" alt="downloads">

# Usage

```js
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

mobileNet：https://paddlejs.baidu.com/mobilenet

wine：https://paddlejs.baidu.com/wine

# Performance
<img alt="image" src="https://user-images.githubusercontent.com/43414102/156393394-ab1c9e4d-2960-4fcd-ba22-2072fa9b0e9d.png">

---
_Source: https://npm.io/package/@paddle-js-models/mobilenet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
