InvokeAI/invokeai/frontend/web
psychedelicious df9a903a50 fix(ui): do not cache VAE decode on linear
The VAE decode on linear graphs was getting cached. This caused some unexpected behaviour around image outputs.

For example, say you ran the exact same graph twice. The first time, you get an image written to disk and added to gallery. The second time, the VAE decode is cached and no image file is created. But, the UI still gets the graph complete event and selects the first image in the gallery. The second run does not add an image to the gallery.

There are probbably edge cases related to this - the UI does not expect this to happen. I'm not sure how to handle it any better in the UI.

The solution is to not cache VAE decode on the linear graphs, ever. If you run a graph twice in linear, you expect two images.

This simple change disables the node cache for terminal VAE decode nodes in all linear graphs, ensuring you always get images. If they graph was fully cached, all images after the first will be created very quickly of course.
2023-12-16 12:37:49 +11:00
..
.storybook feat(ui): disable storybook telemetry 2023-12-09 16:03:09 +11:00
config export theme nad move chakra to peer dep 2023-08-01 08:54:03 +10:00
docs feat(ui): migrate to pnpm 2023-12-09 16:00:37 +11:00
public/locales feat(ui): workflow menu tweaks 2023-12-14 08:30:59 -05:00
scripts feat(ui): remove superseded logic in typegen.js 2023-11-24 19:30:37 -08:00
src fix(ui): do not cache VAE decode on linear 2023-12-16 12:37:49 +11:00
static/docs feat(api): serve app via route & add cache-control: no-store 2023-10-19 08:52:02 +11:00
tests Partial migration of UI to nodes API (#3195) 2023-04-22 13:10:20 +10:00
__init__.py Run python black 2023-07-28 09:46:44 -04:00
.eslintignore feat: workflow saving and loading 2023-08-24 21:42:32 +10:00
.eslintrc.js feat(ui): add eslint unused-imports plugin 2023-12-09 16:12:00 +11:00
.gitignore feat: no frontend build in repo 2023-12-11 12:30:13 +11:00
.prettierignore feat(ui): migrate to pnpm 2023-12-09 16:00:37 +11:00
.prettierrc.js feat(ui): migrate theming to chakra ui 2023-03-06 20:03:39 +11:00
favicon.ico all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
index.html Prevent caching to ensure updated UI is shown 2023-10-04 22:32:00 +11:00
package.json feat(ui): add eslint unused-imports plugin 2023-12-09 16:12:00 +11:00
pnpm-lock.yaml feat(ui): add eslint unused-imports plugin 2023-12-09 16:12:00 +11:00
tsconfig.json fix(ui): remove .ladle from tsconfig 2023-12-09 16:03:09 +11:00
tsconfig.node.json feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00
vite.config.ts build(ui): treeshake lodash via lodash-es 2023-04-28 21:56:43 +10:00