Based on the error message it seems you might be passing the wrong input shape.
Is this error specific to the quantization module, i.e. is it running fine without quantization?
Could you try to resize the image array to the expected shape?