Spaces:
Runtime error
Runtime error
Update setup_blender.sh
Browse files- setup_blender.sh +3 -3
setup_blender.sh
CHANGED
@@ -20,8 +20,8 @@ UNIRIG_REPO_CLONE_DIR="${APP_DIR}/UniRig"
|
|
20 |
|
21 |
TORCH_VERSION="2.3.1"
|
22 |
TORCHVISION_VERSION="0.18.1"
|
23 |
-
# ** MODIFIED:
|
24 |
-
TARGET_CUDA_VERSION_SHORT="
|
25 |
TORCH_INDEX_URL="https://download.pytorch.org/whl/${TARGET_CUDA_VERSION_SHORT}"
|
26 |
|
27 |
# --- Set Environment Variables for Build ---
|
@@ -117,7 +117,7 @@ echo "Step 2: (flash-attn will be installed via requirements file in the next st
|
|
117 |
echo "Step 3: Installing remaining dependencies from ${UNIRIG_REQS_FILE_IN_SPACE}..."
|
118 |
# This will install torch-scatter, torch-cluster, spconv, flash-attn (if listed and compatible wheel found), bpy, etc.
|
119 |
# flash-attn build (if a wheel is not found) would use TORCH_CUDA_ARCH_LIST.
|
120 |
-
# Hopefully, a pre-built wheel for flash-attn (e.g., +
|
121 |
"${BLENDER_PY_EXEC}" -m pip install --no-cache-dir -r "${UNIRIG_REQS_FILE_IN_SPACE}" -vvv
|
122 |
|
123 |
echo "Dependency installation for Blender's Python complete."
|
|
|
20 |
|
21 |
TORCH_VERSION="2.3.1"
|
22 |
TORCHVISION_VERSION="0.18.1"
|
23 |
+
# ** MODIFIED: Reverted to cu121 as PyTorch 2.3.1 wheels are readily available for it **
|
24 |
+
TARGET_CUDA_VERSION_SHORT="cu121"
|
25 |
TORCH_INDEX_URL="https://download.pytorch.org/whl/${TARGET_CUDA_VERSION_SHORT}"
|
26 |
|
27 |
# --- Set Environment Variables for Build ---
|
|
|
117 |
echo "Step 3: Installing remaining dependencies from ${UNIRIG_REQS_FILE_IN_SPACE}..."
|
118 |
# This will install torch-scatter, torch-cluster, spconv, flash-attn (if listed and compatible wheel found), bpy, etc.
|
119 |
# flash-attn build (if a wheel is not found) would use TORCH_CUDA_ARCH_LIST.
|
120 |
+
# Hopefully, a pre-built wheel for flash-attn (e.g., +pt23cu121) will be found due to PyTorch being cu121.
|
121 |
"${BLENDER_PY_EXEC}" -m pip install --no-cache-dir -r "${UNIRIG_REQS_FILE_IN_SPACE}" -vvv
|
122 |
|
123 |
echo "Dependency installation for Blender's Python complete."
|