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 /train_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 'train_lora.py')
-rw-r--r-- | train_lora.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_lora.py b/train_lora.py index 330bcd6..8a06ae8 100644 --- a/train_lora.py +++ b/train_lora.py | |||
@@ -421,8 +421,8 @@ def main(): | |||
421 | args.pretrained_model_name_or_path) | 421 | args.pretrained_model_name_or_path) |
422 | 422 | ||
423 | vae.enable_slicing() | 423 | vae.enable_slicing() |
424 | vae.set_use_memory_efficient_attention_xformers(True) | 424 | # vae.set_use_memory_efficient_attention_xformers(True) |
425 | unet.enable_xformers_memory_efficient_attention() | 425 | # unet.enable_xformers_memory_efficient_attention() |
426 | 426 | ||
427 | unet.to(accelerator.device, dtype=weight_dtype) | 427 | unet.to(accelerator.device, dtype=weight_dtype) |
428 | text_encoder.to(accelerator.device, dtype=weight_dtype) | 428 | text_encoder.to(accelerator.device, dtype=weight_dtype) |