Skip to content

Extract SD (Automatic1111, ComfyUI) metadata from generated files in bulk, search and browse your prompts

License

Notifications You must be signed in to change notification settings

jamesmoore/SDMeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDMeta

  • Bulk extract metadata from files generated by ComfyUI and Automatic1111/Stable Diffusion.
  • View and search in a web UI.

Web UI

Running on Windows

.\SDMetaUI.exe --ImageDir=E:\stable-diffusion-webui\outputs

Running on Docker

docker volume create sdmeta_data

docker pull ghcr.io/jamesmoore/sdmeta:main

docker run \
-d \
-v /mnt/storage/sd/:/sd \
-v sdmeta_data:/var/lib/sdmeta \
-e ImageDir='/sd' \
-p 8080:8080 \
--entrypoint dotnet \
--restart always \
--log-opt max-size=1m \
ghcr.io/jamesmoore/sdmeta:main

Docker compose

services:
  sdmeta:
    environment:
      ImageDir: /sd
    image: ghcr.io/jamesmoore/sdmeta:meta
    restart: unless-stopped
    volumes:
      - /mnt/storage/sd:/sd
      - sdmeta_data:/var/lib/sdmeta
    ports:
      - 8080:8080      
volumes:
  sdmeta_data:

The ImageDir env variable points to the folder containing the generated images. The web server runs on port 8080, but you can reassign it using the -p parameter and/or route it through a reverse proxy like Caddy or Traefik.

Data Volumes

There are two directories required - one for the database of metadata and one for the image files.

Image files

This is for the images generated by stable diffusion. The image files are read to extract the metadata and not modified so you can mount this as read only unless you want to use the UI to delete images.

Database and thumbnails

This volume is needed to hold the Sqlite database that caches the metadata and any thumbnails generated by the UI. On linux systems this volume should be mounted at /var/lib/sdmeta. On Windows the location will be $env:APPDATA\SDMeta

About

Extract SD (Automatic1111, ComfyUI) metadata from generated files in bulk, search and browse your prompts

Topics

Resources

License

Stars

Watchers

Forks

Packages