This commit is contained in:
lllyasviel 2023-10-05 11:30:32 -07:00 committed by GitHub
parent 6189e482bd
commit 0f62757eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
version = '2.0.91'
version = '2.0.92'

View File

@ -37,6 +37,12 @@ class FooocusExpansion:
offload_device = model_management.text_encoder_offload_device()
use_fp16 = model_management.should_use_fp16(device=load_device)
# MPS hack
if model_management.is_device_mps(load_device):
load_device = torch.device('cpu')
offload_device = torch.device('cpu')
use_fp16 = False
if use_fp16:
self.model.half()