PyTorch implementation of Deformable ConvNets v2 (Modulated Deformable Convolution)
PyTorch implementation of Deformable ConvNets v2 (Modulated Deformable Convolution)
This repository contains code for Deformable ConvNets v2 (Modulated Deformable Convolution) based on Deformable ConvNets v2: More Deformable, Better Results implemented in PyTorch. This implementation of deformable convolution based on ChunhuanLin/deform_conv_pytorch, thanks to ChunhuanLin.
Replace regular convolution (following model's conv2) with modulated deformable convolution:
…ScaledMNIST is randomly scaled MNIST.
Use modulated deformable convolution at conv3~4:
python train.py --arch ScaledMNISTNet --deform True --modulation True --min-deform-layer 3Use deformable convolution at conv3~4:
python train.py --arch ScaledMNISTNet --deform True --modulation False --min-deform-layer 3Use only regular convolution:
python train.py --arch ScaledMNISTNet --deform False --modulation False| Model | Accuracy (%) | Loss |
|---|---|---|
| w/o DCN | 97.22 | 0.113 |
| w/ DCN @conv4 | 98.60 | 0.049 |
| w/ DCN @conv3~4 | 98.95 | 0.035 |
| w/ DCNv2 @conv4 | 98.45 | 0.058 |
| w/ DCNv2 @conv3~4 | 99.21 | 0.027 |
No open issues yet, or sync has not completed.