Converting onnx model to tflite micro, FastestDet.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Converting onnx model to tflite micro, FastestDet.

679 Views
SungWonJung
Contributor I

Hi, I’m working on an object detection project using one of the models from the NXP eIQ Model Zoo, specifically FastestDet. I’ve trained the model on my own dataset and successfully exported it to ONNX format using the official FastestDet GitHub repository.

Now, I’d like to convert the ONNX model to TFLite format, similar to how the dperson_shufflenetv2.tflite model is provided in the eIQ Model Zoo. However, I couldn’t find any clear guidance on how to structure or convert FastestDet to TFLite properly for use with eIQ.

In the case of NanoDet, there is a recipe.sh script and other well-organized resources in the eIQ Model Zoo to assist with conversion and deployment. Is there anything similar available for FastestDet — like a recipe script, conversion guide, or example configuration? I’d really appreciate any help or recommendations. Thank you!

0 Kudos
Reply
3 Replies

644 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @SungWonJung 

Please install eIQ tool and convert onnx to tflite.

Best Regards,
Zhiming

0 Kudos
Reply

588 Views
SungWonJung
Contributor I

Thank you for your response.

I trained a model using my own dataset by following the official FastestDet GitHub repository.

However, when I tried to convert the trained model using the eIQ Toolkit, I noticed that operations like RELU6 and NHWC input shape (i.e., proper Transpose) were not applied.

In this case, do I need to manually modify the model architecture (e.g., replace ReLU with ReLU6, adjust layout to NHWC) before conversion?

 

0 Kudos
Reply

569 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @SungWonJung 

In this case, the model needs to be adjusted about RELU6 and NHWC.

Best Regards,
Zhiming

0 Kudos
Reply