Files
2026-02-14 21:27:30 +01:00

1.5 KiB

In [ ]:
%cd /content

# Remove existing directory if present
#!rm -rf UltraSinger

# Clone specific branch
!git clone https://github.com/rakuri255/UltraSinger.git
%cd /content/UltraSinger

# Install uv
!curl -LsSf https://astral.sh/uv/install.sh | sh

# Add uv to PATH and configure matplotlib
import os
os.environ['PATH'] = f"/root/.local/bin:{os.environ['PATH']}"
os.environ['UV_LINK_MODE'] = 'copy'
os.environ['MPLBACKEND'] = 'Agg'

# Sync dependencies from pyproject.toml
!uv sync

# Install PyTorch with CUDA support
!uv pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --force-reinstall

%cd /content/UltraSinger/src
In [ ]:
!../.venv/bin/python UltraSinger.py -i https://www.youtube.com/watch?v=YwNs1Z0qRY0 -o /content/output