-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Add the Gluon Implementation of Deformable Convolution #14810
Conversation
modified: python/mxnet/gluon/contrib/__init__.py new file: python/mxnet/gluon/contrib/cnn/__init__.py new file: python/mxnet/gluon/contrib/cnn/conv_layers.py new file: tests/python/gpu/test_gluon_contrib_gpu.py
@ChaiBapchya @sandeep-krishnamurthy @vandanavk @aaronmarkham @larroy Hi, |
http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html and where can I find the |
out_width = floor((width+2*padding[1]-dilation[1]*(kernel_size[1]-1)-1)/stride[1])+1 | ||
|
||
Reference: | ||
.. [1] Dai, Jifeng, et al. "Deformable convolutional networks." CoRR, abs/1703.06211 1.2 (2017): 3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess about the Sphinx error is that it doesn't like this line.
Referring to the docs on citations, you can call it what you like, so maybe pick something more descriptive than "1" and maybe you won't have a collision. It actually says to use a non-numeric label.
Maybe to align with how this is categorized in the rst docs, call this section Citations, and then when anyone looks it up we know how it is supposed to work...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I simplified the citations as it is in Gluon BN layer:
https://mxnet.incubator.apache.org/api/python/gluon/nn.html#mxnet.gluon.nn.BatchNorm
Besides, in the doc of Gluon.Contrib syncbatchnorm:
https://mxnet.incubator.apache.org/api/python/gluon/contrib.html?highlight=syncbatchnorm#id3
it seems to be able to create a hyperlink with an underline, e.g. [1]_
Now the website error is gone, thanks very much for your help.
@mxnet-label-bot update [Gluon, pr-awaiting-review] |
If you click on "Show all checks" in the CI zone of this PR, you'll find one called "ci/jenkins/mxnet-validation/website". Click details. In the deploy stage (look for the green check marks), you'll see Julia selected. Select "Docs". Then click the last shell script. Then look all the way at the bottom of the output. There's your new link for a preview. |
I see, thanks very much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution!
Merged. Thank you! |
* modified: docs/api/python/gluon/contrib.md modified: python/mxnet/gluon/contrib/__init__.py new file: python/mxnet/gluon/contrib/cnn/__init__.py new file: python/mxnet/gluon/contrib/cnn/conv_layers.py new file: tests/python/gpu/test_gluon_contrib_gpu.py * modified: python/mxnet/gluon/contrib/cnn/conv_layers.py * modified: python/mxnet/gluon/contrib/cnn/conv_layers.py * Update conv_layers.py * Update conv_layers.py
I met some error when I used the deformableconv layer presented above. Can I get your help ? |
Hi, currently, the deformable convolution layer only supports the computation on GPU, so you need to make sure that all the parameter are stored on GPU. This can be done with
or in your case, Do you have some CustomOp in your network, which only supports CPU? |
@ suyz526
I think all the parameter are stored on GPU. Is it right ? But the error : |
Try |
@suyz526 |
sry, this step is unnecessary. How about your input data? |
Nonono. I am very grateful for your help. |
* modified: docs/api/python/gluon/contrib.md modified: python/mxnet/gluon/contrib/__init__.py new file: python/mxnet/gluon/contrib/cnn/__init__.py new file: python/mxnet/gluon/contrib/cnn/conv_layers.py new file: tests/python/gpu/test_gluon_contrib_gpu.py * modified: python/mxnet/gluon/contrib/cnn/conv_layers.py * modified: python/mxnet/gluon/contrib/cnn/conv_layers.py * Update conv_layers.py * Update conv_layers.py
Description
The gluon implementation of deformable convolution
Checklist
Essentials