Skip to content

Setting up Windows 10

laurentopia edited this page Jun 7, 2019 · 9 revisions

Setup for training

pip is a nightmare to use so instead use conda, it's fully automated and cpu inference is over 10x faster. https://towardsdatascience.com/tensorflow-gpu-installation-made-easy-use-conda-instead-of-pip-52e5249374bc

The summary:

IDE and traing are now working. After all that, you restart and from that point onwards you won't have to launch code from conda prompt.

Convert .h5 to .kmodel

  • download and extract the latest windows build https://github.com/kendryte/nncase/releases/ in a directory ./ncc
  • open a conda prompt and launch 'tflite_convert --keras_model_file .\avoidance.h5 --output_file .\avoidance.tflite' then .\ncc\ncc.exe -i tflite -o k210model --dataset .\training avoidance.tflite .\avoidance.kmodel

Clone this wiki locally