Issue with Converting H5 Model for IMX95 NPU Deployment

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Issue with Converting H5 Model for IMX95 NPU Deployment

770 次查看
varshilg
Contributor II

Dear NXP Support Team,

I am encountering an issue with deploying my custom model on the IMX95 NPU board. My model is currently in H5 format. I used the EIQ Portal to convert the H5 model to TFLite format, and then utilized the Neutron Converter for deployment. However, I am receiving an error indicating that the H5 format is not supported.

According to the user guide, H5 format should be supported as input. I have attached my model file for your review.

Could you please help me identify the cause of this issue and advise on the appropriate steps to resolve it?

Thank you for your assistance.

 

image.png

0 项奖励
回复
3 回复数

736 次查看
varshilg
Contributor II

Hi @Chavira ,

I followed your steps and got below error.

undefined.jpgundefined.pngundefined (1).jpgundefined (2).jpgundefined (1).png

0 项奖励
回复

680 次查看
Chavira
NXP TechSupport
NXP TechSupport

HI @varshilg!

I am not sure if the script in eIQ has some error but you can try converting your model using the Python API and then convert the tflite model to Neutron model.

 

 

0 项奖励
回复

745 次查看
Chavira
NXP TechSupport
NXP TechSupport

HI @varshilg!

Thank you for contacting NXP Support!

 

To convert your model h5 to tflite for TensorFlow Lite for Neutron you have to convert to tflite first .

 

With your labels in .txt format and other data according to your model you should be able to convert your model to a tflite format and then you can convert from tflite to tflite for Neutron

 

Chavira_0-1746105869315.png

Chavira_1-1746106115913.png

 

Chavira_2-1746106162613.png

 

Best Regards!

Chavira

0 项奖励
回复