aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-14 13:37:55 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-14 13:37:55 +0300
commitfebd2b722e80959b89a0e5966a159b4eb430c5a5 (patch)
tree0b602cb248dc41ea4585b6d036ce2b959e5d0b31 /modules/sd_models.py
parentf9ac3352cb66ce2bc0aa4325130fc7267fb35e4f (diff)
update key to use with checkpoints' sha256 in cache
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r--modules/sd_models.py2
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: