Files
foliate-js/panel-detection
john-okeefe 5149ab1a88 refactor(detector): improve COCO-SSD model loading and caching
- Add #model private field to cache loaded model instance
- Properly await model.load() before using the model
- Pass cached model to detection function instead of global reference
- Add model cleanup in clear() method to release resources

This prevents redundant model loading and ensures the model is fully
initialized before use, improving performance and reliability of ML-based
panel detection.
2026-04-13 20:14:04 -04:00
..