From e0af5d00894d0c6ee408b47f5bee7e9e10f9238d Mon Sep 17 00:00:00 2001 From: Bryce Date: Sun, 27 Nov 2022 14:02:07 -0800 Subject: [PATCH] fix: version metadata was broken Fixes #114 --- README.md | 4 +++- imaginairy/schema.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7353071..7330eff 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,9 @@ docker run -it --gpus all -v $HOME/.cache/huggingface:/root/.cache/huggingface - ## ChangeLog -- feature: xformers support +**6.1.1** +- feature: xformers will be used if available (for faster generation) +- fix: version metadata was broken **6.1.0** - feature: use different default steps and image sizes depending on sampler and model selceted diff --git a/imaginairy/schema.py b/imaginairy/schema.py index a1292d4..558c343 100644 --- a/imaginairy/schema.py +++ b/imaginairy/schema.py @@ -263,7 +263,7 @@ class ImagineResult: sd_version = self.prompt.model if len(sd_version) > 20: sd_version = "custom weights" - exif[ExifCodes.Software] = "Imaginairy / Stable Diffusion {sd_version}" + exif[ExifCodes.Software] = f"Imaginairy / Stable Diffusion {sd_version}" exif[ExifCodes.DateTime] = self.created_at.isoformat(sep=" ")[:19] exif[ExifCodes.HostComputer] = f"{self.torch_backend}:{self.hardware_name}" return exif