GithubHelp home page GithubHelp logo

Comments (3)

hughplay avatar hughplay commented on September 27, 2024

After imitating the whole processing within brain, I think it seems have some problem here.

raw_out = super(PartialConv2d, self).forward(input)

If you don't mask the input before the normal convolution, the result will contain the information from hole area. Except you make sure the hole area of input is always zero.

But the idea of considering the padding area as mask to avoid re-weighted problem is awesome.

from partialconv.

liuguilin1225 avatar liuguilin1225 commented on September 27, 2024

@hughplay Thanks a lot for your comments.
For the first question: we need to apply the mask after we add the bias since we want the hole regions to have 0 values instead of values == bias.
For the second question, I have updated the code to incorporate your comments. Yes, it is better to mask the input at the begin. The reason why I didn't do that is that for the original raw input, I would always set the values to be 0; the partial conv layer would also set the un-filled regions to have value 0 as the outputs. But it is better to mask the input first to be safe in case the input's hole values are not set to be 0.

from partialconv.

hughplay avatar hughplay commented on September 27, 2024

Ok, great! I also make it clear after implementing it by my self. Thanks for your nice work!

from partialconv.

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.