-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refrain from writing deprecated legacy options to invokeai.yaml #4190
Refrain from writing deprecated legacy options to invokeai.yaml #4190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this, assuming it resolves the issue, but I did raise some concerns as comments, which may be relevant.
Ah, I missed your comments in the PR itself about I'd still like to understand why this PR couldn't just add that as a safeguard, and then remove the |
I will remove the deprecated fields and see if it causes any issues. As I recall, the presence of additional fields in |
I've marked the conversations resolved so we can get this important fix in, but I think there's some room to improve how we handle |
I've removed the deprecated options from config, tested both install and web server, and all seems well. |
e3aec04
to
d4da77f
Compare
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
When migrating the
invokeai.init
legacy configuration file to the new .yaml format, do not copy any deprecated fields. This PR also activates the Pydanticvalidate_assignment
behavior which raises an exception when an instantiated config object is updated with invalid values.Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Added/updated tests?
have not been included
[optional] Are there any post deployment tasks we need to perform?