mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
df9a903a50
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. |
||
---|---|---|
.. | ||
.storybook | ||
config | ||
docs | ||
public/locales | ||
scripts | ||
src | ||
static/docs | ||
tests | ||
__init__.py | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.js | ||
favicon.ico | ||
index.html | ||
package.json | ||
pnpm-lock.yaml | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |