Coder Social home page Coder Social logo

ConvLayer Filters about pgportfolio HOT 7 CLOSED

zhengyaojiang avatar zhengyaojiang commented on July 17, 2024
ConvLayer Filters

from pgportfolio.

Comments (7)

dexhunter avatar dexhunter commented on July 17, 2024 1

Shouldn't the convolutional filters be 3 dimensional?

It always is 3-dimensional if you count the filter number in.

with additional depth of 2

The depth is actually the filter number.

I took a screenshot from cs231n, maybe this will help a bit:
screenshot from 2018-02-11 14-13-13

edit:
However I think there is a discrepancy between the code and paper on how many feature_maps does the first ConvLayer produces? (In paper is 2 but in code is 3) @ZhengyaoJiang(version upgrade)

from pgportfolio.

ZhengyaoJiang avatar ZhengyaoJiang commented on July 17, 2024 1

Shouldn't the convolutional filters be 3 dimensional? I mean, in the original convolution how do we go from 3 feature maps to 2 feature maps. I believe this would make sense if the filter was of dimension 2x1x3 (same as described but with additional depth of 2).

Yes, it is actually 3 dimensional.
While I think it's a convention that the one of the dimension is the same as the number of input channels(features) and can be omitted when it comes to conv2d.
If we are using conv3d, then it is necessary to specify another dimension.
You can refer to tensorflow.layers for example:
https://www.tensorflow.org/api_docs/python/tf/layers/conv2d

However I think there is a discrepancy between the code and paper on how many feature_maps does the first ConvLayer produces?

Number of feature maps is equal to the number of filters.

from pgportfolio.

ZhengyaoJiang avatar ZhengyaoJiang commented on July 17, 2024 1

From my understanding it appears there is still a discrepancy from the paper in {"filter_shape":[1,2]}. The paper implies it should be {"filter_shape":[1,3]}, doesn't it?

Yes, as we mentioned in README, the hyper-parameters are different as that listed in the article.
The new hyper-parameters are tuned by an automatic parameters search algorithm, which saves much training time and preserves(or improve in some time span) final performance.

from pgportfolio.

LinuxIsCool avatar LinuxIsCool commented on July 17, 2024

Thank you, this clears things up. From my understanding it appears there is still a discrepancy from the paper in {"filter_shape":[1,2]}. The paper implies it should be {"filter_shape":[1,3]}, doesn't it?

from pgportfolio.

joostbr avatar joostbr commented on July 17, 2024

You can freely play around with the filter size in the first ConvLayer 2, 3 or 5 seem to be values giving reasonable results.

from pgportfolio.

LinuxIsCool avatar LinuxIsCool commented on July 17, 2024

Thank you for the information @ZhengyaoJiang. It is a great paper, and well written code, I really appreciate it. I am a CS master's student at Simon Fraser University, I am basing my current projects off of this paper.

from pgportfolio.

ZhengyaoJiang avatar ZhengyaoJiang commented on July 17, 2024

@LinuxIsCool

Thanks for your compliment.
Hope your project goes well.

from pgportfolio.

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.