How to replace person_detection with a custom network

Can you provide me a guide or some hints to replace the person detection in FW? I would like to use my own custom .tflite network.
I saw that I should work on the files in src/libtf/ folder, but I am not sure how.

Thank you.


You just need to turn your .tflite file into a C source/header file using xxd(1): make hexdump/do reverse - Linux man page,

Once you do that, edit the Make file to include your new c file and then the top level make file to include the new .o object, then finally, edit py_tf.c in src/omv/py to reference the new model and edit the string name of the network.