-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add techjedi's image import script #4171
Conversation
4043a4c
to
12e51c8
Compare
Note that this needs further work to make runnable in headless mode, but it is good to merge now given the demand for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you!
Can you please attach your test images to this PR so those of us without old images can test?
I made one comment, but I'm not sure if any change is really needed.
(I also ran black on it)
- Added techjedi github and real names
All the metadata samples provided by lstein and others, as well as the ones I pulled from outdir and some of my own can be found at the link below: Versions included: 1.15, 2.0.2, 2.2.3, 2.2.4, 2.2.5, 2.3.0, 2.3.0_a0, 2.3.1, 2.3.5, 2.3.5_post2, 3.0.0_a0, 3.0.0_b1-5, 3.0.0_b6+, (also includes pre1.x files that only had a dream tag with prompt/seed.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import works really well!! Amazing job 👏
(apply suggestion to fix a typo, otherwise LGTM)
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
This PR adds the
invokeai-import-images
script, which imports a directory of 2.. -generated images into the current InvokeAI root directory, preserving and converting their metadata. The script also handles 3.* images.Many thanks to @techjedi for writing this. This version differs from the original in two minor respects:
invokeai-import-images
command.prompt_toolkit
library.To Test
invokeai-import-images
Related Tickets & Documents
This is a frequently-requested feature on Discord, but I couldn't find an Issue.
QA Instructions, Screenshots, Recordings
Added/updated tests?