资源算法deform_conv3d_pytorch_op

deform_conv3d_pytorch_op

2020-04-01 | |  45 |   0 |   0

An Operation for 3D Deformable Convolution in Pytorch 0.3

Realize the 2D convolution, 2D and 3D deformable convolution in Pytorch 0.3.0. Did not check the 0.4.

Support the group convolution, dilate convolution, group deformable convolution, which split the channels of the input to several splits, each use the independent offset fields.

The official implementation of 2D deformable convolution

An implementation of 2D deformable convolution in Pytorch

Requirements

Pytorch = 0.3.0

Usage

Change the path in make.sh to your own path (The path of torch). Compile the op by:

bash make.sh

The .so is in xx_xx_op dir.

Use the test_function.py to test the results of the forward and the backward function.

Use the test_gradient to check the gradient of the backward. NOTE that only the double-precision version can pass the gradient check, i.e. deform2d_double. The double version is slower, so is just used for checking.

Use the test_model to check the whole model.


上一篇:deformableConvolution_2D

下一篇:modulated-deform-conv

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...