mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
[fix] Get the model again if current model is empty
This commit is contained in:
parent
2eef6df66a
commit
3ee2798ede
@ -97,7 +97,7 @@ class ModelManager(object):
|
||||
If on disk, will load from there.
|
||||
"""
|
||||
if not model_name:
|
||||
return self.current_model if self.current_model else self.get_model(self.default_model())
|
||||
return self.get_model(self.current_model) if self.current_model else self.get_model(self.default_model())
|
||||
|
||||
if not self.valid_model(model_name):
|
||||
print(
|
||||
|
Loading…
Reference in New Issue
Block a user