mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
update torch
This commit is contained in:
2
webui.py
2
webui.py
@@ -20,6 +20,8 @@ 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")
|
||||
warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvision")
|
||||
|
||||
startup_timer.record("import torch")
|
||||
|
||||
import gradio
|
||||
|
Reference in New Issue
Block a user