If you have scripts to evaluate floating point models, like the models in Vitis AI Model Zoo, apply the following two changes to evaluate the quantized model:
- Prepend the float evaluation script with
import vai_q_tensorflow. - Replace the float model path in the scripts to quantization
output model
"quantize_results/quantize_eval_model.pb". - Run the modified script to evaluate the quantized model.