lgonda1998 commited on
Commit
f15e947
·
verified ·
1 Parent(s): b868d85

Fix object detection model compatibility

Browse files

- Remove incompatible generic pipeline entries for Faster R-CNN and YOLOv8n
- Retain RT-DETR R18 as the browser-compatible detector
- Add object-detection inference handling
- Use a 0.25 detection threshold
- Update interface language for classification and detection
- Increment the app.js cache version

Files changed (1) hide show
  1. classifier.js +1 -1
classifier.js CHANGED
@@ -95,4 +95,4 @@ export async function classifyImage(imageDataUrl, options = {}) {
95
  return [...predictions]
96
  .sort((a, b) => Number(b.score) - Number(a.score))
97
  .slice(0, topK);
98
- }
 
95
  return [...predictions]
96
  .sort((a, b) => Number(b.score) - Number(a.score))
97
  .slice(0, topK);
98
+ }