mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 21:13:20 -07:00
fix for linux
This commit is contained in:
parent
dbf28eeebf
commit
7f609d0f0a
5 changed files with 31 additions and 41 deletions
10
core/osex.py
10
core/osex.py
|
@ -33,4 +33,12 @@ def get_screen_size():
|
|||
elif 'linux' in sys.platform:
|
||||
pass
|
||||
|
||||
return (1366, 768)
|
||||
return (1366, 768)
|
||||
|
||||
def linux_ignore_UserWarning():
|
||||
if sys.platform[0:3] != 'win':
|
||||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue