File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
invokeai/backend/model_manager/load/model_loaders Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ def _load_from_singlefile(
105
105
load_class = load_classes [config .base ][config .variant ]
106
106
except KeyError as e :
107
107
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
109
108
prediction_type = config .prediction_type .value
110
109
upcast_attention = config .upcast_attention
111
110
@@ -120,9 +119,7 @@ def _load_from_singlefile(
120
119
with SilenceWarnings ():
121
120
pipeline = load_class .from_single_file (
122
121
config .path ,
123
- config = original_config_file ,
124
122
torch_dtype = self ._torch_dtype ,
125
- local_files_only = True ,
126
123
prediction_type = prediction_type ,
127
124
upcast_attention = upcast_attention ,
128
125
load_safety_checker = False ,
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ def _load_model(
30
30
if isinstance (config , VAECheckpointConfig ):
31
31
return AutoencoderKL .from_single_file (
32
32
config .path ,
33
- config = self ._app_config .legacy_conf_path / config .config_path ,
34
33
torch_dtype = self ._torch_dtype ,
35
- local_files_only = True ,
36
34
)
37
35
else :
38
36
return super ()._load_model (config , submodel_type )
You can’t perform that action at this time.
0 commit comments