mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

A functionality to cache the Wasm runtime and create a new FaceLandmarker, for example with an indexed database or other solution

Open dfbq91 opened this issue 1 year ago • 1 comments

MediaPipe Solution (you are using)

FaceLandmark

Programming language

Javascript

Are you willing to contribute it

None

Describe the feature and the current behaviour/state

I have read the documentation and have not found any way to make the model load faster, or in other words, avoid the execution of FaceLandmarker.createFromOptions in such a way that the two requests (wasm and .task file) are not made to load the model after it was already made once. I have previously achieved it with tensorflow's .save which makes use of indexedDb. I have tried to do it in mediapipe's facelandmark but it is not possible, given the structure of the FaceLandmarker.createFromOptions response. Is there currently a solution for this or is it possible to consider it as a new feature? Thank you so much.

Will this change the current API? How?

No response

Who will benefit with this feature?

Users who use the application again, obtaining faster loading.

Please specify the use cases for this feature

Improved user experience

Any Other info

No response

dfbq91 avatar Feb 15 '24 21:02 dfbq91

Supporting loading and saving models from IndexedDB paths, similar to TensorFlow.js's loadGraphModel and save methods, would enhance the user experience for web applications.

satorioh avatar Jun 13 '24 08:06 satorioh