mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 11:11:37 +00:00
Added specialized scaler training to ip adapters
This commit is contained in:
@@ -43,9 +43,7 @@ def preprocess_config(config: OrderedDict, name: str = None):
|
||||
if "name" not in config["config"] and name is None:
|
||||
raise ValueError("config file must have a config.name key")
|
||||
# we need to replace tags. For now just [name]
|
||||
if name is not None:
|
||||
config["config"]["name"] = name
|
||||
else:
|
||||
if name is None:
|
||||
name = config["config"]["name"]
|
||||
config_string = json.dumps(config)
|
||||
config_string = config_string.replace("[name]", name)
|
||||
|
||||
Reference in New Issue
Block a user