mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(mm): fix models.yaml
backup filename
Was erroneously `models.bak`, now `models.yaml.bak`
This commit is contained in:
parent
c47dbf7258
commit
eec82afd89
@ -329,7 +329,7 @@ class ModelInstallService(ModelInstallServiceBase):
|
||||
|
||||
# Rename `models.yaml` to `models.yaml.bak` to prevent re-migration
|
||||
yaml_path = self._app_config.model_conf_path
|
||||
yaml_path.rename(yaml_path.with_suffix(".bak"))
|
||||
yaml_path.rename(yaml_path.with_suffix(".yaml.bak"))
|
||||
|
||||
def scan_directory(self, scan_dir: Path, install: bool = False) -> List[str]: # noqa D102
|
||||
self._cached_model_paths = {Path(x.path).absolute() for x in self.record_store.all_models()}
|
||||
|
Loading…
Reference in New Issue
Block a user