mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
ignore UserWarning for platforms != win32
This commit is contained in:
parent
7e276a4ec7
commit
6b6aaba4db
1 changed files with 4 additions and 0 deletions
4
main.py
4
main.py
|
@ -3,6 +3,10 @@ if __name__ == "__main__":
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
multiprocessing.set_start_method("spawn")
|
multiprocessing.set_start_method("spawn")
|
||||||
|
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
import warnings
|
||||||
|
warnings.simplefilter(action='ignore', category=UserWarning)
|
||||||
|
|
||||||
from core.leras import nn
|
from core.leras import nn
|
||||||
nn.initialize_main_env()
|
nn.initialize_main_env()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue