InvokeAI/invokeai/frontend
psychedelicious a071873327 feat(ui): fix a lot of model-related crashes/bugs
We were storing all types of models by their model ID, which is a format like `sd-1/main/deliberate`.

This meant we had to do a lot of extra parsing, because nodes actually wants something like `{base_model: 'sd-1', model_name: 'deliberate'}`.

Some of this parsing was done with zod's error-throwing `parse()` method, and in other places it was done with brittle string parsing.

This commit refactors the state to use the object form of models.

There is still a bit of string parsing done in the to construct the ID from the object form, but it's far less complicated.

Also, the zod parsing is now done using `safeParse()`, which does not throw. This requires a few more conditional checks, but should prevent further crashes.
2023-07-14 16:07:22 +10:00
..
CLI convert add_model(), del_model(), list_models() etc to use bifurcated names 2023-05-13 14:44:44 -04:00
install model installer calls invokeai-configure if something wrong with root 2023-07-08 12:45:23 -04:00
merge model merge backend, CLI and TUI working 2023-07-06 12:21:42 -04:00
training fix potential race condition in config system 2023-05-25 20:41:26 -04:00
web feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
__init__.py all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
legacy_launch_invokeai.py restore ability to launch web server with invokeai --web 2023-07-07 10:07:15 -04:00