Hello Xu Zhang,
thanks for your help. I was able to swap the model using your template project "frdmmcxn947_tflm_label_image". So, I wanted to go one step further using your template project "frdmmcxn947_mpp_camera_mobilenet_view_tflm".
- I have downloaded the dataset 60'000 images for handwritten digits, inverted the colors (black text, white background), resized to 128x128 and trained the model with eIQ. The validation results for digits 0-9 are above 95%.
- Afterwards I have tested this model successfully on a PC with a webcam.
- Then according to your instruction I have converted the model for Neutron which then should fit to frdmmcxn947 using NPU
Unfortunately I am stuck here because with 947 board the inference result is not accurate at all. I am attaching here a github link, hopefully you can have a look there why it is not working:
https://github.com/SherlockLun/frdmmcxn947_mpp_camera_mnist_view
git@github.com:SherlockLun/frdmmcxn947_mpp_camera_mnist_view.git
changed folder:
- models/mnistInverted128... (added)
- models/mobilenetv1_labels.h (digits 0-9)
- models/mobilenetv1_ops_micro_tflite.cpp
- camera_mobilenet_view.c (include file)
- fsl_ov7670.c (changing brightness/contrast within GetDefaultconfig)