Explorar o código

Modify pytorch command

Sakura-Luna %!s(int64=2) %!d(string=hai) anos
pai
achega
f29c41bf6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      launch.py

+ 1 - 1
launch.py

@@ -237,7 +237,7 @@ def run_extensions_installers(settings_file):
 
 
 def prepare_environment():
-    torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118")
+    torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118")
     requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")
 
     xformers_package = os.environ.get('XFORMERS_PACKAGE', 'xformers==0.0.17')