From 92d448621489a18b54508033fc544905f39950bb Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Sat, 8 Jul 2023 12:06:23 -0400 Subject: [PATCH] don't write 'version:' to the invokeai.yaml file --- invokeai/app/services/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invokeai/app/services/config.py b/invokeai/app/services/config.py index aa067d9d2e..7b7e84eb59 100644 --- a/invokeai/app/services/config.py +++ b/invokeai/app/services/config.py @@ -168,7 +168,7 @@ from argparse import ArgumentParser from omegaconf import OmegaConf, DictConfig from pathlib import Path from pydantic import BaseSettings, Field, parse_obj_as -from typing import ClassVar, Dict, List, Literal, Union, get_origin, get_type_hints, get_args +from typing import ClassVar, Dict, List, Set, Literal, Union, get_origin, get_type_hints, get_args INIT_FILE = Path('invokeai.yaml') MODEL_CORE = Path('models/core') @@ -269,8 +269,8 @@ class InvokeAISettings(BaseSettings): parser.add_parser(cls.cmd_name(), help=cls.__doc__) @classmethod - def _excluded(self)->List[str]: - return ['type','initconf'] + def _excluded(self)->Set[str]: + return {'type','initconf','version'} class Config: env_file_encoding = 'utf-8'