Closed josephrocca closed 3 years ago
just a thought, tfjs-tflite@0.0.1-alpha.4
npm package is 3 months old which tfjs
has went through quite a lot of changes since then - can you try with tflite
built from main?
i got a lot of errors with both tfjs-tflite
and tfjs-backend-webgpu
using old alpha builds, quite a few resolved after a fresh build.
I agree , there is a older version on npm, requesting @jinjingforever for pushing newer version to npm.Thank you
Thank you guys for investigation. Actually tfjs-tflite@0.0.1-alpha.4 is indeed the latest version. The errors shown here are from the tflite c++ runtime. It is likely that the model is not working well with XNNPACK that tflite is using. I will do more digging with the tflite team and report back if I have anything. Thank you!
Hi, I just published a new version of the tfjs-tflite
package (0.0.1-alpha.6) which should fix this problem. See this demo. The model is a little bit slow but it works:) It might get a bit faster if you set up your server for cross-origin isolation (codepen doesn't support it unfortunately).
Thanks!
Thank you!
System information
The following code fails with a bunch of errors:
...