File size: 513 Bytes
3c3a4ad
 
fadd986
 
 
 
 
 
 
3c3a4ad
 
 
08a3347
 
 
 
 
3c3a4ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3

import os
import sys

os.environ['OMP_NUM_THREADS'] = '2'         # Adjust based on CPU cores (e.g., 4 for quad-core)
os.environ['OPENBLAS_NUM_THREADS'] = '1'    # Prevents thread contention
os.environ['MKL_NUM_THREADS'] = '1'         # For Intel MKL libraries

from facefusion import core

if __name__ == '__main__':
    if len(sys.argv) == 1:
        sys.argv.extend([
            "run",
            "--execution-providers", "cpu",         # Force CPU-only mode
        ])
    core.cli()