mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
trainer: fix for ctrl-c in --no-preview mode
This commit is contained in:
parent
fe40a46933
commit
cfae9f9fd8
1 changed files with 4 additions and 1 deletions
|
@ -185,7 +185,10 @@ def main(args, device_args):
|
|||
op = input.get('op','')
|
||||
if op == 'close':
|
||||
break
|
||||
io.process_messages(0.1)
|
||||
try:
|
||||
io.process_messages(0.1)
|
||||
except KeyboardInterrupt:
|
||||
s2c.put ( {'op': 'close'} )
|
||||
else:
|
||||
wnd_name = "Training preview"
|
||||
io.named_window(wnd_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue