Skip to content
Advertisement

Transfer Learning with Quantization Aware Training using Functional API

I have a model that I am using transfer learning for MobileNetV2 and I’d like to quantize it and compare the accuracy difference against a non-quantized model with transfer learning. However, they do not entirely support recursive quantization, but according to this, this method should quantize my model: https://github.com/tensorflow/model-optimization/issues/377#issuecomment-820948555

What I tried doing was:

JavaScript

It is still giving me the following error:

JavaScript

I’d like to understand what is the correct way to perform quantization-aware-training in this case?

Advertisement

Answer

According to the issue you mentioned, you should quantize each model separately and then bring them together afterwards. Something like this:

JavaScript

It does not look like it is already supported out of the box, even though this is claimed.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement