- Bulk extract metadata from files generated by ComfyUI and Automatic1111/Stable Diffusion.
- View and search in a web UI.
.\SDMetaUI.exe --ImageDir=E:\stable-diffusion-webui\outputsdocker 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:mainservices:
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.
There are two directories required - one for the database of metadata and one for the 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.
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