File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4646
4747CONDAENV=shapeworks
4848if [[ " ${# POSITIONAL_ARGS[@]} " -eq 1 ]]; then
49- CONDAENV=${POSITIONAL_ARGS[0] }
49+ CONDAENV=${POSITIONAL_ARGS[@] : 0 : 1 }
5050fi
5151
5252echo " Creating new conda environment for ShapeWorks called \" $CONDAENV \" ..."
@@ -71,6 +71,8 @@ function install_pytorch() {
7171 pip install torch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 -f https://download.pytorch.org/whl/torch_stable.html
7272 elif [[ " $CUDA " == " 11.0" || " $CUDA " == " 11.1" || " $CUDA " == " 11.2" ]]; then
7373 pip install torch==1.11.0+cu110 torchvision==0.12.0+cu110 torchaudio==0.11.0 -f https://download.pytorch.org/whl/torch_stable.html
74+ elif [[ " $CUDA " == " 11.7" || " $CUDA " == " 11.8" || " $CUDA " == " 12.0" || " $CUDA " == " 12.1" ]]; then
75+ pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 -f https://download.pytorch.org/whl/cu118
7476 else
7577 echo " CUDA version not compatible, using cpu-only"
7678 pip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0 -f https://download.pytorch.org/whl/torch_stable.html
You can’t perform that action at this time.
0 commit comments