Xenova HF staff commited on
Commit
667d497
1 Parent(s): 0253001

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -10,11 +10,11 @@ const imageContainer = document.getElementById('container');
10
  const example = document.getElementById('example');
11
 
12
  const EXAMPLE_URL = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/city-streets.jpg';
13
- const THRESHOLD = 0.25;
14
 
15
  // Create a new object detection pipeline
16
  status.textContent = 'Loading model...';
17
- const model_id = 'onnx-community/yolov10m';
18
  const processor = await AutoProcessor.from_pretrained(model_id);
19
  const model = await AutoModel.from_pretrained(model_id, { quantized: false });
20
  status.textContent = 'Ready';
 
10
  const example = document.getElementById('example');
11
 
12
  const EXAMPLE_URL = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/city-streets.jpg';
13
+ const THRESHOLD = 0.2;
14
 
15
  // Create a new object detection pipeline
16
  status.textContent = 'Loading model...';
17
+ const model_id = 'onnx-community/yolov10s';
18
  const processor = await AutoProcessor.from_pretrained(model_id);
19
  const model = await AutoModel.from_pretrained(model_id, { quantized: false });
20
  status.textContent = 'Ready';