mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-13 00:23:51 -07:00
limiting converter subprocesses to max 6
This commit is contained in:
parent
1bd864cc15
commit
fe40a46933
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class ConvertSubprocessor(Subprocessor):
|
|||
|
||||
#override
|
||||
def process_info_generator(self):
|
||||
r = [0] if self.debug else range(multiprocessing.cpu_count())
|
||||
r = [0] if self.debug else range( max(6,multiprocessing.cpu_count()) )
|
||||
|
||||
for i in r:
|
||||
yield 'CPU%d' % (i), {}, {'device_idx': i,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue