more stuff
This commit is contained in:
@@ -58,20 +58,11 @@ pip install -r requirements.txt
|
||||
print_status "Installing video processing libraries..."
|
||||
pip install decord ffmpeg-python
|
||||
|
||||
# Install CuPy for GPU acceleration of stereo validation
|
||||
# Install CuPy for GPU acceleration (CUDA 12 is standard on modern RunPod)
|
||||
print_status "Installing CuPy for GPU acceleration..."
|
||||
# Auto-detect CUDA version and install appropriate CuPy
|
||||
if command -v nvidia-smi &> /dev/null; then
|
||||
CUDA_VERSION=$(nvidia-smi | grep "CUDA Version" | awk '{print $9}' | cut -d. -f1-2)
|
||||
echo "Detected CUDA version: $CUDA_VERSION"
|
||||
|
||||
if [[ "$CUDA_VERSION" == "11."* ]]; then
|
||||
pip install cupy-cuda11x>=12.0.0 && print_success "Installed CuPy for CUDA 11.x"
|
||||
elif [[ "$CUDA_VERSION" == "12."* ]]; then
|
||||
pip install cupy-cuda12x>=12.0.0 && print_success "Installed CuPy for CUDA 12.x"
|
||||
else
|
||||
print_error "Unknown CUDA version, skipping CuPy installation"
|
||||
fi
|
||||
print_status "Installing CuPy for CUDA 12.x (standard on RunPod)..."
|
||||
pip install cupy-cuda12x>=12.0.0 && print_success "Installed CuPy for CUDA 12.x"
|
||||
else
|
||||
print_error "NVIDIA GPU not detected, skipping CuPy installation"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user