perborgen commited on
Commit
e36d8aa
·
1 Parent(s): c7a8428

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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.5 });
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)