aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_hijack.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-19 20:39:03 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-19 20:39:10 +0300
commit6073456c8348d15716b9bc5276d994fe8554e4ca (patch)
tree70478e3f77fd4378fecaa7b3350edacbdc853ede /modules/sd_hijack.py
parent51517f3ea668f37408be7224dc6c35ef57cf92d9 (diff)
write a comment for fix_checkpoint function
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r--modules/sd_hijack.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py
index 870eba88..f9652d21 100644
--- a/modules/sd_hijack.py
+++ b/modules/sd_hijack.py
@@ -69,6 +69,13 @@ def undo_optimizations():
ldm.modules.diffusionmodules.model.AttnBlock.forward = diffusionmodules_model_AttnBlock_forward
+def fix_checkpoint():
+ """checkpoints are now added and removed in embedding/hypernet code, since torch doesn't want
+ checkpoints to be added when not training (there's a warning)"""
+
+ pass
+
+
class StableDiffusionModelHijack:
fixes = None
comments = []