Fix model name bug with sd1

This commit is contained in:
Benjamin Berman 2025-08-11 12:08:25 -07:00 committed by GitHub
parent cd17b42664
commit 027648e398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,8 @@ class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder):
model_options = {**model_options, "model_name": "clip_l"}
if "model_name" in model_options and "clip" not in model_options["model_name"].lower() and textmodel_json_config is None:
logger.warning(f"Text encoder {model_options["model_name"]} provided a None textmodel_json_config, when it should have been an empty dict")
_model_name = model_options['model_name']
logger.warning(f"Text encoder {_model_name} provided a None textmodel_json_config, when it should have been an empty dict")
textmodel_json_config = {}
config = get_path_as_dict(textmodel_json_config, "sd1_clip_config.json", package=__package__)