Skip to content

Commit

Permalink
Merge pull request #115 from Alexander-Barth/vgg-fixes
Browse files Browse the repository at this point in the history
VGG: use stride=2 for MaxPool like PyTorch
  • Loading branch information
darsnack authored Feb 8, 2022
2 parents db006a6 + d9ac738 commit cf6b905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convnets/vgg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function vgg_convolutional_layers(config, batchnorm, inchannels)
ifilters = inchannels
for c in config
append!(layers, vgg_block(ifilters, c..., batchnorm))
push!(layers, MaxPool((2,2)))
push!(layers, MaxPool((2,2), stride=2))
ifilters, _ = c
end
return layers
Expand Down

0 comments on commit cf6b905

Please sign in to comment.