mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Issue 270 fix (#274)
* check if torch.backends has mps before calling it * Fixes issue 270 Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
parent
0433b3d625
commit
70119602a0
@ -200,7 +200,7 @@ def main():
|
|||||||
config = OmegaConf.load(f"{opt.config}")
|
config = OmegaConf.load(f"{opt.config}")
|
||||||
model = load_model_from_config(config, f"{opt.ckpt}")
|
model = load_model_from_config(config, f"{opt.ckpt}")
|
||||||
|
|
||||||
device = choose_torch_device()
|
device = torch.device(choose_torch_device())
|
||||||
model = model.to(device)
|
model = model.to(device)
|
||||||
|
|
||||||
if opt.plms:
|
if opt.plms:
|
||||||
|
Loading…
Reference in New Issue
Block a user