Skip to content

Commit

Permalink
Fix error in mobilenetv1 for width multiplier < 1
Browse files Browse the repository at this point in the history
  • Loading branch information
darsnack committed Apr 5, 2022
1 parent a94388d commit edaed04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convnets/mobilenet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function mobilenetv1(width_mult, config;
fcsize = 1024)
layers = []
for (dw, outch, stride, repeats) in config
outch = Int(outch * width_mult)
for _ in 1:repeats
outch = outch * width_mult
layer = if dw
depthwise_sep_conv_bn((3, 3), inchannels, outch, activation; stride = stride, pad = 1)
else
Expand Down

0 comments on commit edaed04

Please sign in to comment.