diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 06:02:23 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 06:02:23 +0000 |
commit | 4b854806d98cf5ccd48e5cd99c172613da7937f0 (patch) | |
tree | d4126545441e5b25fbb8aa19011499408d320e17 /webui.py | |
parent | f741a98baccae100fcfb40c017b5c35c5cba1b0c (diff) | |
download | stable-diffusion-webui-gfx803-4b854806d98cf5ccd48e5cd99c172613da7937f0.tar.gz stable-diffusion-webui-gfx803-4b854806d98cf5ccd48e5cd99c172613da7937f0.tar.bz2 stable-diffusion-webui-gfx803-4b854806d98cf5ccd48e5cd99c172613da7937f0.zip |
F401 fixes for ruff
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,12 +16,12 @@ from packaging import version import logging
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
-from modules import paths, timer, import_hook, errors
+from modules import paths, timer, import_hook, errors # noqa: F401
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
+import pytorch_lightning # noqa: F401 # 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")
@@ -31,12 +31,12 @@ startup_timer.record("import torch") import gradio
startup_timer.record("import gradio")
-import ldm.modules.encoders.modules
+import ldm.modules.encoders.modules # noqa: F401
startup_timer.record("import ldm")
from modules import extra_networks, ui_extra_networks_checkpoints
from modules import extra_networks_hypernet, ui_extra_networks_hypernets, ui_extra_networks_textual_inversion
-from modules.call_queue import wrap_queued_call, queue_lock, wrap_gradio_gpu_call
+from modules.call_queue import wrap_queued_call, queue_lock
# Truncate version number of nightly/local build of PyTorch to not cause exceptions with CodeFormer or Safetensors
if ".dev" in torch.__version__ or "+git" in torch.__version__:
|