-
Notifications
You must be signed in to change notification settings - Fork 4
/
mymodels.py
28 lines (20 loc) · 1.13 KB
/
mymodels.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
import waternets
import torchvision.models as m
class MyModels:
# waternet = waternets.WaterNet()
# waternetsf = waternets.WaterNetSmallFC()
# waternetconvfc = waternets.WaterNetConvFC()
# waterdsnet = waternets.WaterDenseNet()
# waterdsnetf = waternets.WaterDenseNetFinal()
# waterdsnetf_in4_out58 = waternets.WaterDenseNet_in4_out58()
# waterdsnetf_self_define = waternets.WaterDenseNet_self_define(growth_rate=opt.growth_rate, num_init_features=opt.num_init_features)
def waterdsnetf_self_define(opt):
return waternets.WaterDenseNet_self_define(growth_rate=opt.growth_rate, num_init_features=opt.num_init_features)
def waterdsnetf(opt):
return waternets.WaterDenseNetFinal()
def waterdsnetf_in4_out58(opt):
return waternets.WaterDenseNet_in4_out58(growth_rate=opt.growth_rate, num_init_features=opt.num_init_features, activation=opt.activation)
def watercnndsnetf_in4_out58(opt):
return waternets.WaterCNNDenseNet_in4_out58(growth_rate=opt.growth_rate, num_init_features=opt.num_init_features)
def waternetsmallfl(opt):
return waternets.WaterNetSmallFL()