Coder Social home page Coder Social logo

Comments (6)

1zb avatar 1zb commented on August 17, 2024

Yes. You are right.

inC must be divisible by num_deformable_groups. Then each group has their own offset.

from deformable-convolution-pytorch.

victorhcm avatar victorhcm commented on August 17, 2024

Thank you for your attention! 😊

from deformable-convolution-pytorch.

victorhcm avatar victorhcm commented on August 17, 2024

Sorry for bothering you again with this, @1zb, I have a follow up question. In the mxnet repository, the authors provide two options, num_group and num_deformable_group. According to their definition, num_group splits the input data, while num_deformable_group splits the output tensor and applies the i-th offset group to the i-th output group.

Thus, here in this repository, is num_deformable_group actually equivalent to num_group in the original implementation, as it is splitting the input data instead of output?

from deformable-convolution-pytorch.

1zb avatar 1zb commented on August 17, 2024

Thanks for your response.

According to these lines and these lines, the parameter num_deformable_group splits the input tensor along channel axis, which contradicts the definition. I will take a look at the code again.

The parameter num_group or groups exists in vanilla CNN. You might find useful discussions here.

from deformable-convolution-pytorch.

victorhcm avatar victorhcm commented on August 17, 2024

I think you're right, it does seem to be splitting the input tensor. I should check their model to see how they are being used, to make sure.

Thank you for the num_group links, by the way!

from deformable-convolution-pytorch.

victorhcm avatar victorhcm commented on August 17, 2024

I was checking their code, it seems they really got the definitions reversed. In this line, they divide the number of output channels by the number of groups, while here they convolve the i-th output with the i-th weight.

from deformable-convolution-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.