Update README.md
Browse files
README.md
CHANGED
@@ -14,18 +14,18 @@ If you haven't already, you can install the [Transformers.js](https://huggingfac
|
|
14 |
npm i @xenova/transformers
|
15 |
```
|
16 |
|
17 |
-
**Example:** Perform object-detection with `Xenova/yolov9-
|
18 |
|
19 |
```js
|
20 |
import { AutoModel, AutoProcessor, RawImage } from '@xenova/transformers';
|
21 |
|
22 |
// Load model
|
23 |
-
const model = await AutoModel.from_pretrained('Xenova/yolov9-
|
24 |
// quantized: false, // (Optional) Use unquantized version.
|
25 |
})
|
26 |
|
27 |
// Load processor
|
28 |
-
const processor = await AutoProcessor.from_pretrained('Xenova/yolov9-
|
29 |
// processor.feature_extractor.size = { shortest_edge: 128 } // (Optional) Update resize value
|
30 |
|
31 |
// Read image and run processor
|
|
|
14 |
npm i @xenova/transformers
|
15 |
```
|
16 |
|
17 |
+
**Example:** Perform object-detection with `Xenova/yolov9-e_all`.
|
18 |
|
19 |
```js
|
20 |
import { AutoModel, AutoProcessor, RawImage } from '@xenova/transformers';
|
21 |
|
22 |
// Load model
|
23 |
+
const model = await AutoModel.from_pretrained('Xenova/yolov9-e_all', {
|
24 |
// quantized: false, // (Optional) Use unquantized version.
|
25 |
})
|
26 |
|
27 |
// Load processor
|
28 |
+
const processor = await AutoProcessor.from_pretrained('Xenova/yolov9-e_all');
|
29 |
// processor.feature_extractor.size = { shortest_edge: 128 } // (Optional) Update resize value
|
30 |
|
31 |
// Read image and run processor
|