mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
fix 3rd pass extractor hang on AMD 8+ core processors
This commit is contained in:
parent
2cd028fb67
commit
5eaf3eb500
1 changed files with 17 additions and 0 deletions
|
@ -157,6 +157,23 @@ class Subprocessor(object):
|
|||
|
||||
self.clis.append (cli)
|
||||
|
||||
while True:
|
||||
while not cli.c2s.empty():
|
||||
obj = cli.c2s.get()
|
||||
op = obj.get('op','')
|
||||
if op == 'init_ok':
|
||||
cli.state = 0
|
||||
elif op == 'log_info':
|
||||
io.log_info(obj['msg'])
|
||||
elif op == 'log_err':
|
||||
io.log_err(obj['msg'])
|
||||
elif op == 'error':
|
||||
cli.kill()
|
||||
self.clis.remove(cli)
|
||||
break
|
||||
if cli.state == 0:
|
||||
break
|
||||
io.process_messages(0.005)
|
||||
except:
|
||||
raise Exception ("Unable to start subprocess %s" % (name))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue