Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#8508 from vladmandic/lightning
Browse files Browse the repository at this point in the history
allow usage of latest pytorch_lighning
  • Loading branch information
AUTOMATIC1111 authored Mar 25, 2023
2 parents 009bc9f + f2ed629 commit d9b9bf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pillow==9.4.0
realesrgan==0.3.0
torch
omegaconf==2.2.3
pytorch_lightning==1.7.6
pytorch_lightning==1.9.4
scikit-image==0.19.2
fonts
font-roboto
Expand Down
3 changes: 3 additions & 0 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import importlib
import signal
import re
import warnings
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.middleware.gzip import GZipMiddleware
Expand All @@ -17,6 +18,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")
startup_timer.record("import torch")

import gradio
Expand Down

0 comments on commit d9b9bf7

Please sign in to comment.