Skip to content

Commit d4da77f

Browse files
Lincoln Steinhipsterusername
authored andcommitted
remove deprecated options from config
1 parent 739baa7 commit d4da77f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

invokeai/app/services/config.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,10 @@ def _excluded_from_yaml(self) -> List[str]:
286286
return [
287287
"type",
288288
"initconf",
289-
"gpu_mem_reserved",
290-
"max_loaded_models",
291289
"version",
292290
"from_file",
293291
"model",
294-
"restore",
295292
"root",
296-
"nsfw_checker",
297293
]
298294

299295
class Config:
@@ -392,15 +388,11 @@ class InvokeAIAppConfig(InvokeAISettings):
392388
internet_available : bool = Field(default=True, description="If true, attempt to download models on the fly; otherwise only use local models", category='Features')
393389
log_tokenization : bool = Field(default=False, description="Enable logging of parsed prompt tokens.", category='Features')
394390
patchmatch : bool = Field(default=True, description="Enable/disable patchmatch inpaint code", category='Features')
395-
restore : bool = Field(default=True, description="Enable/disable face restoration code (DEPRECATED)", category='DEPRECATED')
396391

397392
always_use_cpu : bool = Field(default=False, description="If true, use the CPU for rendering even if a GPU is available.", category='Memory/Performance')
398393
free_gpu_mem : bool = Field(default=False, description="If true, purge model from GPU after each generation.", category='Memory/Performance')
399-
max_loaded_models : int = Field(default=3, gt=0, description="(DEPRECATED: use max_cache_size) Maximum number of models to keep in memory for rapid switching", category='DEPRECATED')
400394
max_cache_size : float = Field(default=6.0, gt=0, description="Maximum memory amount used by model cache for rapid switching", category='Memory/Performance')
401395
max_vram_cache_size : float = Field(default=2.75, ge=0, description="Amount of VRAM reserved for model storage", category='Memory/Performance')
402-
gpu_mem_reserved : float = Field(default=2.75, ge=0, description="DEPRECATED: use max_vram_cache_size. Amount of VRAM reserved for model storage", category='DEPRECATED')
403-
nsfw_checker : bool = Field(default=True, description="DEPRECATED: use Web settings to enable/disable", category='DEPRECATED')
404396
precision : Literal[tuple(['auto','float16','float32','autocast'])] = Field(default='auto',description='Floating point precision', category='Memory/Performance')
405397
sequential_guidance : bool = Field(default=False, description="Whether to calculate guidance in serial instead of in parallel, lowering memory requirements", category='Memory/Performance')
406398
xformers_enabled : bool = Field(default=True, description="Enable/disable memory-efficient attention", category='Memory/Performance')
@@ -418,9 +410,7 @@ class InvokeAIAppConfig(InvokeAISettings):
418410
outdir : Path = Field(default='outputs', description='Default folder for output images', category='Paths')
419411
from_file : Path = Field(default=None, description='Take command input from the indicated file (command-line client only)', category='Paths')
420412
use_memory_db : bool = Field(default=False, description='Use in-memory database for storing image metadata', category='Paths')
421-
ignore_missing_core_models : bool = Field(default=False, description='Ignore missing models in models/core/convert')
422-
423-
model : str = Field(default='stable-diffusion-1.5', description='Initial model name', category='Models')
413+
ignore_missing_core_models : bool = Field(default=False, description='Ignore missing models in models/core/convert', category='Features')
424414

425415
log_handlers : List[str] = Field(default=["console"], description='Log handler. Valid options are "console", "file=<path>", "syslog=path|address:host:port", "http=<url>"', category="Logging")
426416
# note - would be better to read the log_format values from logging.py, but this creates circular dependencies issues

0 commit comments

Comments
 (0)