Skip to content

Commit

Permalink
Wrap the layers in the VGG type
Browse files Browse the repository at this point in the history
  • Loading branch information
theabhirath committed Jan 4, 2024
1 parent 09f91c0 commit 1207f84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/convnets/vgg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ end
function VGG(depth::Integer; pretrain::Bool = false, batchnorm::Bool = false,
inchannels::Integer = 3, nclasses::Integer = 1000)
_checkconfig(depth, keys(VGG_CONFIGS))
model = vgg((224, 224); config = VGG_CONFIGS[depth], batchnorm, inchannels, nclasses)
layers = vgg((224, 224); config = VGG_CONFIGS[depth], batchnorm, inchannels, nclasses)
model = VGG(layers)
if pretrain
artifact_name = string("vgg", depth)
if batchnorm
Expand Down

0 comments on commit 1207f84

Please sign in to comment.