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
- 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 |
+
}
|