Skip to content
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 ability to export prompt data to text file #78

Open
mlengle opened this issue Apr 16, 2023 · 7 comments
Open

add ability to export prompt data to text file #78

mlengle opened this issue Apr 16, 2023 · 7 comments

Comments

@mlengle
Copy link

mlengle commented Apr 16, 2023

please add ability to export image metadata to a text file

  • export for all scanned files
  • export for selected files (optional)

the format could be plain text like invokeai does in invoke_log.txt

[Generated] "\invoke\outputs\001933.b74dc82b.2350011342.png": "professional illustration of dark room, mysterious (test tube glass green liquid)+ on the floor leaking
detailed, hdr, muted colors, art, pastel -s 25 -S 2350011342 -W 640 -H 768 -C 7.5 -A k_dpmpp_2_a

or some json format

@RupertAvery
Copy link
Owner

That's a useful feature. I'm sure others would like different formats depending on what tool they use.

Would it be dumped into a single text file?

@mlengle
Copy link
Author

mlengle commented May 4, 2023

it can prompt for a file name or gather into a single file, just start with anything and then watch for people's complains/praises :)

as for the formats, anything fits if it's easy to parse with a regexp

@noantidote
Copy link

I would like this feature also. or just be able to mouse highlight the prompts in prompt tab and copy/paste into notepad.

@Woisek
Copy link

Woisek commented Sep 21, 2023

please add ability to export image metadata to a text file

Why don't you just activate the option to save to a TXT file when generating images? 🤔

@noantidote
Copy link

noantidote commented Sep 21, 2023 via email

@Woisek
Copy link

Woisek commented Sep 21, 2023

I still don't quite get it, but if you sort the images already, where is the problem to move the txt files along with the image you keep?
Besides that, what you obviously need, is some external tool, and not something that A1111 should or could do. Once the image is generated (and no further processing is done), the job and purpose of A1111 is over.

The only thing that comes near your request, would be the image browser extension in A1111. But then you have to talk to AlUlkesh if this is even possible and he is willing to implement such a feature. I don't see how or why A1111 should take this task.

Another possibility would be a command line tool, that reads all PNGs in a folder and outputs the prompts into a text file. I'm not aware of such a tool, but that doesn't mean it doesn't exists already.
The only thing I could suggest here, would to get in touch with receyuki and ask him, if his SD Prompt Reader could be modified to batch extract prompts from images, either directly from the program itself or when used as a command line tool.

@noantidote
Copy link

noantidote commented Sep 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants