mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-05 20:42:11 -07:00
fix for linux
This commit is contained in:
parent
fcbfbdd560
commit
5eca4958b7
2 changed files with 12 additions and 1 deletions
5
main.py
5
main.py
|
@ -5,9 +5,12 @@ if __name__ == "__main__":
|
|||
|
||||
import sys
|
||||
if sys.platform != 'win32':
|
||||
# fix for Linux , Ignoring :
|
||||
# /usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143:
|
||||
# UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown
|
||||
import warnings
|
||||
warnings.simplefilter(action='ignore', category=UserWarning)
|
||||
|
||||
|
||||
from core.leras import nn
|
||||
nn.initialize_main_env()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue