Audit and update exception messages in vgg19.py
@@ -116,11 +116,13 @@ def VGG19(
raise ValueError('The `weights` argument should be either '
'`None` (random initialization), `imagenet` '
'(pre-training on ImageNet), '
- 'or the path to the weights file to be loaded.')
+ 'or the path to the weights file to be loaded. '
+ f'Received: `weights={weights}.`')
if weights == 'imagenet' and include_top and classes != 1000:
raise ValueError('If using `weights` as `"imagenet"` with `include_top` '
- ' as true, `classes` should be 1000')
+ 'as true, `classes` should be 1000. '
+ f'Received: `classes={classes}.`')
# Determine proper input shape
input_shape = imagenet_utils.obtain_input_shape(
input_shape,
