GithubHelp home page GithubHelp logo

Comments (4)

Algolzw avatar Algolzw commented on July 24, 2024

设置filter的时候需要令它们的 总感受野=kernel size。例如当kernel size = 15时,你可以如下设置filters:

(1 + 15*2 - 9)/1 + 1 = 23 # 对单位kernel(size=1)进行卷积,第一次需要padding = kernel size,步长为1
(23 - 5)/1 + 1 = 19 # 之后padding为0
(19 - 3)/1 + 1 = 17
(17 - 3)/1 + 1 = 15
(15 - 1)/1 + 1 = 15 # 卷积后正好与kernel size相等

因此kernel size == 15时,filters可以设置[9, 5, 3, 3, 1],同样,kernel size==19时,filters为[11, 7, 3, 3, 1].

祝好

from dcls-sr.

Geniuszyd avatar Geniuszyd commented on July 24, 2024

谢谢作者的耐心讲解!祝您科研道路一帆风顺!

from dcls-sr.

Geniuszyd avatar Geniuszyd commented on July 24, 2024

作者您好,您源码中的首次padding为kernelsize - 1而非kernelsize,所以kernel size == 15时,filters可设置[9, 5, 3, 1],同样,kernel size==19时,filters可设置[11, 7, 3, 1]。不过您的思路加深了我对该设置以及动态卷积过程的理解,感谢您的耐心分享,祝您一切顺利!
image

from dcls-sr.

Algolzw avatar Algolzw commented on July 24, 2024

作者您好,您源码中的首次padding为kernelsize - 1而非kernelsize,所以kernel size == 15时,filters可设置[9, 5, 3, 1],同样,kernel size==19时,filters可设置[11, 7, 3, 1]。不过您的思路加深了我对该设置以及动态卷积过程的理解,感谢您的耐心分享,祝您一切顺利!
image

padding确实是我弄错了,感谢指正hah。

祝好

from dcls-sr.

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.