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

No MaxPool? #1

Open
kczimm opened this issue Mar 23, 2020 · 1 comment
Open

No MaxPool? #1

kczimm opened this issue Mar 23, 2020 · 1 comment

Comments

@kczimm
Copy link

kczimm commented Mar 23, 2020

I'm happy to see a Julia implementation of U-Net. I was looking through the model and could not find an instance of MaxPool anywhere. Is this implementation incomplete? Did I miss this behavior somewhere else in the implementation?

Thanks in advance.

@johnnychen94
Copy link
Contributor

There're multiple ways to downsample/fold an image, 2x2 maxpool is what the original paper uses. This package uses Conv with stride 2.

UNet.jl/src/model.jl

Lines 12 to 15 in a5ac874

ConvDown(in_chs,out_chs,kernel = (4,4)) =
Chain(Conv(kernel,in_chs=>out_chs,pad=(1,1),stride=(2,2);init=_random_normal),
BatchNormWrap(out_chs),
x->leakyrelu.(x,0.2f0))

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