mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 04:11:15 -08:00
write a comment for fix_checkpoint function
This commit is contained in:
parent
51517f3ea6
commit
6073456c83
1 changed files with 7 additions and 0 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue