mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix silent SystemExit if embedding_path is not specified
This commit is contained in:
@ -436,7 +436,8 @@ The vast majority of these arguments default to reasonable values.
|
|||||||
config = OmegaConf.load(self.config)
|
config = OmegaConf.load(self.config)
|
||||||
self.device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
self.device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
||||||
model = self._load_model_from_config(config,self.weights)
|
model = self._load_model_from_config(config,self.weights)
|
||||||
model.embedding_manager.load(self.embedding_path)
|
if not self.embedding_path is None:
|
||||||
|
model.embedding_manager.load(self.embedding_path)
|
||||||
self.model = model.to(self.device)
|
self.model = model.to(self.device)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
Reference in New Issue
Block a user