Copy PNG metadata via Regex to import into Lightroom Hierarchical tags?

Started by TushyBhutt, November 11, 2022, 05:47:30 PM

Previous topic - Next topic

TushyBhutt

Quote from: blue-j on November 29, 2022, 01:12:31 PMI don't see any change in metadata using Stable v2 using DreamStudio.  - J

The AUTO1111 implementation now has more fields, I think  New fields include Hires sizing, hires steps, and hires upscaler among others. 

According to this link:

https://github.com/Eugenii10/exiftool-sd-format/issues/1#issuecomment-1368368763

The repo has code to extract metadata but I don't know which script it is.  Even if I did, I have no Python skills so I have on ideas how to extract it to put it into Lightroom, let alone automate it. 

TushyBhutt

Quote from: StarGeek on November 18, 2022, 11:13:42 AMI have to go run an errand, but the basic idea now would be to split on new line, then split the last string on the comma(space), them run all that through map. A bit more Perl-ish and complex.

Must've been a long errand :)

I think I found the python script(s) that generate the parameters, but am not sure.  One seems to be a module that can be called by other scripts:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/generation_parameters_copypaste.py

And then there's this one that calls the one above and writes to the file.  I think.  It's an extension for AUTO1111 so I am sure the base program has the same functionality, but I couldn't track down that one so I chose the "next best" one.

https://github.com/adieyal/sd-dynamic-prompts/blob/bug/copypaste-parameters/ui/save_params.py