mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
facexlib and codeformer are broken on mps currently, force CPU device.
This commit is contained in:
parent
e2bd492764
commit
636c356aaf
@ -742,7 +742,8 @@ class Generate:
|
||||
if self.codeformer is None:
|
||||
print('>> CodeFormer not found. Face restoration is disabled.')
|
||||
else:
|
||||
image = self.codeformer.process(image=image, strength=strength, device=self.device, seed=seed, fidelity=codeformer_fidelity)
|
||||
cf_device = 'cpu' if str(self.device) == 'mps' else self.device
|
||||
image = self.codeformer.process(image=image, strength=strength, device=cf_device, seed=seed, fidelity=codeformer_fidelity)
|
||||
else:
|
||||
print(">> Face Restoration is disabled.")
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user