Update README.md
Browse files
README.md
CHANGED
@@ -8,14 +8,14 @@ https://huggingface.co/depth-anything/Depth-Anything-V2-Base with ONNX weights t
|
|
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 w/ `onnx-community/depth-anything-v2-base`.
|
17 |
```js
|
18 |
-
import { pipeline } from '@
|
19 |
|
20 |
// Create depth estimation pipeline
|
21 |
const depth_estimator = await pipeline('depth-estimation', 'onnx-community/depth-anything-v2-base');
|
|
|
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 w/ `onnx-community/depth-anything-v2-base`.
|
17 |
```js
|
18 |
+
import { pipeline } from '@huggingface/transformers';
|
19 |
|
20 |
// Create depth estimation pipeline
|
21 |
const depth_estimator = await pipeline('depth-estimation', 'onnx-community/depth-anything-v2-base');
|