mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add developer's guidance for refactoring this change
This commit is contained in:
parent
f4a19af04f
commit
0b582a40d0
@ -280,6 +280,10 @@ class T2I:
|
||||
), 'can only work with strength in [0.0, 1.0]'
|
||||
|
||||
width, height, _ = self._resolution_check(width, height, log=True)
|
||||
|
||||
# TODO: - Check if this is still necessary to run on M1 devices.
|
||||
# - Move code into ldm.dream.devices to live alongside other
|
||||
# special-hardware casing code.
|
||||
if self.precision == 'autocast' and torch.cuda.is_available():
|
||||
scope = autocast
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user