Some of us that used the 3.0 beta and upgraded through the various iterations now have images in our dbs that have stale prompt keys from b5 and earlier and the result is that the UI grays out the option for "Use Prompt" and we have to copy/paste.
I have written a simple python script that will detect these files in your DB, let you confirm you want to update them. It will take a db backup, then update. After the update, simply refresh the web ui (no restart required) and those images will now allow for the Use Prompt.
Note this script DOES NOT update the metadata blob in the file's EXIF tags. I could implement this if it were desired, but this is just a quick patch to get the functionality from the DB copy of that data.
Usage:
- save the script into your invoke ai 3 root folder
- run from command shell where python scripts can be executed
Enjoy, but use at your own risk. This has been reasonably tested.
For images to be fixed they must be:
- created in 3.0.0 beta 1-5 and already showing in the gallery (e.g. already in the database)
What this script does not do:
- add/import images to the gallery generated from any prior installations (same or earlier version)
- fix the metadata for images added as "assets" to an installation
I will have another script coming soon to do imports from prior versions.