Skip to content

Commit 3bd48ad

Browse files
authored
Merge pull request #265 from darsnack/mobilenet-constructor-fix
Fix bug where MobileNetv2/3 return a MobileNetv1
2 parents 268da20 + 3665a11 commit 3bd48ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Metalhead"
22
uuid = "dbeba491-748d-5e0e-a39e-b530a07fa0cc"
3-
version = "0.9.0"
3+
version = "0.9.1"
44

55
[deps]
66
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

src/convnets/mobilenets/mobilenetv2.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ end
7171
function MobileNetv2(width_mult::Real = 1; pretrain::Bool = false,
7272
inchannels::Integer = 3, nclasses::Integer = 1000)
7373
layers = mobilenetv2(width_mult; inchannels, nclasses)
74-
model = MobileNetv1(layers)
74+
model = MobileNetv2(layers)
7575
if pretrain
7676
loadpretrain!(model, "mobilenet_v2")
7777
end

src/convnets/mobilenets/mobilenetv3.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ end
9191
function MobileNetv3(config::Symbol; width_mult::Real = 1, pretrain::Bool = false,
9292
inchannels::Integer = 3, nclasses::Integer = 1000)
9393
layers = mobilenetv3(config; width_mult, inchannels, nclasses)
94-
model = MobileNetv1(layers)
94+
model = MobileNetv3(layers)
9595
if pretrain
9696
loadpretrain!(model, "mobilenet_v3")
9797
end

0 commit comments

Comments
 (0)