mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2025-01-09 04:18:46 +08: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}")
|
||||
model = load_model_from_config(config, f"{opt.ckpt}")
|
||||
|
||||
device = choose_torch_device()
|
||||
device = torch.device(choose_torch_device())
|
||||
model = model.to(device)
|
||||
|
||||
if opt.plms:
|
||||
|
Loading…
Reference in New Issue
Block a user