mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-01 03:01:13 -04:00
set default max_models to 2 internally as well as as arg
This commit is contained in:
@@ -20,7 +20,7 @@ from omegaconf import OmegaConf
|
||||
from omegaconf.errors import ConfigAttributeError
|
||||
from ldm.util import instantiate_from_config
|
||||
|
||||
DEFAULT_MAX_MODELS=3
|
||||
DEFAULT_MAX_MODELS=2
|
||||
|
||||
class ModelCache(object):
|
||||
def __init__(self, config:OmegaConf, device_type:str, precision:str, max_loaded_models=DEFAULT_MAX_MODELS):
|
||||
|
||||
Reference in New Issue
Block a user