mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-18 23:30:46 +02:00
Disable "TypedStorage is deprecated" user warnings
These warnings clog up the logfiles and worry users.
This commit is contained in:
parent
70a37fda57
commit
ae52d9ef22
@ -5,6 +5,7 @@ import socket
|
|||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import urllib
|
import urllib
|
||||||
|
import warnings
|
||||||
|
|
||||||
from easydiffusion import task_manager
|
from easydiffusion import task_manager
|
||||||
from easydiffusion.utils import log
|
from easydiffusion.utils import log
|
||||||
@ -86,6 +87,9 @@ def init():
|
|||||||
os.makedirs(USER_UI_PLUGINS_DIR, exist_ok=True)
|
os.makedirs(USER_UI_PLUGINS_DIR, exist_ok=True)
|
||||||
os.makedirs(USER_SERVER_PLUGINS_DIR, exist_ok=True)
|
os.makedirs(USER_SERVER_PLUGINS_DIR, exist_ok=True)
|
||||||
|
|
||||||
|
# https://pytorch.org/docs/stable/storage.html
|
||||||
|
warnings.filterwarnings('ignore', category=UserWarning, message='TypedStorage is deprecated')
|
||||||
|
|
||||||
load_server_plugins()
|
load_server_plugins()
|
||||||
|
|
||||||
update_render_threads()
|
update_render_threads()
|
||||||
|
Loading…
Reference in New Issue
Block a user