1
1
module Metalhead
2
2
3
3
using Flux
4
- using Flux: outputsize, Zygote
4
+ using Flux: Zygote, outputsize
5
5
using Functors
6
6
using BSON
7
7
using Artifacts, LazyArtifacts
@@ -19,8 +19,7 @@ using .Layers
19
19
# CNN models
20
20
include (" convnets/alexnet.jl" )
21
21
include (" convnets/vgg.jl" )
22
- include (" convnets/inceptionv3.jl" )
23
- include (" convnets/inceptionv4.jl" )
22
+ include (" convnets/inception.jl" )
24
23
include (" convnets/googlenet.jl" )
25
24
include (" convnets/resnet.jl" )
26
25
include (" convnets/resnext.jl" )
@@ -40,20 +39,20 @@ include("pretrain.jl")
40
39
41
40
export AlexNet,
42
41
VGG, VGG11, VGG13, VGG16, VGG19,
42
+ GoogLeNet,
43
43
ResNet, ResNet18, ResNet34, ResNet50, ResNet101, ResNet152,
44
- GoogLeNet, Inception3, SqueezeNet,
45
- DenseNet, DenseNet121, DenseNet161, DenseNet169, DenseNet201,
44
+ Inception3, Inception4, SqueezeNet,
46
45
ResNeXt,
46
+ DenseNet, DenseNet121, DenseNet161, DenseNet169, DenseNet201,
47
47
MobileNetv1, MobileNetv2, MobileNetv3,
48
48
MLPMixer, ResMLP, gMLP,
49
49
ViT,
50
- ConvNeXt, ConvMixer
50
+ ConvMixer, ConvNeXt
51
51
52
52
# use Flux._big_show to pretty print large models
53
- for T in (:AlexNet , :VGG , :ResNet , :GoogLeNet , :Inception3 , :SqueezeNet , :DenseNet ,
54
- :ResNeXt ,
55
- :MobileNetv1 , :MobileNetv2 , :MobileNetv3 ,
56
- :MLPMixer , :ResMLP , :gMLP , :ViT , :ConvNeXt , :ConvMixer )
53
+ for T in (:AlexNet , :VGG , :GoogLeNet , :ResNet , :ResNeXt , :Inception3 , :Inception4 ,
54
+ :SqueezeNet , :DenseNet , :MobileNetv1 , :MobileNetv2 , :MobileNetv3 ,
55
+ :MLPMixer , :ResMLP , :gMLP , :ViT , :ConvMixer , :ConvNeXt )
57
56
@eval Base. show (io:: IO , :: MIME"text/plain" , model:: $T ) = _maybe_big_show (io, model)
58
57
end
59
58
0 commit comments