mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
small f-string fix in generate.py
Probably low priority, but helps the error message be more clear by hopefully displaying model_name.
This commit is contained in:
parent
e04cb70c7c
commit
16356d5225
@ -847,7 +847,7 @@ class Generate:
|
||||
# the model cache does the loading and offloading
|
||||
cache = self.model_manager
|
||||
if not cache.valid_model(model_name):
|
||||
raise KeyError('** "{model_name}" is not a known model name. Cannot change.')
|
||||
raise KeyError(f'** "{model_name}" is not a known model name. Cannot change.')
|
||||
|
||||
cache.print_vram_usage()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user