munsonbh / text-to-xmp-keywords

Takes text files made from a keyword generator and inserts them into image XMP metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text to XMP Keywords

Takes text files made from a keyword generator (such as what you get from the Stable Diffusion utilities in kohya_ss) and inserts them into image XMP metadata. Uses the EXIFtool CLI to do the dirty work.

Dependencies

CLI

Python Libraries (pip install)

Howto

  1. Make some comma-separated keyword text files that are named the same as the image file they correspond with
  2. Make sure those text files are in the same folder as your images (standard for keyword generators)
  3. Open the notebook and change the path in the first block to your image folder
  4. Run the codes

99% made by AI

I simply interrogated the JupyterLab OpenAI plug-in until it worked, then moved the folder path to an easier place to change. I'm a dumb-but-tenacious designer. Enjoy!

About

Takes text files made from a keyword generator and inserts them into image XMP metadata

License:The Unlicense


Languages

Language:Jupyter Notebook 100.0%