Fix ruff linter (#137)

* Fix ruff linter

* Remove unused imports

* Remove unused imports
This commit is contained in:
Chenlei Hu
2024-02-09 01:35:20 +00:00
committed by GitHub
parent 66c22490c3
commit 6b3ad64388
18 changed files with 25 additions and 39 deletions

View File

@@ -3,6 +3,7 @@ import sys
from modules.paths_internal import models_path, script_path, data_path, extensions_dir, extensions_builtin_dir, cwd # noqa: F401
import modules.safe # noqa: F401
import ldm_patched.utils.path_utils as ldm_patched_path_utils
def mute_sdxl_imports():
@@ -64,8 +65,6 @@ for d, must_exist, what, options in path_dirs:
paths[what] = d
import ldm_patched.utils.path_utils as ldm_patched_path_utils
ldm_patched_path_utils.base_path = data_path
ldm_patched_path_utils.models_dir = models_path
ldm_patched_path_utils.output_directory = os.path.join(data_path, "output")