diff --git a/dygraph/paddleseg/utils/utils.py b/dygraph/paddleseg/utils/utils.py index 853773606af4d4c5bc996d98a5740b090688dc63..063aedbfe7eff83a72f216743b8405458b67cafc 100644 --- a/dygraph/paddleseg/utils/utils.py +++ b/dygraph/paddleseg/utils/utils.py @@ -50,8 +50,8 @@ def load_entire_model(model, pretrained): if os.path.exists(pretrained): load_pretrained_model(model, pretrained) else: - raise Exception('Pretrained model is not found: {}'.format( - pretrained)) + raise Exception( + 'Pretrained model is not found: {}'.format(pretrained)) else: logger.warning('Not all pretrained params of {} to load, '\ 'training from scratch or a pretrained backbone'.format(model.__class__.__name__))