mirror of
https://github.com/deepinsight/insightface.git
synced 2026-05-17 06:12:02 +00:00
Merge branch 'master' of https://github.com/deepinsight/insightface
This commit is contained in:
@@ -92,7 +92,7 @@ def resnet(data, units, filters, rtype, workspace):
|
||||
def get_symbol(num_classes, num_layers, conv_workspace=256):
|
||||
data = mx.symbol.Variable('data')
|
||||
bn_mom = 0.9
|
||||
if num_layers==27:
|
||||
if num_layers<29:
|
||||
data = mx.sym.BatchNorm(data=data, fix_gamma=True, eps=2e-5, momentum=bn_mom, name='bn_data')
|
||||
else:
|
||||
data = data-127.5
|
||||
@@ -110,6 +110,9 @@ def get_symbol(num_classes, num_layers, conv_workspace=256):
|
||||
rtype = 3
|
||||
#use_last_bn = False
|
||||
#use_dropout = False
|
||||
elif num_layers==51:
|
||||
units = [2,3,15,3]
|
||||
rtype = 3
|
||||
|
||||
body = resnet(data = data, units = units, filters = filter_list, rtype=rtype, workspace = conv_workspace)
|
||||
if use_dropout:
|
||||
|
||||
Reference in New Issue
Block a user