All Projects → clovaai → Frostnet

clovaai / Frostnet

Licence: mit
FrostNet: Towards Quantization-Aware Network Architecture Search

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Frostnet

Nncf
PyTorch*-based Neural Network Compression Framework for enhanced OpenVINO™ inference
Stars: ✭ 218 (+156.47%)
Mutual labels:  object-detection, classification, semantic-segmentation, quantization
Raster Vision
An open source framework for deep learning on satellite and aerial imagery.
Stars: ✭ 1,248 (+1368.24%)
Mutual labels:  object-detection, classification, semantic-segmentation
Jacinto Ai Devkit
Training & Quantization of embedded friendly Deep Learning / Machine Learning / Computer Vision models
Stars: ✭ 49 (-42.35%)
Mutual labels:  object-detection, semantic-segmentation, quantization
Gfocal
Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection, NeurIPS2020
Stars: ✭ 376 (+342.35%)
Mutual labels:  object-detection, classification
Pywick
High-level batteries-included neural network training library for Pytorch
Stars: ✭ 320 (+276.47%)
Mutual labels:  classification, semantic-segmentation
Involution
[CVPR 2021] Involution: Inverting the Inherence of Convolution for Visual Recognition, a brand new neural operator
Stars: ✭ 252 (+196.47%)
Mutual labels:  object-detection, semantic-segmentation
Awesome Computer Vision Models
A list of popular deep learning models related to classification, segmentation and detection problems
Stars: ✭ 278 (+227.06%)
Mutual labels:  object-detection, semantic-segmentation
Simplecvreproduction
Reproduce simple cv project including attention module, classification, object detection, segmentation, keypoint detection, tracking 😄 etc.
Stars: ✭ 602 (+608.24%)
Mutual labels:  object-detection, classification
Tensorflow object tracking video
Object Tracking in Tensorflow ( Localization Detection Classification ) developed to partecipate to ImageNET VID competition
Stars: ✭ 491 (+477.65%)
Mutual labels:  object-detection, classification
Labelme
Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
Stars: ✭ 7,742 (+9008.24%)
Mutual labels:  classification, semantic-segmentation
Medicaldetectiontoolkit
The Medical Detection Toolkit contains 2D + 3D implementations of prevalent object detectors such as Mask R-CNN, Retina Net, Retina U-Net, as well as a training and inference framework focused on dealing with medical images.
Stars: ✭ 917 (+978.82%)
Mutual labels:  object-detection, semantic-segmentation
Yolo tensorflow
🚖 Object Detection (YOLOv1) implentation in tensorflow, with training, testing and video features.
Stars: ✭ 45 (-47.06%)
Mutual labels:  object-detection, classification
Open3d Ml
An extension of Open3D to address 3D Machine Learning tasks
Stars: ✭ 284 (+234.12%)
Mutual labels:  object-detection, semantic-segmentation
Pytorch Hardnet
35% faster than ResNet: Harmonic DenseNet, A low memory traffic network
Stars: ✭ 293 (+244.71%)
Mutual labels:  object-detection, semantic-segmentation
Edgenets
This repository contains the source code of our work on designing efficient CNNs for computer vision
Stars: ✭ 331 (+289.41%)
Mutual labels:  object-detection, semantic-segmentation
Geospatial Machine Learning
A curated list of resources focused on Machine Learning in Geospatial Data Science.
Stars: ✭ 289 (+240%)
Mutual labels:  classification, semantic-segmentation
Gluon Cv
Gluon CV Toolkit
Stars: ✭ 5,001 (+5783.53%)
Mutual labels:  object-detection, semantic-segmentation
InstantDL
InstantDL: An easy and convenient deep learning pipeline for image segmentation and classification
Stars: ✭ 33 (-61.18%)
Mutual labels:  classification, semantic-segmentation
Torchsat
🔥TorchSat 🌏 is an open-source deep learning framework for satellite imagery analysis based on PyTorch.
Stars: ✭ 261 (+207.06%)
Mutual labels:  classification, semantic-segmentation
Efficientdet Pytorch
A PyTorch impl of EfficientDet faithful to the original Google impl w/ ported weights
Stars: ✭ 906 (+965.88%)
Mutual labels:  object-detection, semantic-segmentation

FrostNet: Towards Quantization-Aware Network Architecture Search

Taehoon Kim1,2, YoungJoon Yoo1, Jihoon Yang2 | Paper | Pretrained Models

  1. Clova AI Research, NAVER Corp.
  2. Sogang University Machine Learning Lab.

Abstract

INT8 quantization has become one of the standard techniques for deploying convolutional neural networks (CNNs) on edge devices to reduce the memory and computational resource usages. By analyzing quantized performances of existing mobile-target network architectures, we can raise an issue regarding the importance of network architecture for optimal INT8 quantization. In this paper, we present a new network architecture search (NAS) procedure to find a network that guarantees both full-precision (FLOAT32) and quantized (INT8) performances. We first propose critical but straightforward optimization method which enables quantization-aware training (QAT) : floating-point statistic assisting (StatAssist) and stochastic gradient boosting (GradBoost). By integrating the gradient-based NAS with StatAssist and GradBoost, we discovered a quantization-efficient network building block, Frost bottleneck. Furthermore, we used Frost bottleneck as the building block for hardware-aware NAS to obtain quantization-efficient networks, FrostNets, which show improved quantization performances compared to other mobile-target networks while maintaining competitive FLOAT32 performance. Our FrostNets achieve higher recognition accuracy than existing CNNs with comparable latency when quantized, due to higher latency reduction rate (average 65%).

Model performances

ImageNet classification results

  • Accuracy comparison with other state of the art lightweight models:


COCO detection results

  • mAP scores comparison on MS COCO val split 2017 with RetinaNet and Faster-RCNN:

Pretrained models

  • We provide FrostNets' pretrained weights on ImageNet dataset. Note that all the models are trained and evaluated with 224x224 image size. Google Drive

Getting Started

Training your own FrostNet

We trained FrostNets with one of the popular imagenet classification code, rwightman's pytorch-image-models for more efficient training. After including FrostNet's model file into the training code, one can train FrostNets with the command line in training_confs.

Post quantization examples

We also provide post-quantization supported version of rwightman's pytorch-image-models in quanitzation-pytorch-image-models for easier post-quantization with PyTorch.

Training object detection models with FrostNet backbones

We trained FrostNets with one of the popular object detection project, mmdetection for more efficient training. Include frostnet_features.py to mmdetection codes to train models.

StatAssist & Gradboost examples

Supports

  • Classification (AlexNet, VGG, Resnet, ShuffleNetV2, Mobilenet V2 & V3) (details)
  • Object Detection (TDSOD, SSDLITE-MobileNet V2) (details)
  • Semantic Segmentation (ESPNet V1 & V2, Mobilenet V2 & V3) (details)
  • Style Transfer (Pix2Pix, CycleGAN) (details)

Implementations

  • Our StatAssist implementations can be found in:

    • Classification: line 149 - 164 in here.
    • Object Detection: line 185 - 239 in here.
    • Semantic Segmentation: line 205 - 221 in here.
    • Style Transfer: line 42 - 64 in here.
  • Our GradBoost version of optimizers can be found here.

Update

  • November 27th, 2020
    • FrostNet, quantization-aware neural network architecture, updated. (details)
  • July 29th, 2020
    • Quantized CPU latency results updated. (details)

License

This project is distributed under MIT license.

Copyright (c) 2020-present NAVER Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

How to cite

@misc{kim2020frostnet,
      title={FrostNet: Towards Quantization-Aware Network Architecture Search}, 
      author={Taehoon Kim and YoungJoon Yoo and Jihoon Yang},
      year={2020},
      eprint={2006.09679},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].