Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,142 Bytes
9c76928 6a5ad9d 0d33a1d d72c7f6 fc44d4b 49e617c 91ceb77 e4700ee 0d33a1d e4700ee e32b59a fc6a882 58ac044 dbd97b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
echo "Installing PyTorch with CUDA support..."
pip install torch==2.2.0+cu121 torchvision==0.17.0+cu121 torchaudio==2.2.0+cu121 \
--extra-index-url https://download.pytorch.org/whl/cu121
echo "Reinstalling NumPy with specific version..."
pip install --force-reinstall -v "numpy==1.25.2"
# # Compile and install DISO package
# echo "Compiling and installing DISO..."
# pip install ninja
# mkdir -p diso_package
# cd diso_package
# git clone https://github.com/SarahWeiii/diso.git
# cd diso
# pip install -e .
# cd ..
# cd ..
echo "Setup completed successfully!"
echo "Installing other requirements..."
pip install -r requirements.txt
# 从您的Hugging Face仓库下载并安装预编译的DISO wheel
echo "Installing pre-compiled DISO wheel package..."
huggingface-cli download --resume-download ZhiyuanthePony/TriplaneTurbo \
--include "diso-0.1.4-*.whl" \
--local-dir ./diso_package \
--local-dir-use-symlinks False
pip install ./diso_package/diso-0.1.4-*.whl
echo "Setup completed successfully!"
# change the huggingface_hub version
pip install huggingface_hub==0.24.0
# update at April 16, 2025
pip install fastapi==0.100.0 |