Using my own mnist trained weights with mbed os example

|||Using my own mnist trained weights with mbed os example
Using my own mnist trained weights with mbed os example2019-05-20T15:58:39+00:00
Viewing 3 reply threads
  • Author
    Posts
    • Joris QuerryJoris Querry
      Participant
      Post count: 7

      Hi,

      I’v been training the mnist example from ~/gap_sdk/tf2gap8/examples/mnist

      The result is a bunch of files into ~/gap_sdk/tf2gap8/examples/mnist/data

      Then I used the ~/gap_sdk/tf2gap8/tf2gap8/tf2gap8.py script which results in another bunch of files into : ~gap_sdk/tf2gap8/examples/mnist/data/GAP8Code

      Now, I would like to use these files within the gapuino, like in the ~/gap_sdk/examples/mbed-examples/test_autotiler/Mnist/MnistCoeffs.def example.

      But I don’t find a direct way to convert/edit/copy my files.

      Do you have any tutorial on this point ?

      Best regards,

      Joris

    • Joel CamboniJoel Camboni
      Participant
      Post count: 3

      Hi Joris,

      The tf2gap8.py script is launched by the make file.
      After training (that generates the files in the ./data directory), you have to do “make clean all run” in the examples/mnist directory.
      The weights and bias will be generated in the GAP8Code/weight_bias.c file.
      The generated code will be compiled and executed on the Gapuino board.
      We will post a more detailed documentation on the flow very soon.

      please keep me posted of your progress.
      best regards

    • Joris QuerryJoris Querry
      Participant
      Post count: 7

      Hi Joël,

      Do you have some news about the documentation for the flow training ?

      Best regards,

      Joris

    • Joris QuerryJoris Querry
      Participant
      Post count: 7

      Hi again,

      I just found this documentation readme :
      https://github.com/GreenWaves-Technologies/gap8_docs/blob/92149e6320ce972f1044bbb9e1badae8a8185a55/tf2gap8/mainpage.md

      You should had a link to it on the tf2gap8 github page ! 🙂

      Joris

Viewing 3 reply threads
  • You must be logged in to reply to this topic.