You can install vai_q_tensorflow2 in the following two ways:
Install Using Docker Container
Vitis AI provides a Docker container for quantization tools, including vai_q_tensorflow. After running a container, activate the Conda environment vitis-ai-tensorflow2.
conda activate vitis-ai-tensorflow2
Install from Source Code
vai_q_tensorflow2 is a fork of TensorFlow Model Optimization Toolkit. It is open source in Vitis_AI_Quantizer. To build vai_q_tensorflow2, run the following command:
$ sh build.sh
$ pip install pkgs/*.whl