Closed Afef00 closed 1 year ago
Hi @Afef00 , I can't reproduce the problem. Can you provide input_func.py and dataset files? Thank you.
Hi @Afef00 , Based on the error message, it is inferred that the error is caused by calibration data. Please check the input_func.py and dataset files.
Closing this for now. Please re-open if there are any other concerns. Thanks.
Hello, I was trying to retrain ResNet50 on Iris flower classification to deploy it on ZCU104 borad using PYNQ-DPU. I ran Vitis AI CPU docker container from host using ./docker_run.sh xilinx/vitis-ai-cpu:1.3.411. The notebook runs fine for the training using the following code
After that I freeze the obtained model using this pyhton script:
However when I tried to quantize the frozen model using the following script:
I got the following error:
For the calibration data used I do the following:
np.savez('./calib_data_iris_tf1.npz', data = validation_generator.filenames)