Skip to main content
HAlzo
Associate III
February 28, 2020
Solved

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

  • February 28, 2020
  • 1 reply
  • 956 views

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.
    Best answer by fauvarque.daniel

    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

    1 reply

    fauvarque.daniel
    fauvarque.danielBest answer
    ST Employee
    February 28, 2020

    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