MP Vision Tasks web solutions performance... #5377
Labels
platform:javascript
MediaPipe Javascript issues
task::all
All tasks of MediaPipe
type:performance
Execution Time related
type:support
General questions
Hello,
I recently compiled WASM mediapipe build from the sources publicly available.
It worked fine for ImageSegmentation tasks with CPU SIMD backend. But unfortunately later I realized it cannot be used for GPU inferencing because there are no sources available for GLES30 backend.
So I had to stick to standard task-vision API wasm NPM builds.
But unfortunately standard library is about twice slower than my own compiled wasm module. My own module inferencing time is 4ms, standard library takes 8ms.
I suspect - problem is in multiple sync points between CPU and GPU in standard library with CPU backend. Not sure why standard API implementation always uses texture as an input. During WEB profiling I see it uses glReadPixels within wasm module and it is slow! In my own implementation I never use WebGL if CPU backend is choosed. So why default API uses webgl2 based canvas ?
The text was updated successfully, but these errors were encountered: