diff options
author | space-nuko <24979496+space-nuko@users.noreply.github.com> | 2023-03-27 21:26:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 21:26:23 +0000 |
commit | 082613036aa7b9a8a008384b1770046d6714bc28 (patch) | |
tree | a14ceb8cc54e7359058376ff6eb05bc3471f5e67 /webui.py | |
parent | d86beb822832c9162714cf0a3567ad087839a2ac (diff) | |
parent | 955df7751eef11bb7697e2d77f6b8a6226b21e13 (diff) | |
download | stable-diffusion-webui-gfx803-082613036aa7b9a8a008384b1770046d6714bc28.tar.gz stable-diffusion-webui-gfx803-082613036aa7b9a8a008384b1770046d6714bc28.tar.bz2 stable-diffusion-webui-gfx803-082613036aa7b9a8a008384b1770046d6714bc28.zip |
Merge branch 'master' into remove-watermark-option
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 4 insertions, 1 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
@@ -240,7 +243,7 @@ def webui(): shared.demo = modules.ui.create_ui()
startup_timer.record("create ui")
- if cmd_opts.gradio_queue:
+ if not cmd_opts.no_gradio_queue:
shared.demo.queue(64)
gradio_auth_creds = []
|