diff options
author | Volpeon <git@volpeon.ink> | 2023-02-17 14:53:25 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-02-17 14:53:25 +0100 |
commit | 842f26654bbe7dfd2f45df1fd2660d3f902af8cc (patch) | |
tree | 3e7cd2dea37f025f9aa2755a893efd29195c7396 /training/strategy/lora.py | |
parent | Fix (diff) | |
download | textual-inversion-diff-842f26654bbe7dfd2f45df1fd2660d3f902af8cc.tar.gz textual-inversion-diff-842f26654bbe7dfd2f45df1fd2660d3f902af8cc.tar.bz2 textual-inversion-diff-842f26654bbe7dfd2f45df1fd2660d3f902af8cc.zip |
Remove xformers, switch to Pytorch Nightly
Diffstat (limited to 'training/strategy/lora.py')
-rw-r--r-- | training/strategy/lora.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/training/strategy/lora.py b/training/strategy/lora.py index 4dd1100..ccec215 100644 --- a/training/strategy/lora.py +++ b/training/strategy/lora.py | |||
@@ -90,7 +90,7 @@ def lora_strategy_callbacks( | |||
90 | def on_checkpoint(step, postfix): | 90 | def on_checkpoint(step, postfix): |
91 | print(f"Saving checkpoint for step {step}...") | 91 | print(f"Saving checkpoint for step {step}...") |
92 | 92 | ||
93 | unet_ = accelerator.unwrap_model(unet) | 93 | unet_ = accelerator.unwrap_model(unet, False) |
94 | unet_.save_attn_procs(checkpoint_output_dir / f"{step}_{postfix}") | 94 | unet_.save_attn_procs(checkpoint_output_dir / f"{step}_{postfix}") |
95 | del unet_ | 95 | del unet_ |
96 | 96 | ||