Update index.js
Browse files
index.js
CHANGED
|
@@ -26,7 +26,7 @@ async function runModel(imageEl) {
|
|
| 26 |
statusParagraph.textContent = "Loading model..."
|
| 27 |
const detector = await pipeline('object-detection', 'Xenova/detr-resnet-50');
|
| 28 |
statusParagraph.textContent = "Analysing ..."
|
| 29 |
-
const output = await detector(imageEl.src, { threshold: 0.
|
| 30 |
statusParagraph.textContent = ""
|
| 31 |
output.forEach(object => {
|
| 32 |
renderBox(object, imageEl)
|
|
|
|
| 26 |
statusParagraph.textContent = "Loading model..."
|
| 27 |
const detector = await pipeline('object-detection', 'Xenova/detr-resnet-50');
|
| 28 |
statusParagraph.textContent = "Analysing ..."
|
| 29 |
+
const output = await detector(imageEl.src, { threshold: 0.9 });
|
| 30 |
statusParagraph.textContent = ""
|
| 31 |
output.forEach(object => {
|
| 32 |
renderBox(object, imageEl)
|