Fix typo in .yaml config load (#2228)

This commit is contained in:
catboxanon
2024-10-31 07:09:27 -04:00
committed by GitHub
parent b691b1e755
commit 6f4350d65f

View File

@@ -313,7 +313,7 @@ def forge_loader(sd, additional_state_dicts=None):
has_prediction_type = 'scheduler' in huggingface_components and hasattr(huggingface_components['scheduler'], 'config') and 'prediction_type' in huggingface_components['scheduler'].config
if yaml_config is not None:
model_config_params = config.get('model', {}).get('params', {})
model_config_params = yaml_config.get('model', {}).get('params', {})
if "parameterization" in model_config_params:
if model_config_params["parameterization"] == "v":
yaml_config_prediction_type = 'v_prediction'