mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-20 13:07:52 +09:00
1.5 KiB
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/srcIn [ ]:
!../.venv/bin/python UltraSinger.py -i https://www.youtube.com/watch?v=YwNs1Z0qRY0 -o /content/output