google / google/qkeras

Error during Quantizing MobileNetV2

Open
#57 1 comment 0 reactions 2 assignees Claimed by @lishanok View on GitHub
Dominant language
Python
Stars
584
Forks
108
PR merge metrics
No merged PRs in 30d

Description

I am trying to quantize MobilnetV2 using 4-bit width, but when I run print_qstats(model), I am getting an error "A merge layer should be called on a list of inputs"
![Capture2](https://user-images.githubusercontent.com/52251442/100505132-fc0ef600-316c-11eb-8a55-6417601d9f4b.PNG)

Additionally, is there a way to implement Relu6 from Qkeras? I am also trying to implement 2-bit Quantization model in the same architecture, and the accuracy is very low ( fluctuating between 15-20% accuracy). I was wondering if you have any tips for full 2 bit quantization model. I have for now been using "QConv2D(kernel_quantizer=quantized_bits(2,2),
bias_quantizer=quantized_po2(2))" with respective activation functions and Batchnormalization

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.