Unity-Technologies / barracuda-release

Other
562 stars 77 forks source link

Tensorflow model to Barracuda or Onnx #41

Closed JonasX99 closed 4 years ago

JonasX99 commented 4 years ago

I would like to know if it would be possible to get a Teachable Machine model into Unity and use it with Barracuda Currently I have tried to convert a Tensorflow model with tensorflow_to_barracuda.py which I get this error: google.protobuf.message.DecodeError: Error parsing message

I have also tried to convert the model with the tf2onnxt but when I have successfully convert the model and import it the model has warnings

also when I import any model of my own the camera is responding every second

-Unity version 2020.1 -Barracuda version have tried with 0.4.0 and 0.6.3

Hope Teachable Machine models is possible to use since it's fast and easy for the project i am working on

AlexRibard commented 4 years ago

Hi @JonasX99 ! I am assuming that the models are generic image recognition models. It should be possible to import them into Barracuda, albeit if you can export them to ONNX or TF format.

Thanks!

JonasX99 commented 4 years ago

This is the model I fixed the problem with it only responding every second by downgrading to Unity 2019 instead of 2020