fix minor bug

pull/1891/head
haruishi 2024-04-22 12:03:30 +09:00 committed by GitHub
parent 17a886cb58
commit 542060bcfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ def get_model(model: Union[str, Config],
pretrained = metainfo.weights
else:
raise TypeError('model must be a name, a path or a Config object, '
f'but got {type(config)}')
f'but got {type(model)}')
if pretrained is True:
warnings.warn('Unable to find pre-defined checkpoint of the model.')