diff --git a/invokeai/app/services/model_manager/model_manager_default.py b/invokeai/app/services/model_manager/model_manager_default.py index e5a9081510..b160ff6fed 100644 --- a/invokeai/app/services/model_manager/model_manager_default.py +++ b/invokeai/app/services/model_manager/model_manager_default.py @@ -83,9 +83,7 @@ class ModelManagerService(ModelManagerServiceBase): logger=logger, execution_device=execution_device, ) - convert_cache = ModelConvertCache( - cache_path=app_config.convert_cache_path, max_size=app_config.convert_cache - ) + convert_cache = ModelConvertCache(cache_path=app_config.convert_cache_path, max_size=app_config.convert_cache) loader = ModelLoadService( app_config=app_config, ram_cache=ram_cache, diff --git a/invokeai/backend/image_util/safety_checker.py b/invokeai/backend/image_util/safety_checker.py index 679aa2fa10..a5a72d9efc 100644 --- a/invokeai/backend/image_util/safety_checker.py +++ b/invokeai/backend/image_util/safety_checker.py @@ -4,7 +4,6 @@ wraps the safety_checker model. It respects the global "nsfw_checker" configuration variable, that allows the checker to be supressed. """ - import numpy as np from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker from PIL import Image diff --git a/invokeai/backend/util/logging.py b/invokeai/backend/util/logging.py index a6a75ee2b5..9f5381db34 100644 --- a/invokeai/backend/util/logging.py +++ b/invokeai/backend/util/logging.py @@ -339,9 +339,7 @@ class InvokeAILogger(object): # noqa D102 loggers: Dict[str, logging.Logger] = {} @classmethod - def get_logger( - cls, name: str = "InvokeAI", config: InvokeAIAppConfig = get_config() - ) -> logging.Logger: # noqa D102 + def get_logger(cls, name: str = "InvokeAI", config: InvokeAIAppConfig = get_config()) -> logging.Logger: # noqa D102 if name in cls.loggers: return cls.loggers[name] diff --git a/invokeai/frontend/cli/app_arg_parser.py b/invokeai/frontend/cli/app_arg_parser.py index cc3d5ac098..b15c8c9b6a 100644 --- a/invokeai/frontend/cli/app_arg_parser.py +++ b/invokeai/frontend/cli/app_arg_parser.py @@ -9,6 +9,4 @@ root_help = r"""Sets a root directory for the app. If omitted, the app will sear app_arg_parser = ArgumentParser(description="Invoke Studio", formatter_class=RawTextHelpFormatter) app_arg_parser.add_argument("--root", type=str, help=root_help) -app_arg_parser.add_argument( - "--version", action="version", version=__version__, help="Displays the version and exits." -) +app_arg_parser.add_argument("--version", action="version", version=__version__, help="Displays the version and exits.")