Created
July 29, 2024 22:41
-
-
Save kurtroberts/65722e0aedd1547cf6a04dfef8a613b6 to your computer and use it in GitHub Desktop.
Extract prompt metadata from stable diffusion generated images (ComfyUI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| # install imagemagick and jq first of course | |
| getprompt () { | |
| magick identify -verbose $1 | grep prompt | perl -pe "s/^[^\:]*\://" - | jq . | grep text | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment