aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-13 00:08:19 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-13 00:08:19 +0300
commit5cf623c58ef3c158e8b25f7c3d516ffc16769fa4 (patch)
tree9a4eeda327b633dd2d881d125547d33fd0a131ff
parent60397a7800d7e01d9a75e0179e3d2c10aa0002a9 (diff)
linter
-rw-r--r--modules/paths.py2
-rw-r--r--modules/sd_models_xl.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/modules/paths.py b/modules/paths.py
index 1100a8dc..c6f8904e 100644
--- a/modules/paths.py
+++ b/modules/paths.py
@@ -41,7 +41,7 @@ for d, must_exist, what, options in path_dirs:
# import sgm and remove it from sys.path so that when a script imports scripts.something, it doesbn't use sgm's scripts dir.
sys.path.insert(0, d)
- import sgm
+ import sgm # noqa: F401
sys.path.pop(0)
else:
sys.path.append(d)
diff --git a/modules/sd_models_xl.py b/modules/sd_models_xl.py
index e8e270c3..9224c1a3 100644
--- a/modules/sd_models_xl.py
+++ b/modules/sd_models_xl.py
@@ -1,7 +1,5 @@
from __future__ import annotations
-import sys
-
import torch
import sgm.models.diffusion