File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
name = " Metalhead"
2
2
uuid = " dbeba491-748d-5e0e-a39e-b530a07fa0cc"
3
- version = " 0.7.3 "
3
+ version = " 0.8.0-DEV "
4
4
5
5
[deps ]
6
6
Artifacts = " 56f22d72-fd6d-98f1-02f0-08ddc0907c33"
Original file line number Diff line number Diff line change 4
4
mobilenetv1(width_mult, config;
5
5
activation = relu,
6
6
inchannels = 3,
7
- fcsize = 1024,
8
7
nclasses = 1000)
9
8
10
9
Create a MobileNetv1 model ([reference](https://arxiv.org/abs/1704.04861v1)).
@@ -22,13 +21,11 @@ Create a MobileNetv1 model ([reference](https://arxiv.org/abs/1704.04861v1)).
22
21
+ `r`: The number of time this configuration block is repeated
23
22
- `activate`: The activation function to use throughout the network
24
23
- `inchannels`: The number of input channels. The default value is 3.
25
- - `fcsize`: The intermediate fully-connected size between the convolution and final layers
26
24
- `nclasses`: The number of output classes
27
25
"""
28
26
function mobilenetv1 (width_mult, config;
29
27
activation = relu,
30
28
inchannels = 3 ,
31
- fcsize = 1024 ,
32
29
nclasses = 1000 )
33
30
layers = []
34
31
for (dw, outch, stride, nrepeats) in config
@@ -47,8 +44,7 @@ function mobilenetv1(width_mult, config;
47
44
return Chain (Chain (layers),
48
45
Chain (GlobalMeanPool (),
49
46
MLUtils. flatten,
50
- Dense (inchannels, fcsize, activation),
51
- Dense (fcsize, nclasses)))
47
+ Dense (inchannels, nclasses)))
52
48
end
53
49
54
50
const mobilenetv1_configs = [
You can’t perform that action at this time.
0 commit comments