diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-19 17:39:03 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-19 17:39:10 +0000 |
commit | 6073456c8348d15716b9bc5276d994fe8554e4ca (patch) | |
tree | 70478e3f77fd4378fecaa7b3350edacbdc853ede /modules | |
parent | 51517f3ea668f37408be7224dc6c35ef57cf92d9 (diff) | |
download | stable-diffusion-webui-gfx803-6073456c8348d15716b9bc5276d994fe8554e4ca.tar.gz stable-diffusion-webui-gfx803-6073456c8348d15716b9bc5276d994fe8554e4ca.tar.bz2 stable-diffusion-webui-gfx803-6073456c8348d15716b9bc5276d994fe8554e4ca.zip |
write a comment for fix_checkpoint function
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sd_hijack.py | 7 |
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 = []
|