mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
cap cpu during filtering
This commit is contained in:
parent
8ed0e9a72f
commit
795bf39495
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ class SegmentedSampleFilterSubprocessor(Subprocessor):
|
||||||
|
|
||||||
#override
|
#override
|
||||||
def process_info_generator(self):
|
def process_info_generator(self):
|
||||||
for i in range(multiprocessing.cpu_count()):
|
for i in range(min(multiprocessing.cpu_count(),8)):
|
||||||
yield 'CPU%d' % (i), {}, {'samples':self.samples, 'count_xseg_mask':self.count_xseg_mask}
|
yield 'CPU%d' % (i), {}, {'samples':self.samples, 'count_xseg_mask':self.count_xseg_mask}
|
||||||
|
|
||||||
#override
|
#override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue