jkorstad commited on
Commit
32029cb
·
verified ·
1 Parent(s): 7eda35c

Update setup_blender.sh

Browse files
Files changed (1) hide show
  1. setup_blender.sh +5 -2
setup_blender.sh CHANGED
@@ -20,7 +20,8 @@ UNIRIG_REPO_CLONE_DIR="${APP_DIR}/UniRig"
20
 
21
  TORCH_VERSION="2.3.1"
22
  TORCHVISION_VERSION="0.18.1"
23
- TARGET_CUDA_VERSION_SHORT="cu121" # PyTorch 2.3.1 wheels are available for cu121
 
24
  TORCH_INDEX_URL="https://download.pytorch.org/whl/${TARGET_CUDA_VERSION_SHORT}"
25
 
26
  # Direct URL for the compatible flash-attn wheel for v2.5.8
@@ -38,7 +39,7 @@ export C_INCLUDE_PATH="${PYTHON_INCLUDE_DIR}:${C_INCLUDE_PATH}"
38
  export CPLUS_INCLUDE_PATH="${PYTHON_INCLUDE_DIR}:${CPLUS_INCLUDE_PATH}"
39
 
40
  # TORCH_CUDA_ARCH_LIST is important if flash-attn *does* try to compile parts of itself.
41
- export TORCH_CUDA_ARCH_LIST="8.0;8.6;9.0" # Common GPU architectures
42
 
43
  echo "--- Setup Script Start ---"
44
  echo "Target Blender Installation Directory: ${INSTALL_DIR}"
@@ -118,6 +119,8 @@ echo "flash-attn installation attempted from wheel."
118
  echo "Step 3: Installing remaining dependencies from ${UNIRIG_REQS_FILE_IN_SPACE}..."
119
  # Ensure flash-attn is REMOVED from unirig_requirements.txt.
120
  # This will install torch-scatter, torch-cluster, spconv, bpy, etc.
 
 
121
  "${BLENDER_PY_EXEC}" -m pip install --no-cache-dir \
122
  -r "${UNIRIG_REQS_FILE_IN_SPACE}" -vvv
123
 
 
20
 
21
  TORCH_VERSION="2.3.1"
22
  TORCHVISION_VERSION="0.18.1"
23
+ # ** MODIFIED: Changed PyTorch target to CUDA 11.8 to align with flash-attn wheel **
24
+ TARGET_CUDA_VERSION_SHORT="cu118"
25
  TORCH_INDEX_URL="https://download.pytorch.org/whl/${TARGET_CUDA_VERSION_SHORT}"
26
 
27
  # Direct URL for the compatible flash-attn wheel for v2.5.8
 
39
  export CPLUS_INCLUDE_PATH="${PYTHON_INCLUDE_DIR}:${CPLUS_INCLUDE_PATH}"
40
 
41
  # TORCH_CUDA_ARCH_LIST is important if flash-attn *does* try to compile parts of itself.
42
+ export TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6;9.0" # Added older architectures for cu118 compatibility
43
 
44
  echo "--- Setup Script Start ---"
45
  echo "Target Blender Installation Directory: ${INSTALL_DIR}"
 
119
  echo "Step 3: Installing remaining dependencies from ${UNIRIG_REQS_FILE_IN_SPACE}..."
120
  # Ensure flash-attn is REMOVED from unirig_requirements.txt.
121
  # This will install torch-scatter, torch-cluster, spconv, bpy, etc.
122
+ # PyG (torch-scatter, etc.) links in unirig_requirements.txt might need to be updated for torch 2.3 + cu118
123
+ # Example: torch-scatter -f https://data.pyg.org/whl/torch-2.3.0+cu118.html (adjust torch version if needed)
124
  "${BLENDER_PY_EXEC}" -m pip install --no-cache-dir \
125
  -r "${UNIRIG_REQS_FILE_IN_SPACE}" -vvv
126