mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-04-23 07:49:33 +00:00
all usage of newer pytorch_lighning
This commit is contained in:
2
webui.py
2
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
|
||||
|
||||
Reference in New Issue
Block a user