Skip to content

Commit

Permalink
Merge pull request #912 from wuyefeilin/benchmark_amp_dis
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyefeilin authored Mar 23, 2021
2 parents e90a53e + cc8b349 commit 15d04a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main(args):

# Only support for the DeepLabv3+ model
if args.data_format == 'NHWC':
if cfg.dic['model'] != 'DeepLabV3P':
if cfg.dic['model']['type'] != 'DeepLabV3P':
raise ValueError(
'The "NHWC" data format only support the DeepLabV3P model!')
cfg.dic['model']['data_format'] = args.data_format
Expand Down

0 comments on commit 15d04a6

Please sign in to comment.