I am using the following command at,
.../neural-compressor/examples/pytorch/image_recognition/torchvision_models/quantization/ptq/cpu/ipex/
python main.py -t --ipex -a mobilenet_v2 --pretrained /data/ssd/datasets/ilsvrc/2012/data-folders/val/
But I am getting almost 0% accuracy with quantization. If I use -a resnet18, I get quantization accuracy close to float, so setup and other dataset related paths seems to be fine.
Do I have to change anything else for mobilenet_v2?
Sorry for the late reply, ResNet18/Mobilenet_v2 should not support ipex yet, we will remove the example to avoid confusion. And the other 2 model(ResNet50 /ResNext101_32x16d ) in this page have been supported.
I am using the following command at, .../neural-compressor/examples/pytorch/image_recognition/torchvision_models/quantization/ptq/cpu/ipex/ python main.py -t --ipex -a mobilenet_v2 --pretrained /data/ssd/datasets/ilsvrc/2012/data-folders/val/
But I am getting almost 0% accuracy with quantization. If I use -a resnet18, I get quantization accuracy close to float, so setup and other dataset related paths seems to be fine. Do I have to change anything else for mobilenet_v2?