mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
6e869e6038
With the change to model identifiers from v3 to v4, if a user had persisted redux state with the old format, we could get unexpected runtime errors when rehydrating state if we try to access model attributes that no longer exist. For example, the CLIP Skip component does this: ```ts CLIP_SKIP_MAP[model.base].maxClip ``` In v3, models had a `base_type` attribute, but it is renamed to `base` in v4. This code therefore causes a runtime error: - `model.base` is `undefined` - `CLIP_SKIP_MAP[undefined]` is also undefined - `undefined.maxClip` is a runtime error! Resolved by adding a migration for the redux slices that have model identifiers. The migration simply resets the slice or the part of the slice that is affected, when it's simple to do a partial reset. Closes #6000 |
||
---|---|---|
.. | ||
cli | ||
install | ||
web | ||
__init__.py |