mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(mm): provide ckpt config as stream to diffusers
Fixes converting ckpt main models
This commit is contained in:
parent
9fa9ebe386
commit
9d045964d6
@ -79,11 +79,12 @@ class StableDiffusionDiffusersModel(GenericDiffusersLoader):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self._logger.info(f"Converting {model_path} to diffusers format")
|
self._logger.info(f"Converting {model_path} to diffusers format")
|
||||||
|
with open(self._app_config.root_path / config_file, "r") as config_stream:
|
||||||
convert_ckpt_to_diffusers(
|
convert_ckpt_to_diffusers(
|
||||||
model_path,
|
model_path,
|
||||||
output_path,
|
output_path,
|
||||||
model_type=self.model_base_to_model_type[base],
|
model_type=self.model_base_to_model_type[base],
|
||||||
original_config_file=self._app_config.root_path / config_file,
|
original_config_file=config_stream,
|
||||||
extract_ema=True,
|
extract_ema=True,
|
||||||
from_safetensors=model_path.suffix == ".safetensors",
|
from_safetensors=model_path.suffix == ".safetensors",
|
||||||
precision=self._torch_dtype,
|
precision=self._torch_dtype,
|
||||||
|
Loading…
Reference in New Issue
Block a user