Add argument for enabling xFormers optimizations

This commit is contained in:
Anders Haglund
2022-11-28 17:34:22 -08:00
parent 0d2d1ab4ec
commit a0240721e3
4 changed files with 11 additions and 1 deletions

View File

@@ -32,6 +32,11 @@ def parse_args():
action="store_true",
help="After first time Stable Diffusion model downloaded, you can add this arg and remove --hf_access_token",
)
parser.add_argument(
"--sd-enable-xformers",
action="store_true",
help="Enable xFormers optimizations. Requires that xformers package has been installed. See: https://github.com/facebookresearch/xformers"
)
parser.add_argument("--device", default="cuda", type=str, choices=["cuda", "cpu"])
parser.add_argument("--gui", action="store_true", help="Launch as desktop app")
parser.add_argument(