jkorstad commited on
Commit
7bb003e
·
verified ·
1 Parent(s): 33e5da6

Update setup_blender.sh

Browse files
Files changed (1) hide show
  1. setup_blender.sh +9 -5
setup_blender.sh CHANGED
@@ -23,10 +23,14 @@ TORCH_INDEX_URL="https://download.pytorch.org/whl/${TORCH_CUDA_SUFFIX}" # Make s
23
  PYG_TORCH_VERSION_SUFFIX="2.3.1" # PyTorch version suffix in PyG URLs
24
  PYG_PYTHON_VERSION="cp311" # Python version suffix
25
  PYG_CUDA_SUFFIX="cu121" # CUDA version suffix
 
26
  PYG_BASE_URL="https://data.pyg.org/whl/torch-${PYG_TORCH_VERSION_SUFFIX}+${PYG_CUDA_SUFFIX}"
27
- # Find exact wheel names from the HTML pages if these links break
28
- TORCH_SCATTER_WHL_URL="${PYG_BASE_URL}/torch_scatter-2.1.2+pt${PYG_TORCH_VERSION_SUFFIX/./}${PYG_CUDA_SUFFIX}-${PYG_PYTHON_VERSION}-${PYG_PYTHON_VERSION}-linux_x86_64.whl"
29
- TORCH_CLUSTER_WHL_URL="${PYG_BASE_URL}/torch_cluster-1.6.3+pt${PYG_TORCH_VERSION_SUFFIX/./}${PYG_CUDA_SUFFIX}-${PYG_PYTHON_VERSION}-${PYG_PYTHON_VERSION}-linux_x86_64.whl"
 
 
 
30
 
31
 
32
  # --- Download and Extract Blender ---
@@ -75,8 +79,8 @@ echo "PyTorch and Torchvision installation complete."
75
  # --- Install torch-scatter and torch-cluster using direct wheel URLs SECOND ---
76
  # This avoids build issues by using pre-compiled wheels directly.
77
  echo "Installing torch-scatter and torch-cluster from specific wheels..."
78
- echo "Scatter wheel: ${TORCH_SCATTER_WHL_URL}"
79
- echo "Cluster wheel: ${TORCH_CLUSTER_WHL_URL}"
80
  "${BLENDER_PY_EXEC}" -m pip install --no-cache-dir \
81
  "${TORCH_SCATTER_WHL_URL}" \
82
  "${TORCH_CLUSTER_WHL_URL}"
 
23
  PYG_TORCH_VERSION_SUFFIX="2.3.1" # PyTorch version suffix in PyG URLs
24
  PYG_PYTHON_VERSION="cp311" # Python version suffix
25
  PYG_CUDA_SUFFIX="cu121" # CUDA version suffix
26
+ # Base URL for the directory containing the wheels
27
  PYG_BASE_URL="https://data.pyg.org/whl/torch-${PYG_TORCH_VERSION_SUFFIX}+${PYG_CUDA_SUFFIX}"
28
+ # Correct wheel filenames (checked against the index page)
29
+ TORCH_SCATTER_WHL_FILENAME="torch_scatter-2.1.2-${PYG_PYTHON_VERSION}-${PYG_PYTHON_VERSION}-linux_x86_64.whl"
30
+ TORCH_CLUSTER_WHL_FILENAME="torch_cluster-1.6.3-${PYG_PYTHON_VERSION}-${PYG_PYTHON_VERSION}-linux_x86_64.whl"
31
+ # Construct the full URLs
32
+ TORCH_SCATTER_WHL_URL="${PYG_BASE_URL}/${TORCH_SCATTER_WHL_FILENAME}"
33
+ TORCH_CLUSTER_WHL_URL="${PYG_BASE_URL}/${TORCH_CLUSTER_WHL_FILENAME}"
34
 
35
 
36
  # --- Download and Extract Blender ---
 
79
  # --- Install torch-scatter and torch-cluster using direct wheel URLs SECOND ---
80
  # This avoids build issues by using pre-compiled wheels directly.
81
  echo "Installing torch-scatter and torch-cluster from specific wheels..."
82
+ echo "Scatter wheel URL: ${TORCH_SCATTER_WHL_URL}"
83
+ echo "Cluster wheel URL: ${TORCH_CLUSTER_WHL_URL}"
84
  "${BLENDER_PY_EXEC}" -m pip install --no-cache-dir \
85
  "${TORCH_SCATTER_WHL_URL}" \
86
  "${TORCH_CLUSTER_WHL_URL}"