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

Parameters of Upblock #68

Open
reubengann opened this issue Apr 10, 2023 · 0 comments
Open

Parameters of Upblock #68

reubengann opened this issue Apr 10, 2023 · 0 comments

Comments

@reubengann
Copy link

reubengann commented Apr 10, 2023

I am trying to reproduce this work. In The definition of DeconvBlock, your parameters are:

class DeconvBlock(torch.nn.Module):
    def __init__(self, input_size, output_size, kernel_size=4, stride=2, padding=1, bias=True, activation='prelu', norm=None):

When you go to use this class in, for instance, Upblock, you pass arguments:

class UpBlock(torch.nn.Module):
    def __init__(self, num_filter, kernel_size=8, stride=4, padding=2, bias=True, activation='prelu', norm=None):
        super(UpBlock, self).__init__()
        self.up_conv1 = DeconvBlock(num_filter, num_filter, kernel_size, stride, padding, activation, norm=None)

I don't understand how this can work. The 6th parameter of DeconvBlock is supposed to be bias (bool) but here your 6th argument is activation (str). How does this code work?

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

1 participant