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

question about source code #350

Closed
liupengkd opened this issue Apr 13, 2018 · 2 comments
Closed

question about source code #350

liupengkd opened this issue Apr 13, 2018 · 2 comments

Comments

@liupengkd
Copy link

in convolution.cpp
"const int kernel_extent_w = dilation_w * (kernel_w - 1) + 1;
const int kernel_extent_h = dilation_h * (kernel_h - 1) + 1;"
dilation_w 和 kernel_extent_w变量指代的是什么意思?
“ else if (pad_w == -233 && pad_h == -233)
{
int wpad = kernel_extent_w + (w - 1) / stride_w * stride_w - w;
int hpad = kernel_extent_h + (h - 1) / stride_h * stride_h - h;”
这段代码的含义是什么?

@liupengkd
Copy link
Author

作为初学者,我对卷积参数的理解
w1=(w0+2pad-kernel_size)/stride+1;
h1=(h0+2
pad-kernel_size)/stride+1;

@nihui
Copy link
Member

nihui commented May 31, 2018

may get your answer about dilated convolution in google :)

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