imagetoaudio / postInstall
yongyeol's picture
Update postInstall
4faae03 verified
raw
history blame contribute delete
609 Bytes
#!/usr/bin/env bash
set -e
echo "▶ reinstall CPU‑only PyTorch stack"
pip uninstall -y torch torchaudio torchvision xformers || true
pip install --no-cache-dir \
torch==2.1.0+cpu torchaudio==2.1.0+cpu \
--extra-index-url https://download.pytorch.org/whl/cpu
echo "▶ install audiocraft without xformers"
pip install --no-cache-dir --use-pep517 --no-deps \
git+https://github.com/facebookresearch/audiocraft@main
echo "▶ install audiocraft runtime deps"
pip install --no-cache-dir encodec spacy huggingface_hub soundfile tqdm
echo "✓ postInstall complete"
pip install --no-cache-dir librosa