Skip to content

Error caused by using tl.layers.DeformableConv2d function #572

@Liang-yc

Description

@Liang-yc

New Issue Checklist

Issue Description

An Error caused when using tl.layers.DeformableConv2d.

Reproducible Code

  • Which OS are you using ?
    Windows 7 x64
  • Please provide a reproducible code of your issue. Without any reproducible code, you will probably not receive any help.
net = tl.layers.InputLayer(x, name='input_layer')
offset1 = tl.layers.Conv2d(net, 18, (3, 3), (1, 1), act=act, padding='SAME', name='offset1')
net = tl.layers.DeformableConv2d(net, offset1, 32, (3, 3), act=act, name='deformable1')
offset2 = tl.layers.Conv2d(net, 18, (3, 3), (1, 1), act=act, padding='SAME', name='offset2')
net = tl.layers.DeformableConv2d(net, offset2, 64, (3, 3), act=act, name='deformable2')

When I used this code provided by Tensorlayer API documents, a TypeError was caused. I found a mistake in convolution.py. And I suggest you delete Line 971 in convolution.py or do something to fix this error.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions