diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-14 10:37:55 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-14 10:37:55 +0000 |
commit | febd2b722e80959b89a0e5966a159b4eb430c5a5 (patch) | |
tree | 0b602cb248dc41ea4585b6d036ce2b959e5d0b31 | |
parent | f9ac3352cb66ce2bc0aa4325130fc7267fb35e4f (diff) | |
download | stable-diffusion-webui-gfx803-febd2b722e80959b89a0e5966a159b4eb430c5a5.tar.gz stable-diffusion-webui-gfx803-febd2b722e80959b89a0e5966a159b4eb430c5a5.tar.bz2 stable-diffusion-webui-gfx803-febd2b722e80959b89a0e5966a159b4eb430c5a5.zip |
update key to use with checkpoints' sha256 in cache
-rw-r--r-- | modules/sd_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py index 8f00191c..1fe6d11b 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -54,7 +54,7 @@ class CheckpointInfo: checkpoint_alisases[id] = self
def calculate_shorthash(self):
- self.sha256 = hashes.sha256(self.filename, self.title)
+ self.sha256 = hashes.sha256(self.filename, "checkpoint/" + self.title)
self.shorthash = self.sha256[0:10]
if self.shorthash not in self.ids:
|