Skip to main content
HAlzo
Associate III
Feb 28, 2020 10:41 AM UTC
Solved

Is .json model required by Cube-AI in addition to h5 model?

Hello

In UM2526 User manual "Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI)"

I found the following section

0690X00000DXWKQQA5.png

I think that .h5 model is enough for Cube-AI to generate model in C code for STM32, or should I include .json file as well?

Best Regards

Hossam Alzomor

    This topic has been closed for replies.
    fauvarque.daniel
    fauvarque.danielBest answer
    ST Employee
    Feb 28, 2020 11:03 AM UTC

    When you have a float model you only give the .h5.

    The .json file is an output file of the quantization process, if you select in the UI Keras Quantized model you need to provide the .json file that will tell the tool how to transform the floating point information into quantized values.

    Regards

    Daniel

    ​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

    1 reply

    fauvarque.daniel
    fauvarque.danielBest answer
    ST Employee
    Feb 28, 2020 11:03 AM UTC

    When you have a float model you only give the .h5.

    The .json file is an output file of the quantization process, if you select in the UI Keras Quantized model you need to provide the .json file that will tell the tool how to transform the floating point information into quantized values.

    Regards

    Daniel

    ​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.