diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-25 11:03:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 11:03:59 +0000 |
commit | d9b9bf78b3189a7f7bb62b16182958866856eaae (patch) | |
tree | bac0512eadd508887623442871864ba19b21ec63 /webui.py | |
parent | 009bc9f534a4f6d19ece5b5dafe3421421085fb1 (diff) | |
parent | f2ed6295b9041e217c50ad57ca2f609aa6f1bac9 (diff) | |
download | stable-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.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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
|