How to infer a normal Float model when quantised on STM32CubeMX.
안녕하세요
제목과 같이 관련돼서 문의 합니다.
입력 데이터는 아래와 같고,
Translated to EN:
Hello
I have an enquiry related to the title.
The input data is as below,
// 13 x 15
int new_data[195] = { /* fill with your sensor data */
440, 501, 743, 479, 546, 658, 596, 523, 493, 684, 855, 3, 2,
536, 605, 743, 576, 664, 791, 728, 523, 591, 799, 993, 4, 2,
536, 605, 743, 576, 664, 791, 728, 523, 591, 799, 993, 4, 2,
659, 735, 924, 707, 664, 965, 728, 651, 722, 961, 1184, 4, 2,
659, 735, 924, 707, 827, 965, 901, 651, 722, 961, 1184, 4, 2,
826, 735, 1168, 887, 827, 965, 901, 827, 901, 961, 1446, 4, 2,
826, 920, 1168, 887, 1059, 1198, 1128, 827, 901, 1192, 1446, 5, 2,
826, 920, 1480, 887, 1059, 1198, 1128, 1084, 901, 1192, 1736, 5, 2,
1067, 1174, 1480, 1130, 1395, 1507, 1407, 1084, 1151, 1519, 1736, 4, 2,
1067, 1174, 1480, 1130, 1395, 1507, 1407, 1084, 1151, 1519, 1736, 4, 2,
1413, 1510, 1765, 1443, 1395, 1790, 1663, 1437, 1480, 1778, 1950, 4, 2,
1413, 1510, 1765, 1443, 1686, 1790, 1663, 1437, 1480, 1778, 1950, 4, 2,
1711, 1510, 1996, 1730, 1686, 2009, 1663, 1714, 1746, 1778, 2113, 4, 2,
1711, 1784, 1996, 1730, 1908, 2009, 1573, 1714, 1746, 1970, 2113, 4, 2,
1711, 1784, 1703, 1682, 1908, 2009, 1573, 1921, 1746, 1970, 2242, 4, 2
};
아웃풋은 아래와 같이 0~1사이의 값이 나오게 하는 모델을 만들었습니다.
int acquire_and_process_data(ai_i8* data[])
{
/* fill the inputs of the c-model
for (int idx=0; idx < AI_NETWORK_IN_NUM; idx++ )
{
data[idx] = ....
}
*/
return 0;
}
int post_process(ai_i8* data[])
{
/* process the predictions
for (int idx=0; idx < AI_NETWORK_OUT_NUM; idx++ )
{
data[idx] = ....
}
*/
return 0;
}
