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

What is the kernel size of dilated convolution? #10

Open
arijit17 opened this issue Nov 25, 2019 · 0 comments
Open

What is the kernel size of dilated convolution? #10

arijit17 opened this issue Nov 25, 2019 · 0 comments

Comments

@arijit17
Copy link

It paper it says " Each residual dilated convolution stack has three layers with dilation 1, 3 and 9 with kernel-size 3".
Also, in Figure 4 it seems to be the case.

However, when I run the code, it seems to be:

(4): ResnetBlock(
      (block): Sequential(
        (0): LeakyReLU(negative_slope=0.2)
        (1): ReflectionPad1d((1, 1))
        (2): Conv1d(256, 256, kernel_size=(3,), stride=(1,))
        (3): LeakyReLU(negative_slope=0.2)
        (4): Conv1d(256, 256, kernel_size=(1,), stride=(1,))
      )
      (shortcut): Conv1d(256, 256, kernel_size=(1,), stride=(1,))
    )
    (5): ResnetBlock(
      (block): Sequential(
        (0): LeakyReLU(negative_slope=0.2)
        (1): ReflectionPad1d((3, 3))
        (2): Conv1d(256, 256, kernel_size=(3,), stride=(1,), dilation=(3,))
        (3): LeakyReLU(negative_slope=0.2)
        (4): Conv1d(256, 256, kernel_size=(1,), stride=(1,))
      )
      (shortcut): Conv1d(256, 256, kernel_size=(1,), stride=(1,))
    )
    (6): ResnetBlock(
      (block): Sequential(
        (0): LeakyReLU(negative_slope=0.2)
        (1): ReflectionPad1d((9, 9))
        (2): Conv1d(256, 256, kernel_size=(3,), stride=(1,), dilation=(9,))
        (3): LeakyReLU(negative_slope=0.2)
        (4): Conv1d(256, 256, kernel_size=(1,), stride=(1,))
      )
      (shortcut): Conv1d(256, 256, kernel_size=(1,), stride=(1,))
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant