Merge pull request #362 from lbin/master

fixed some tiny bugs
This commit is contained in:
Xingyi Zhou 2019-09-18 09:31:13 -05:00 committed by GitHub
commit 9781e7defd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ def load_model(model, model_path, optimizer=None, resume=False,
if state_dict[k].shape != model_state_dict[k].shape:
print('Skip loading parameter {}, required shape{}, '\
'loaded shape{}. {}'.format(
k, model_state_dict[k].shape, state_dict[k].shape) + msg)
k, model_state_dict[k].shape, state_dict[k].shape, msg))
state_dict[k] = model_state_dict[k]
else:
print('Drop parameter {}.'.format(k) + msg)

View File

@ -639,7 +639,7 @@ def dla169up(classes, pretrained_base=None, **kwargs):
return model
'''
def get_pose_net(num_layers, heads, add_conv=256, down_ratio=4):
def get_pose_net(num_layers, heads, head_conv=256, down_ratio=4):
model = DLASeg('dla{}'.format(num_layers), heads,
pretrained=True,
down_ratio=down_ratio,