File size: 663 Bytes
e44bcf0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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."