所有的文件都在如下百度网盘链接
链接:https://pan.baidu.com/s/1tqww...
提取码:ts24
原始模型文件(可选)
见百度网盘中的mobilenet_v2_1.4_224.tflite
矫正集的data.npy和label.npy
见百度网盘中的data.npy和label.npy
NN compiler的cfg文件
见百度网盘中的tflite_mobilenet_v2_run.cfg1
simulator执行的输入输出结果,比较运算量化误差
执行结果见百度网盘中的output_mobilenet_v2.bin
root@a12982ec3bef:~/demos/tflite# python3 quant_predict.py
predict first 5 label:
index 251, prob 8, name: Siberian husky
index 553, prob 7, name: feather boa, boa
index 85, prob 6, name: peacock
index 912, prob 4, name: wool, woolen, woollen
index 283, prob 4, name: tiger cat
true first 5 label:
index 232, prob 83, name: collie
index 231, prob 83, name: Shetland sheepdog, Shetland sheep dog, Shetland
index 158, prob 41, name: papillon
index 170, prob 40, name: borzoi, Russian wolfhound
index 161, prob 39, name: Afghan hound, Afghan
Detect picture save to result.jpeg