Skip to content

Commit 3dbcf9a

Browse files
author
Lincoln Stein
committed
remove use of original_config_file in load_single_file()
1 parent b0574f8 commit 3dbcf9a

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

invokeai/backend/model_manager/load/model_loaders/stable_diffusion.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def _load_from_singlefile(
105105
load_class = load_classes[config.base][config.variant]
106106
except KeyError as e:
107107
raise Exception(f"No diffusers pipeline known for base={config.base}, variant={config.variant}") from e
108-
original_config_file = self._app_config.legacy_conf_path / config.config_path
109108
prediction_type = config.prediction_type.value
110109
upcast_attention = config.upcast_attention
111110

@@ -120,9 +119,7 @@ def _load_from_singlefile(
120119
with SilenceWarnings():
121120
pipeline = load_class.from_single_file(
122121
config.path,
123-
config=original_config_file,
124122
torch_dtype=self._torch_dtype,
125-
local_files_only=True,
126123
prediction_type=prediction_type,
127124
upcast_attention=upcast_attention,
128125
load_safety_checker=False,

invokeai/backend/model_manager/load/model_loaders/vae.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def _load_model(
3030
if isinstance(config, VAECheckpointConfig):
3131
return AutoencoderKL.from_single_file(
3232
config.path,
33-
config=self._app_config.legacy_conf_path / config.config_path,
3433
torch_dtype=self._torch_dtype,
35-
local_files_only=True,
3634
)
3735
else:
3836
return super()._load_model(config, submodel_type)

0 commit comments

Comments
 (0)