aboutsummaryrefslogtreecommitdiff
path: root/modules/launch_utils.py
diff options
context:
space:
mode:
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}")