Skip to content
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

Use for audio models #9

Closed
manena opened this issue Mar 16, 2020 · 3 comments
Closed

Use for audio models #9

manena opened this issue Mar 16, 2020 · 3 comments

Comments

@manena
Copy link

manena commented Mar 16, 2020

Hello, this is a great project! thanks!
I don't have a lot of experience on deep learning. I would like to use a tflite speech command recognition model I downloaded with your example project, but I'm having trouble with the input shape.

I've been trying different things and I sometimes get:

  • That the input must be an array of primitives
  • TensorFlowLite operation failed
  • Sometimes it just crashes and unity closes.

Have you tried any audio model on your project? Is there a known issue with it?

Any clue that helps me fix it will be more than welcome!

@manena
Copy link
Author

manena commented Mar 16, 2020

The problem seems to be when calling TfLiteTensorCopyFromBuffer in the SetInputTensorData method.

Thanks in advance

@asus4
Copy link
Owner

asus4 commented Mar 17, 2020

I've never tried any audio models with Unity. In general

  • Use CPU mode, not GPU
  • Please check whether the input type is correct. float array or quantized int16 array. Failed TensorflowLite Operation #7 this thread might be your help :)

@manena
Copy link
Author

manena commented Mar 25, 2020

Netron was very useful! Thanks a lot for your prompt answer!

@asus4 asus4 closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants