SEFurkan GözükaraSECourses · Generative AI Join onPatreon

Batch Image Metadata Generator Script for Automatic1111 SD Web UI

Batch Image Metadata Generator extracts the generation metadata of every image in a folder at once, faster than opening each in Automatic1111 PNG Info.

Extremely useful for the Automatic1111 SD Web UI: one Python script (write_image_meta_data.py) needs only Pillow, a folder path and one command, and outputs prompts, negative prompts, sampler, seed, model and ADetailer settings.

Updated By Dr. Furkan Gözükara
Batch Image Metadata Generator Script for Automatic1111 SD Web UI
Older post. this is an older post kept for reference. Newer apps and guides are in Captioning, Dataset and Image Processing Tools.

Let's say you want to see META data of the generated images quickly.

Loading them into the PNG info is both slow and ineffective.

With attached write_image_meta_data.py file you can generate META data of every image in given folder.

To make it work first open a cmd and run below command

pip install Pillow

Then edit the write image metadata py file and change the folder_path you want META data of images to be generated

Then type python write_image_meta_data.py in the same folder

Batch Image Metadata Generator Script for Automatic1111 SD Web UI

Then it will generate metadata such as below

parameters: Academia, portrait of ohwx man, preppy Ivy League style, stark, dramatic, chic boarding school, academia

Negative prompt: ugly, deformed, noisy, blurry, low contrast, grunge, sloppy, unkempt

Steps: 40, Sampler: DPM++ 2M SDE Karras, CFG scale: 7, Seed: 3936504685, Size: 1024x1024, Model hash: eef545047f, Model: me15img_150repeat, ADetailer model: face_yolov8n.pt, ADetailer confidence: 0.3, ADetailer mask only top k largest: 1, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.5, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 23.11.1, Version: v1.7.0-133-gde03882d

Batch Image Metadata Generator Script for Automatic1111 SD Web UI (2)

Help and community

Patreon exclusive posts index

Join discord and tell me your discord username to get a special rank : SECourses Discord

↑ ↓ to move · Enter to open · Esc to close · Ctrl K or / to search from any page