InvokeAI
InvokeAI copied to clipboard
[bug]: WebUI: thumbnails folder seems to never clean
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
8
What happened?
I just noticed there are "thumbnails" folder and "temp-images" folder in the "output" folder, that contains small copies of all the images I've generated. Including those that I deleted a month ago. And intermediate steps. And all the junk.
First, this is a waste of space.
Second, this may be a breach of privacy.
Thumbnails for deleted images must also be deleted. Temp images should be cleared both on start and shutdown of the backend. (On the start in case previous launch was a crash).
Screenshots
No response
Additional context
No response
Contact Details
No response
- Thumbnails are deleted when you delete an image from the Gallery of the UI. I just tested this on the latest PR and seems to be working as intended. Maybe something bugged out on your end at some point that prevented this from happening for older images.
- Intermediate images are only saved when you set the preview mode as 'Accurate'. In this case, it is presumed that the user wants to save these intermediate steps for usages such as making a generation video and etc. So we do not delete them. If you do not want to save the intermediate steps to disk, please use the 'Fast' mode for the previews.
- As for the temp-images, they are created during your work on the canvas. These images are required in order to enable canvas history letting you undo and redo. You are provided with an option on the canvas to delete this temp images. Look under Settings of the Canvas. Do note that clearing temp files will remove the history of your canvas and lose any undo or redo ability.
- Breach of privacy in what sense? Everything that you do is completely local and offline to your system and not connected to anything.
- We do not auto clear temp files for the same reason mentioned in point 3. They allow the user to retain undo history over sessions. This is an extremely useful feature to many. And for those who do not need it, we provided an option to clear.
1: I had checked the folders again, after doing some work. While thumbnails for most deleted files are gone, some stay. I can not understand the logics of when thumbnails are deleted and when they aren't. If I do, I'll add steps to reproduce, here.
3: Temp images are cleared when I press the button on the unified canvas. That is OK.
4: People share computers more than you think and more than they want to. Silently keeping user files in technical folders should always be avoided.
There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.
Still seeing this, and may have found one of the ways the clutter is happening. To reproduce:
- Use image to image.
- Set seed to random and hit Invoke a few times.
- Observe the images being saved in
/outputs/images/ - Press discard all
- Images are not deleted, and aren't deleted on exit either.
- Clear canvas also doesn't delete the images
After a week of using InvokeAI, love it by the way, I had thousands of files that were just in limbo, making a mess and possibly a privacy issue as mentioned.
Invoke 4.2.4 on Linux.