aboutsummaryrefslogtreecommitdiffstats
path: root/modules/launch_utils.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-13 06:30:33 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-13 06:30:33 +0000
commitac4ccfa1369e74492b467294eab96c3f558b297b (patch)
tree357cc16bc3a82c2c4a07c410e3cd4e83e5e3b6f9 /modules/launch_utils.py
parentb717eb7e56a4e620e77a2225e80223c89cb4f0d1 (diff)
downloadstable-diffusion-webui-gfx803-ac4ccfa1369e74492b467294eab96c3f558b297b.tar.gz
stable-diffusion-webui-gfx803-ac4ccfa1369e74492b467294eab96c3f558b297b.tar.bz2
stable-diffusion-webui-gfx803-ac4ccfa1369e74492b467294eab96c3f558b297b.zip
get attention optimizations to work
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r--modules/launch_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py
index 56b972d5..183730d2 100644
--- a/modules/launch_utils.py
+++ b/modules/launch_utils.py
@@ -239,6 +239,7 @@ def mute_sdxl_imports():
sys.modules['sgm.data'] = module
+
def prepare_environment():
torch_index_url = os.environ.get('TORCH_INDEX_URL', "https://download.pytorch.org/whl/cu118")
torch_command = os.environ.get('TORCH_COMMAND', f"pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url {torch_index_url}")