aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorVladimir Mandic <mandic00@live.com>2023-03-11 16:13:21 +0000
committerGitHub <noreply@github.com>2023-03-11 16:13:21 +0000
commitfb088bfb6409efa1562f811539998920ec0c0621 (patch)
tree5ac8501dc9dab10de81f54a559d34f60f54e2668 /webui.py
parent94ffa9fc5386e51f20692ab46906135e8de33110 (diff)
downloadstable-diffusion-webui-gfx803-fb088bfb6409efa1562f811539998920ec0c0621.tar.gz
stable-diffusion-webui-gfx803-fb088bfb6409efa1562f811539998920ec0c0621.tar.bz2
stable-diffusion-webui-gfx803-fb088bfb6409efa1562f811539998920ec0c0621.zip
all usage of newer pytorch_lighning
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index 32561877..9baa7da5 100644
--- a/webui.py
+++ b/webui.py
@@ -17,6 +17,8 @@ from modules import paths, timer, import_hook, errors
startup_timer = timer.Timer()
import torch
+import pytorch_lightning # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
+warnings.filterwarnings(action="ignore", category=DeprecationWarning)
startup_timer.record("import torch")
import gradio