Closed SkyrimLL closed 2 weeks ago
What I meant to report is that the import images script is currently not working at all after a fresh install of Invoke 4.2.8 I tried launching the bat file with the root and config parameters in case they were not automatically detected but that didn't help. invoke-web is working fine otherwise. It is just there is something breaking that import script only.
Images do not get automatically detected in the output folder if database file is removed or changed. If i'm not mistaken, support for import images and DB management scripts were abandoned somewhere between 3.7.x-4.0.x versions. So it is not a bug. Documentation is pretty much outdated in some places. As a work around you can just drag and drop your old images into Invoke UI window. Although they will be places into assets tab. Still, you can recall parameters, read metadata and workflow from them. Keep in mind, these settings anyways wont produce you similar images if they are older than 3.0.2 or something. Something was changes in the way models respond to prompts or something along the line. Well, there's a chance someone will volunteer to write a script one day, though.
Thanks for the reply.. good to know.
I developed a script to back up invoke db images to an archive folder, both into time based sessions and boards folders, to make them more easily useable outside of Invoke. I was thinking of writing something for the reverse direction but that import script seemed to do what I wanted, so maybe I will work on it after all :)
I saw the 'invokeai-import-images' is only available as an .exe file. Is the source code available anywhere? I am interested in how Board IDs are generated.
Edit: Answering my own question. I got the script from the repo: InvokeAI/invokeai/frontend/install/import_images.py
This script isn't supposed to be bundled with the app - it doesn't work. Strongly suggest not running it as it can cause data loss.
Out of curiosity, can you share details about what causes data loss with that script? Is it because UUIDs in file names are not guaranteed to be unique between instances of Invoke AI?
I don't recall the specifics, sorry - was few months ago. Actually, it could have been the "db maintenance" script that caused data loss. But per user reports, neither work as they are intended to as their contributor hasn't been around for a while and we haven't got anybody to keep them up to date.
They were actually removed from the app launcher script some time ago, but we forgot to remove them from the python package's config. As a result, they were still distributed with the package, just a bit harder to stumble across.
Thanks for the reply. I reused some of the code of the import script to allow me to merge multiple image folders into one, at the risk of potentially missing an image or two if their IDs were the same. Looks like it worked so far. I now have a single database with the latest version instead of multiple old ones, so I am happy.
Is there an existing issue for this problem?
Operating system
Windows
GPU vendor
Nvidia (CUDA)
GPU model
RTX3090
GPU VRAM
24GB
Version number
4.2.8
Browser
Chrome (up to date)
Python dependencies
No response
What happened
I am trying to run invokeai-import-images to consolidate multiple image folders from old versions of Invoke into one instance and database. Running the command in the developer console results in this error message:
What you expected to happen
I expected the script to run as described on this page: https://invoke-ai.github.io/InvokeAI/features/UTILITIES/
How to reproduce the problem
Start invoke.bat Select option 2. Open the developer console Enter 'invokeai-import-images'
Additional context
No response
Discord username
No response