Update README.md
Browse files
README.md
CHANGED
@@ -8,15 +8,15 @@ https://huggingface.co/LiheYoung/depth-anything-small-hf with ONNX weights to be
|
|
8 |
|
9 |
## Usage (Transformers.js)
|
10 |
|
11 |
-
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@
|
12 |
```bash
|
13 |
-
npm i @
|
14 |
```
|
15 |
|
16 |
**Example:** Depth estimation with `Xenova/depth-anything-small-hf`.
|
17 |
|
18 |
```js
|
19 |
-
import { pipeline } from '@
|
20 |
|
21 |
// Create depth-estimation pipeline
|
22 |
const depth_estimator = await pipeline('depth-estimation', 'Xenova/depth-anything-small-hf');
|
|
|
8 |
|
9 |
## Usage (Transformers.js)
|
10 |
|
11 |
+
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
|
12 |
```bash
|
13 |
+
npm i @huggingface/transformers
|
14 |
```
|
15 |
|
16 |
**Example:** Depth estimation with `Xenova/depth-anything-small-hf`.
|
17 |
|
18 |
```js
|
19 |
+
import { pipeline } from '@huggingface/transformers';
|
20 |
|
21 |
// Create depth-estimation pipeline
|
22 |
const depth_estimator = await pipeline('depth-estimation', 'Xenova/depth-anything-small-hf');
|