Update README.md
Browse files
README.md
CHANGED
|
@@ -20,6 +20,6 @@ import { pipeline } from '@huggingface/transformers';
|
|
| 20 |
const detector = await pipeline('object-detection', 'onnx-community/rfdetr_small-ONNX');
|
| 21 |
|
| 22 |
const img = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
|
| 23 |
-
const output = await detector(img, { threshold: 0.
|
| 24 |
console.log(output);
|
| 25 |
```
|
|
|
|
| 20 |
const detector = await pipeline('object-detection', 'onnx-community/rfdetr_small-ONNX');
|
| 21 |
|
| 22 |
const img = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
|
| 23 |
+
const output = await detector(img, { threshold: 0.75 });
|
| 24 |
console.log(output);
|
| 25 |
```
|