Towards Lower Precision Quantization for Pedestrian Detection in Crowded Scenario

Mickael Cormier, Dmitrii Seletkov, J. Beyerer
{"title":"Towards Lower Precision Quantization for Pedestrian Detection in Crowded Scenario","authors":"Mickael Cormier, Dmitrii Seletkov, J. Beyerer","doi":"10.1109/EUROCON52738.2021.9535539","DOIUrl":null,"url":null,"abstract":"Automatic pedestrian detection in real-world un-cooperative scenarios is a well-known problem in computer vision, which has again gained in visibility last year due to distancing requirements. This remains a very challenging task, especially in crowded areas. Due to diverse technical and privacy issues, embedded systems such as smart cameras and smaller drones are becoming ubiquitous. Those complex detection models are not designed for on-edge processing in resource-constrained environments. Therefore, quantization techniques are required, in order to reduce the weights of a model to low-precision and not only effectively compress the model, but also allow to use low bitwidth arithmetic, which in term can be accelerated from specialized hardware. However, using an effective quantization scheme while maintaining accuracy is challenging. In this work we first establish a Quantization-aware training (QAT) and Post-training Quantization (PTQ) baseline for 8-bit uniform quantization to RetinaNet for person detection on the extremely challenging PANDA dataset. Those achieve near lossless performance in terms of accuracy by about 5× speed-up of the CPU inference and 4× model size reduction for 8-bit PTQ quantized model. Further experiments with aggressive quantization scheme in 4- and 2-bit show diverse challenges resulting in severe instabilities. We apply both uniform and non-uniform quantization to overcome those and provide insights and strategies to fully quantize in 4- and 2-bit. Through this process we systematically evaluate the sensibility of individual parts of RetinaNet for quantization in very low precision. Finally, we show the resistance of quantization for limited amount of data.","PeriodicalId":328338,"journal":{"name":"IEEE EUROCON 2021 - 19th International Conference on Smart Technologies","volume":"5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-07-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE EUROCON 2021 - 19th International Conference on Smart Technologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/EUROCON52738.2021.9535539","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Automatic pedestrian detection in real-world un-cooperative scenarios is a well-known problem in computer vision, which has again gained in visibility last year due to distancing requirements. This remains a very challenging task, especially in crowded areas. Due to diverse technical and privacy issues, embedded systems such as smart cameras and smaller drones are becoming ubiquitous. Those complex detection models are not designed for on-edge processing in resource-constrained environments. Therefore, quantization techniques are required, in order to reduce the weights of a model to low-precision and not only effectively compress the model, but also allow to use low bitwidth arithmetic, which in term can be accelerated from specialized hardware. However, using an effective quantization scheme while maintaining accuracy is challenging. In this work we first establish a Quantization-aware training (QAT) and Post-training Quantization (PTQ) baseline for 8-bit uniform quantization to RetinaNet for person detection on the extremely challenging PANDA dataset. Those achieve near lossless performance in terms of accuracy by about 5× speed-up of the CPU inference and 4× model size reduction for 8-bit PTQ quantized model. Further experiments with aggressive quantization scheme in 4- and 2-bit show diverse challenges resulting in severe instabilities. We apply both uniform and non-uniform quantization to overcome those and provide insights and strategies to fully quantize in 4- and 2-bit. Through this process we systematically evaluate the sensibility of individual parts of RetinaNet for quantization in very low precision. Finally, we show the resistance of quantization for limited amount of data.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
面向低精度量化的拥挤行人检测
现实世界中非合作场景下的行人自动检测是计算机视觉中一个众所周知的问题,由于距离要求,该问题在去年再次获得了关注。这仍然是一项非常具有挑战性的任务,特别是在人口密集的地区。由于各种技术和隐私问题,智能相机和小型无人机等嵌入式系统正变得无处不在。这些复杂的检测模型不是为资源受限环境中的边缘处理而设计的。因此,需要量化技术,将模型的权重降低到低精度,不仅可以有效地压缩模型,还可以使用低位宽算法,这在一定程度上可以从专门的硬件加速。然而,在保持精度的同时使用有效的量化方案是具有挑战性的。在这项工作中,我们首先建立了量化感知训练(QAT)和训练后量化(PTQ)基线,用于在极具挑战性的PANDA数据集上对RetinaNet进行8位均匀量化,用于人员检测。对于8位PTQ量化模型,它们通过大约5倍的CPU推理速度和4倍的模型尺寸减小来实现接近无损的精度性能。对4位和2位主动量化方案的进一步实验表明,各种挑战导致严重的不稳定性。我们应用均匀和非均匀量化来克服这些问题,并提供在4位和2位完全量化的见解和策略。通过这个过程,我们系统地评估了retanet的各个部分在极低精度下量化的敏感性。最后,我们展示了量化在有限数据量下的阻力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Analysis of Exact and Approximating Dependences of the Active Resistance of Conductor on the Frequency of Current Under the Action of Skin Effect Efficient Pre-BPF based Sigma Delta Radio over Fiber System for 5G NR Fronthauls An Object-Oriented Verification Technique of FPGA-based Adjustment Systems for Video Graphics Accelerators Estimation of Mechanical Parameters and Tidal Current Velocity for a Tidal Turbine Test Driven Development in Action: Case Study of a Cross-Platform Web Application
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1