iRedHat commited on
Commit
572e9a4
·
verified ·
1 Parent(s): 1b47f89

Update install_modules.py

Browse files
Files changed (1) hide show
  1. install_modules.py +8 -4
install_modules.py CHANGED
@@ -133,10 +133,14 @@ if __name__ == "__main__":
133
  # Установка onnxruntime-gpu из сетевого ресурса
134
  onnxruntime_index = "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/"
135
  install_from_index("onnxruntime-gpu", onnxruntime_index, python_path)
136
-
 
137
  pytorch_index = "https://download.pytorch.org/whl/cu124"
138
- install_from_index("torch", pytorch_index, python_path)
139
- install_from_index("torchvision", pytorch_index, python_path)
140
- install_from_index("torchaudio", pytorch_index, python_path)
 
 
 
141
 
142
  print(colored("Установка завершена.", 'green'))
 
133
  # Установка onnxruntime-gpu из сетевого ресурса
134
  onnxruntime_index = "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/"
135
  install_from_index("onnxruntime-gpu", onnxruntime_index, python_path)
136
+
137
+ modules_to_install = ["torch", "torchvision", "torchaudio"]
138
  pytorch_index = "https://download.pytorch.org/whl/cu124"
139
+ for module in modules_to_install:
140
+ install_from_index(module, pytorch_index, python_path)
141
+
142
+ # install_from_index("torch", pytorch_index, python_path)
143
+ # install_from_index("torchvision", pytorch_index, python_path)
144
+ # install_from_index("torchaudio", pytorch_index, python_path)
145
 
146
  print(colored("Установка завершена.", 'green'))