Spaces:
Running
on
Zero
Running
on
Zero
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." | |