tanakamasayuki / Arduino_TensorFlowLite_ESP32

Allows you to run machine learning models locally on your ESP32 device.
Apache License 2.0
233 stars 49 forks source link

Training a model for microspeech example #1

Open Yogi3898 opened 4 years ago

Yogi3898 commented 4 years ago

Hii,

I tried the microspeech example on esp32, It is working with the default model file but when I change the model file it doesn't run, So can you let me know how to train a custom model for microspeech example. I'm stuck in this since few weeks, So please help to solve this issue.

thank you

tanakamasayuki commented 4 years ago

Hi!

This library is version 2.1.1.

https://github.com/tensorflow/tensorflow/tree/v2.1.1/tensorflow/lite/experimental/micro/examples/micro_speech

The above is the explanation page.

Yogi3898 commented 4 years ago

Hii,

This library is using an outdated version of Tensorflow tf-nightly-gpu==1.15.0.dev20190729, which is removed from the source. So I'm not able to train a model for this example.

On Fri, Jul 17, 2020 at 2:12 PM TANAKA Masayuki notifications@github.com wrote:

Hi!

This library is version 2.1.1.

https://github.com/tensorflow/tensorflow/tree/v2.1.1/tensorflow/lite/experimental/micro/examples/micro_speech

The above is the explanation page.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tanakamasayuki/Arduino_TensorFlowLite_ESP32/issues/1#issuecomment-659965608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLR7P3PEFTG43G3GWC5KX3R4AFGFANCNFSM4O5ZEDDQ .

--

Yogesh Modi

Final Year undergraduate, Electronics and Communication Engineering,

The LNM Institute of Information Technology, Jaipur

Contact: 9784877567


https://www.facebook.com/yogesh.modi.3760 https://www.instagram.com/yogeshmodi4378/ https://linkedin.com/in/yogesh-modi3898/ https://github.com/Yogi3898

tanakamasayuki commented 4 years ago

https://github.com/tensorflow/tensorflow/issues/37317

Does this ticket help?

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/micro/examples/micro_speech/train

The latest version does not seem to support local machines.

Yogi3898 commented 4 years ago

I tried the same github repo to train the model you mentioned, but the model produced by this script doesn't work with the example. So can we do some changes in the library to support the current tensorflow version?

On Fri, Jul 17, 2020 at 3:36 PM TANAKA Masayuki notifications@github.com wrote:

tensorflow/tensorflow#37317 https://github.com/tensorflow/tensorflow/issues/37317

Does this ticket help?

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/micro/examples/micro_speech/train

The latest version does not seem to support local machines.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tanakamasayuki/Arduino_TensorFlowLite_ESP32/issues/1#issuecomment-660013327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLR7P4EDMVWCA2SFZGY3KTR4APATANCNFSM4O5ZEDDQ .

--

Yogesh Modi

Final Year undergraduate, Electronics and Communication Engineering,

The LNM Institute of Information Technology, Jaipur

Contact: 9784877567


https://www.facebook.com/yogesh.modi.3760 https://www.instagram.com/yogeshmodi4378/ https://linkedin.com/in/yogesh-modi3898/ https://github.com/Yogi3898

tanakamasayuki commented 4 years ago

TensorFlow and TensorFlowLite are different products. TensorFlow models are not available in TensorFlowLite.