Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin size in ppm #34

Open
wtliao opened this issue Mar 14, 2017 · 1 comment
Open

bin size in ppm #34

wtliao opened this issue Mar 14, 2017 · 1 comment

Comments

@wtliao
Copy link

wtliao commented Mar 14, 2017

Hi,

I don't understand about the bin size of the pyramid pooling module (11, 22, 33, 66) in the paper. Does it mean that, for instance of bin size 3*3, the width and height of each feature map after pooling are both 3? If yes, each feature map is square? Thx.

@hszhao
Copy link
Owner

hszhao commented Mar 21, 2017

Yes, for the original design is trained with a square input(like 473*473), so in the ppm the pooled ones are all squared maps.

  1. Let's say your crop size of the input data is c, then it should be a number that can fit equation c = 8x+1;
    2 Then your size in conv5_3 denotes as w = x + 1;
  2. In each pool level L(1,2,3,6), assume the kernel size is k, and stride is s, and k>=s, say k = s+a;
    In level 1, w = s+a;
    In level 2, w = 2s+a;
    In level 3, w = 3s+a;
    In level 6, w = 6s+a;
    So your s and k in level L should be s=[w/L], k=s+w%L. Also, you can modify the pool layer and interp layer to do automatic calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants