asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity
834 stars 249 forks source link

Google Teachable Machine incompatibility #252

Closed Pacarius closed 1 year ago

Pacarius commented 1 year ago

Hi, I'm trying to use your sample to create a project, but it seems that the project has troubles running. Would you be able to help with this issue? Thanks in advance.

Stroke model_unquant.zip

asus4 commented 1 year ago

@Pacarius The input type of the model exported from the Teachable Machine is float32. The SSD example in this repo accepts sbyte type. Screenshot 2022-10-27 at 12 27 39

You can modify the input type here ↓

https://github.com/asus4/tf-lite-unity-sample/blob/66985ac9836565b23e61c104f2fd589b748fab6a/Assets/Samples/SSD/SSD.cs#L9

Note: your model might be an "Object classification" model. There are no examples available for object classification in this repo. I hope to add samples when I have time, but for now, you will have to provide your own.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.