fix: version metadata was broken

Fixes #114
This commit is contained in:
Bryce 2022-11-27 14:02:07 -08:00 committed by Bryce Drennan
parent 4610d7f01d
commit e0af5d0089
2 changed files with 4 additions and 2 deletions

View File

@ -231,7 +231,9 @@ docker run -it --gpus all -v $HOME/.cache/huggingface:/root/.cache/huggingface -
## ChangeLog ## 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** **6.1.0**
- feature: use different default steps and image sizes depending on sampler and model selceted - feature: use different default steps and image sizes depending on sampler and model selceted

View File

@ -263,7 +263,7 @@ class ImagineResult:
sd_version = self.prompt.model sd_version = self.prompt.model
if len(sd_version) > 20: if len(sd_version) > 20:
sd_version = "custom weights" 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.DateTime] = self.created_at.isoformat(sep=" ")[:19]
exif[ExifCodes.HostComputer] = f"{self.torch_backend}:{self.hardware_name}" exif[ExifCodes.HostComputer] = f"{self.torch_backend}:{self.hardware_name}"
return exif return exif