gungui98 / deformable

Apache License 2.0
2 stars 0 forks source link

Prerequisites

Install from source

git clone https://github.com/gungui98/deformable.git
cd deformable

install silently by type:

pip install -e .

or with full compile logs:

python setup.py install develop

Usage

from deform_conv.ops import DeformConv2dPack

conv2d = DeformConv2dPack(1, 3, 3).cuda()
out = conv2d(torch.randn((1, 3, 256, 256).cuda())