From a7dcf43f7ce04fdba6773c8762988853f6f1ee4b Mon Sep 17 00:00:00 2001 From: Victor Hall Date: Mon, 2 Jan 2023 18:38:08 -0500 Subject: [PATCH] remove explicit disable xformers --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 1c62d33..67093de 100644 --- a/train.py +++ b/train.py @@ -392,11 +392,11 @@ def main(args): if not args.disable_xformers and is_xformers_available(): try: unet.enable_xformers_memory_efficient_attention() + logging.info("Enabled xformers") except Exception as ex: logging.warning("failed to load xformers, continuing without it") pass else: - unet.disable_xformers_memory_efficient_attention() logging.info("xformers not available or disabled") default_lr = 3e-6