Hunyuan3D-2.0 / run_in_hf.sh
Vo Minh Vu
Fix No @spaces.GPU function detected during startup when deploy on hugging face
e44bcf0
raw
history blame contribute delete
663 Bytes
#!/bin/bash
echo "Setting up Hunyuan3D-2.0 environment..."
# Install custom dependencies
cd /home/user/app
# Print diagnostic information
echo "Python version:"
python --version
echo "CUDA availability:"
python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}')"
python -c "import torch; print(f'CUDA device count: {torch.cuda.device_count()}')"
python -c "import torch; print(f'CUDA device name: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"N/A\"}')"
# Install the required packages
pip install -r requirements-hf.txt
# Install the package in development mode
pip install -e .
echo "Environment setup completed."