ZeroQ
ZeroQ copied to clipboard
[CVPR'20] ZeroQ: A Novel Zero Shot Quantization Framework
new_quant_x = linear_quantize(x, scale, zero_point, inplace=False) n = 2**(k - 1) new_quant_x = torch.clamp(new_quant_x, -n, n - 1) quant_x = linear_dequantize(new_quant_x, scale, zero_point, inplace=False) Doesn't this get the weight of...
I've used the pytorch official resnet50 (https://pytorch.org/docs/stable/torchvision/models.html) in your ZeroQ, and it only gives 75.85 (full precision is 76.13) All I do is change the model loading line in uniform_test.py...
感谢您的杰出工作,有一个小问题想问下: 在distill_data.py中:  87行代码,hook提取到的特征都是卷积后的值,但这种做法是不是默认了卷积后一定是BN? 如果一个网络存在某些conv后没有加BN,那么此时计算论文中公式3,可能是“不同层的两个BN参数间的计算” 感谢~
When I use ImageNet Val dataset to calibrate 4bit resnet18, I got a result of 8.77%, while the distilled data could reach 20%. So original data is not perfect to...
Just observed that the backpropagation part for the quantized model has not been implemented yet in the quant_utils.py file. Any ideas on how to approach the implementation?
Great job, you give the best quantization accuracy as I know. I'm very interested in your paper and code, but I have some issue about this paper. As far as...
Hi, I have a question for training the quantized SSD detector. It seems there is no script to run training. How can I train the quantized detector using this framework?...
How to export the quantized model into pth file?
Thanks for your great works. I want to know which layers are more sensitive to quantization. I would be very grateful if you can share the (MP4) bit-width of each...