I fine-tune a ResNet50v1 model, but removing last layer and adding
Dense(128, ‘relu’ ) and output layer((number_of_classes), softmax) in TF2.15.1, for target hailo8l.
i had about 87% accuracy.
By converting to TFLITE and quantising model with opt=3, compression=0, without any added pre-processing, i got about 25-30dB in SNR.
The emulator running SDK_FP_OPTIMIZED, i get expected accuracy around 88-89%. But switching to SDK_QUANTIZED, i get accuracy drop down to less than 40%.
i noticed hailo_model_zoo/hailo_model_zoo/cfg/alls/generic/resnet_v1_50.alls at master · hailo-ai/hailo_model_zoo · GitHub, and tried this, but didnt help. and then found hailo_model_zoo/hailo_model_zoo/cfg/alls/hailo8/base/resnet_v1_50.alls at master · hailo-ai/hailo_model_zoo · GitHub which has a lot more parameters and not sure why.
not sure how to debug and resolve this to fix the accuracy . my model does not differ from the one from hailo model zoo.