question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Receptive field calculation?

See original GitHub issue

Hi, In the receptive field calculation, why is the extra addition made here? From what I understand, for an example of filter_width=2, a dilations block of [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] should have a receptive field of 1024, not 1025.

Thanks! Ronen

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
aschoenebeckcommented, Sep 27, 2018

There is one more convolution with filter width = 2 before the dilation stack. That adds 1 to the receptive field.

0reactions
WelkinYangcommented, Jan 27, 2020

Hey, i was confused by the calculation for a long time as well. And i searched for a lot of related information. Now, I finally understand. image image The first picture, above is the general rule of receptive field calculation The second figure is how to convert the kernel size of ordinary convolution to dilated convolution. Therefore, the formula for calculating the receptive field of stacking dilated convolution is(stride=1): JTVDbGVmdCU which is supposed to be the receptive field calculation so for the dilation=[1,2,4…,512]. receptive field = 1+(1+2+4+…+512) * (2-1)=1+1023=1024 not 1025 So the plus one in the equation is not 1024 plus one, but 1023 plus one

Read more comments on GitHub >

github_iconTop Results From Across the Web

Computing Receptive Fields of Convolutional Neural Networks
If all strides are 1, then the receptive field will simply be the sum of (kl−1) ( k l − 1 ) over...
Read more >
How to Calculate Receptive Field Size in CNN - Baeldung
In this tutorial, we're going to discuss what exactly a receptive field of a CNN is, why it is important and how can...
Read more >
A guide to receptive field arithmetic for ... - ML Review
The fourth equation calculates the center position of the receptive field of the first output feature, which is equal to the center position...
Read more >
Receptive Field Calculations for Convolutional Neural Networks
Receptive fields are defined by the center and the size. The center of the receptive field is very important since it decides the...
Read more >
A Guide to Receptive Field Arithmetic for ... - Medium
Receptive field in each layer can be calculated by using the following equations: The first equation is defined by the same way as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found