適用於邊際運算之高效率暨輕量化物件偵測技術
Efficient and Light-Weight Object Detection Techniques for Edge Computing
摘要
近年來,深度學習蓬勃發展,為能在各種複雜的資料上追求高準確度,使得深度學習模型越來越笨重,然而這也成為實際應用上經常遇到的瓶頸。例如許多應用場景希望在邊界設備上就能進行圖像預測之類的工作,以避免圖片傳輸並達到降低網路傳輸成本與時間成本之效益。因此,在邊際運算應用上模型的輕量化與效率便顯得益加重要。
本研究利用模型壓縮技術將物件偵測模型進行壓縮,使模型輕量且推理更快速,並 維持相對高的精度,讓物件偵測模型能夠在邊際運算機器上發揮更大的效用。我們採 用高效率的物件偵測模型- YOLOv3 作為基礎模型,並搭配模型壓縮中的模型剪枝技 術,最終壓縮的模型可在邊際運算機器Nvidia Tx2 進行串流預測。
本研究所提出的方法能在簡單的參數設定下,將物件偵測模型快速壓縮到我們指定 的壓縮率。我們以內視鏡的腫瘤資料分析做為實驗案例,實驗結果顯示我們的方法能 將YOLOv3 模型參數降低9 倍、GLOPs 降低7.5 倍、GPU 速度提升1.8 倍,在邊際 運算模組Nvidia Tx2 上可以達到3 倍的加速,而精度的下降只有1 ∼ 2%,維持高準確 度之需求。
本研究利用模型壓縮技術將物件偵測模型進行壓縮,使模型輕量且推理更快速,並 維持相對高的精度,讓物件偵測模型能夠在邊際運算機器上發揮更大的效用。我們採 用高效率的物件偵測模型- YOLOv3 作為基礎模型,並搭配模型壓縮中的模型剪枝技 術,最終壓縮的模型可在邊際運算機器Nvidia Tx2 進行串流預測。
本研究所提出的方法能在簡單的參數設定下,將物件偵測模型快速壓縮到我們指定 的壓縮率。我們以內視鏡的腫瘤資料分析做為實驗案例,實驗結果顯示我們的方法能 將YOLOv3 模型參數降低9 倍、GLOPs 降低7.5 倍、GPU 速度提升1.8 倍,在邊際 運算模組Nvidia Tx2 上可以達到3 倍的加速,而精度的下降只有1 ∼ 2%,維持高準確 度之需求。
In recent years, many deep learning models have been developed and they often focus on high accuracy on complex data, which makes deep learning models more and more cumbersome. For this reason, object detection is easily too cumbersome to apply in practical applications. Many scenarios expect that complex data (image, etc.) can be directly detected at the edge computing devices such that transmission cost and time cost can be reduced effectively. In this situation, light-weight and efficient models are significantly important.
In this research, we utilize model compression to compress object detection model, such that the model can not only achieve the goals of light-weight and efficiency, but also maintains relatively high accuracy. Our compressed model shows a high potential on edge devices. We apply the efficient object detection model- YOLOv3 as the base model with augmentation of the model pruning technology in model compression. For the final testing, the compressed model is applied on the edge device- Nvidia Tx2.
Our method compresses the basic model to the specified compression rate under simple hyperparameter settings. We apply the case of polyp detection data to do our experiments. We reduce the parameters of YOLOv3 model by 9 times and GLOPs by 7.5 times, respectively. The inference speed is accelerated by 1.8 times on GPU and 3 times on the Nvidia Tx2, respectively, while the accuracy is maintained well with only 1 ∼ 2% decreases.
In this research, we utilize model compression to compress object detection model, such that the model can not only achieve the goals of light-weight and efficiency, but also maintains relatively high accuracy. Our compressed model shows a high potential on edge devices. We apply the efficient object detection model- YOLOv3 as the base model with augmentation of the model pruning technology in model compression. For the final testing, the compressed model is applied on the edge device- Nvidia Tx2.
Our method compresses the basic model to the specified compression rate under simple hyperparameter settings. We apply the case of polyp detection data to do our experiments. We reduce the parameters of YOLOv3 model by 9 times and GLOPs by 7.5 times, respectively. The inference speed is accelerated by 1.8 times on GPU and 3 times on the Nvidia Tx2, respectively, while the accuracy is maintained well with only 1 ∼ 2% decreases.