This commit is contained in:
Shohei Ono 2019-11-06 14:14:31 -08:00 коммит произвёл Shohei Ono
Родитель f134d41ec5
Коммит 49be2168e6
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -3,13 +3,13 @@ NPM package for TensorFlow.js models exported from Custom Vision Service
## Install
```sh
npm install customvision-tfjs
npm install @microsoft/customvision-tfjs
```
Or, if you would like to use CDN,
```html
<script src="https://unpkg.com/customvision-tfjs"></script>
<script src="https://unpkg.com/@microsoft/customvision-tfjs"></script>
```
## Usage
@ -20,7 +20,7 @@ Or, if you would like to use CDN,
### Classification
```js
import * as cvstfjs from 'customvision-tfjs';
import * as cvstfjs from '@microsoft/customvision-tfjs';
let model = new cvstfjs.ClassificationModel();
await model.loadModelAsync('model.json');
@ -32,7 +32,7 @@ The result is a 1D-array of probabilities.
### Object Detection
```js
import * as cvstfjs from 'customvision-tfjs';
import * as cvstfjs from '@microsoft/customvision-tfjs';
let model = new cvstfjs.ObjectDetectionModel();
await model.loadModelAsync('model.json');

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "customvision-tfjs",
"name": "@microsoft/customvision-tfjs",
"version": "1.0.1",
"description": "Library for Tensorflow.js models exported from customvision.ai",
"main": "lib/index.js",
@ -42,6 +42,6 @@
},
"repository": {
"type": "git",
"url": "https://github.com/shonohs/customvision-tfjs.git"
"url": "https://github.com/microsoft/customvision-tfjs.git"
}
}