aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-25 11:03:59 +0000
committerGitHub <noreply@github.com>2023-03-25 11:03:59 +0000
commitd9b9bf78b3189a7f7bb62b16182958866856eaae (patch)
treebac0512eadd508887623442871864ba19b21ec63 /webui.py
parent009bc9f534a4f6d19ece5b5dafe3421421085fb1 (diff)
parentf2ed6295b9041e217c50ad57ca2f609aa6f1bac9 (diff)
downloadstable-diffusion-webui-gfx803-d9b9bf78b3189a7f7bb62b16182958866856eaae.tar.gz
stable-diffusion-webui-gfx803-d9b9bf78b3189a7f7bb62b16182958866856eaae.tar.bz2
stable-diffusion-webui-gfx803-d9b9bf78b3189a7f7bb62b16182958866856eaae.zip
Merge pull request #8508 from vladmandic/lightning
allow usage of latest pytorch_lighning
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index 027f3579..30f3e4a1 100644
--- a/webui.py
+++ b/webui.py
@@ -4,6 +4,7 @@ import time
import importlib
import signal
import re
+import warnings
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.middleware.gzip import GZipMiddleware
@@ -17,6 +18,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, module="pytorch_lightning")
startup_timer.record("import torch")
import gradio