Skip to content

Commit 0b582a4

Browse files
committed
add developer's guidance for refactoring this change
1 parent f4a19af commit 0b582a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ldm/simplet2i.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ def process_image(image,seed):
280280
), 'can only work with strength in [0.0, 1.0]'
281281

282282
width, height, _ = self._resolution_check(width, height, log=True)
283+
284+
# TODO: - Check if this is still necessary to run on M1 devices.
285+
# - Move code into ldm.dream.devices to live alongside other
286+
# special-hardware casing code.
283287
if self.precision == 'autocast' and torch.cuda.is_available():
284288
scope = autocast
285289
else:

0 commit comments

Comments
 (0)