mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-18 17:44:42 -05:00
improve CUDA VRAM monitoring
extra check that device==cuda before getting VRAM stats
This commit is contained in:
@@ -130,8 +130,11 @@ def main_loop(t2i, outdir, prompt_as_dir, parser, infile):
|
||||
command = get_next_command(infile)
|
||||
except EOFError:
|
||||
done = True
|
||||
break
|
||||
|
||||
continue
|
||||
except KeyboardInterrupt:
|
||||
done = True
|
||||
continue
|
||||
|
||||
# skip empty lines
|
||||
if not command.strip():
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user