aboutsummaryrefslogtreecommitdiffstats
path: root/modules/realesrgan_model.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-10 06:02:23 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-10 06:02:23 +0000
commit4b854806d98cf5ccd48e5cd99c172613da7937f0 (patch)
treed4126545441e5b25fbb8aa19011499408d320e17 /modules/realesrgan_model.py
parentf741a98baccae100fcfb40c017b5c35c5cba1b0c (diff)
downloadstable-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 'modules/realesrgan_model.py')
-rw-r--r--modules/realesrgan_model.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/realesrgan_model.py b/modules/realesrgan_model.py
index 9ec1adf2..c24d8dbb 100644
--- a/modules/realesrgan_model.py
+++ b/modules/realesrgan_model.py
@@ -17,9 +17,9 @@ class UpscalerRealESRGAN(Upscaler):
self.user_path = path
super().__init__()
try:
- from basicsr.archs.rrdbnet_arch import RRDBNet
- from realesrgan import RealESRGANer
- from realesrgan.archs.srvgg_arch import SRVGGNetCompact
+ from basicsr.archs.rrdbnet_arch import RRDBNet # noqa: F401
+ from realesrgan import RealESRGANer # noqa: F401
+ from realesrgan.archs.srvgg_arch import SRVGGNetCompact # noqa: F401
self.enable = True
self.scalers = []
scalers = self.load_models(path)