-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn build:tflite fails #65
Comments
I'm currently trying to fix the build. I managed to pass the Python error but now there are other errors popping related XNNPACK. This is a tedious investigation and I won't have a lot of time to spend on it. So perhaps could you also experiment on a fork on your own. Also now that there are other builds of tflite in tfjs and mediapipe repositories (see #38), have you considered trying to switch to them? |
I followed the most recent implementation of MediaPipe's image segmenter using the multi-segment model as it is the most accurate. However, the ImageSegmenter uses RequestAnimationFrame which freeze the stream transferred over WebRTC when changing tab so I need to do my own implementation similar to this repository which uses WebWorker and setTimeout. I'll try to fix the XNNPACK issue. I'll report back if I find anything. Thank you for taking time answering |
Have tou tried using https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback instead of rAF ? |
Inside of vision_wasm_internal, requestAnimationFrame is used. I don't think MediaPipe provide the C++ files from which vision_wasm_internal was compiled.
Therefore I may be able to make it work with my implementation if I try using a web worker + setTimeout similar to this demo. I thought I was done for because requestAnimationFrame was inside of vision_wasm_internal but I may have been looking at the wrong place. I'll try and report back if I find anything |
I replaced requestVideoFrameCallback by setTimeout, added timerWorker.ts, added timerHelper and it worked! Thanks again for pointing that out saghul and for your time Volcomix. -- videoFrameCallbackHandle = video.requestVideoFrameCallback(render); If anybody is interested I could do a fork / branch where I implement vision_wasm_internal and MultiSegment model with ImageSegmenter into this demo. |
Err, should I re-open the issue since it is related to yarn build:tflite though? |
I would be interested in having that fork :) |
Kk I will work on it this weekend and report back. May take 2 weeks though. |
I need to update the size of modelBuffer to use a bigger model of MediaPipe (MultiSegmentation).
I'm executing yarn build:tflite but it fails with the following error:
Do you have an idea what could cause the issue?
The text was updated successfully, but these errors were encountered: