digantamisra98 / dynconv

Code for Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inference (CVPR2020)

Home Page:https://arxiv.org/abs/1912.03203

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Convolutions - DynConv

Pytorch code for DynConv. DynConv applies convolutions on important regions of the image only, and thus reduces the computational cost while speeding up inference up to 2 times.

https://arxiv.org/abs/1912.03203

Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inference
Thomas Verelst and Tinne Tuytelaars
CVPR 2020

Note that our work consists of two parts:

  • a mechanism to train spatial hard-attention masks using the Gumbel-Softmax trick
  • a method to efficiently execute sparse operations (currently for 3x3 depthwise convolution only)

The first point is demonstrated on both classification and human pose estimation, the second point only on human pose estimation.

Classification

Human Pose Estimation

Coming later

  • Classification with efficient sparse MobileNetV2

Teaser GIF

Click thumbnail for 1-minute Youtube overview video

About

Code for Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inference (CVPR2020)

https://arxiv.org/abs/1912.03203


Languages

Language:Cuda 53.8%Language:Python 46.2%Language:C++ 0.0%