Please install and setup AIMET before proceeding further.
This model was tested with the torch_gpu
variant of AIMET 1.23.
python -m pip install pycocotools
Append the repo location to your PYTHONPATH
with the following:
export PYTHONPATH=$PYTHONPATH:<path to parent of aimet_model_zoo>
Pascal VOC2007 dataset can be downloaded from here:
To run evaluation with QuantSim in AIMET, use the following
python3 aimet_zoo_torch/ssd_mobilenetv2/evaluators/ssd_mobilenetv2_quanteval.py \
--model-config <configuration to be tested> \
--dataset-path <path to the downloaded Pascal dataset, should end in VOCdevkit/VOC2007>
Available model configurations are:
- ssd_mobilenetv2_w8a8
- The original MobileNetV2-SSD-lite checkpoint can be downloaded from here:
- Optimized checkpoint can be downloaded from the Releases.
- Weight quantization: 8 bits, per tensor asymmetric quantization
- Bias parameters are not quantized
- Activation quantization: 8 bits, asymmetric quantization
- Model inputs are quantized
- TF_enhanced was used as quantization scheme
- Cross-layer-Equalization and Adaround have been applied on optimized checkpoint