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.
CLI
Python Libraries (pip install)
- jupyter or jupyter-lab
- os
- subprocess
- Make some comma-separated keyword text files that are named the same as the image file they correspond with
- Make sure those text files are in the same folder as your images (standard for keyword generators)
- Open the notebook and change the path in the first block to your image folder
- Run the codes
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!