Fallback to estimated prediction if .yaml prediction not suitable (#2273)

This commit is contained in:
catboxanon
2024-11-06 23:49:18 -05:00
committed by GitHub
parent f4afbaff45
commit 6e1a7908b4

View File

@@ -319,6 +319,9 @@ def forge_loader(sd, additional_state_dicts=None):
)
if yaml_config_prediction_type == 'v' or yaml_config_prediction_type.endswith(".VScaling"):
yaml_config_prediction_type = 'v_prediction'
else:
# Use estimated prediction config if no suitable prediction type found
yaml_config_prediction_type = ''
if has_prediction_type:
if yaml_config_prediction_type: