-
Notifications
You must be signed in to change notification settings - Fork 62
/
hubconf.py
39 lines (34 loc) · 1.43 KB
/
hubconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dependencies = ['torch']
import hardnet
def hardnet68(pretrained=False, **kwargs):
""" # This docstring shows up in hub.help()
Harmonic DenseNet 68 model
pretrained (bool): kwargs, load pretrained weights into the model
"""
# Call the model, load pretrained weights
model = hardnet.HarDNet(depth_wise=False, arch=68, pretrained=pretrained)
return model
def hardnet85(pretrained=False, **kwargs):
""" # This docstring shows up in hub.help()
Harmonic DenseNet 85 model
pretrained (bool): kwargs, load pretrained weights into the model
"""
# Call the model, load pretrained weights
model = hardnet.HarDNet(depth_wise=False, arch=85, pretrained=pretrained)
return model
def hardnet68ds(pretrained=False, **kwargs):
""" # This docstring shows up in hub.help()
Harmonic DenseNet 68ds (Depthwise Separable) model
pretrained (bool): kwargs, load pretrained weights into the model
"""
# Call the model, load pretrained weights
model = hardnet.HarDNet(depth_wise=True, arch=68, pretrained=pretrained)
return model
def hardnet39ds(pretrained=False, **kwargs):
""" # This docstring shows up in hub.help()
Harmonic DenseNet 68ds (Depthwise Separable) model
pretrained (bool): kwargs, load pretrained weights into the model
"""
# Call the model, load pretrained weights
model = hardnet.HarDNet(depth_wise=True, arch=39, pretrained=pretrained)
return model