mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
closes #273, crash on M1 machines
This commit is contained in:
parent
0433b3d625
commit
dc30adfbb4
@ -279,7 +279,7 @@ class T2I:
|
||||
self._set_sampler()
|
||||
|
||||
tic = time.time()
|
||||
torch.cuda.torch.cuda.reset_peak_memory_stats()
|
||||
torch.cuda.reset_peak_memory_stats() if self.device == 'cuda' else None
|
||||
results = list()
|
||||
|
||||
try:
|
||||
|
@ -88,7 +88,7 @@ def main():
|
||||
tic = time.time()
|
||||
t2i.load_model()
|
||||
print(
|
||||
f'model loaded in', '%4.2fs' % (time.time() - tic)
|
||||
f'>> model loaded in', '%4.2fs' % (time.time() - tic)
|
||||
)
|
||||
|
||||
if not infile:
|
||||
|
Loading…
Reference in New Issue
Block a user