mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(config): restore missing config field assignment in migration
This commit is contained in:
parent
d487102904
commit
7d8b011f89
@ -90,6 +90,9 @@ def migrate_v400_to_v401(original_config: AppConfigDict) -> AppConfigDict:
|
||||
# autocast was removed from precision in v4.0.1
|
||||
if k == "precision" and v == "autocast":
|
||||
migrated_config["precision"] = "auto"
|
||||
# skip unknown fields
|
||||
elif k in InvokeAIAppConfig.model_fields:
|
||||
migrated_config[k] = v
|
||||
migrated_config["schema_version"] = "4.0.1"
|
||||
return migrated_config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user