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

Doubt #1

Open
linzhi123 opened this issue Oct 4, 2018 · 0 comments
Open

Doubt #1

linzhi123 opened this issue Oct 4, 2018 · 0 comments

Comments

@linzhi123
Copy link

    self.conv = nn.Sequential(
        # Input: (channel_num) x 256 x 256
        nn.Conv2d(channel_num, filter_num, 4, 2, 1, bias=False),
        nn.LeakyReLU(0.2, inplace=True),
        # (filter_num) x 128 x 128
        nn.Conv2d(filter_num, filter_num * 2, 4, 2, 1, bias=False),
        nn.BatchNorm2d(filter_num * 2),
        nn.LeakyReLU(0.2, inplace=True),
        # (filter_num * 2) x 64 x 64
        nn.Conv2d(filter_num * 2, filter_num * 2, 8, 4, 1, bias=False),
        nn.BatchNorm2d(filter_num * 2),
        nn.LeakyReLU(0.2, inplace=True),
        # (filter_num * 2) x 16 x 16
        nn.Conv2d(filter_num * 2, filter_num, 8, 4, 1, bias=False),
        nn.BatchNorm2d(filter_num),
        nn.LeakyReLU(0.2, inplace=True),
        # (filter_num) x 3 x 3
    )

Can you tell me how these parameters are set, if I modify the size of the input of the picture?

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